emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Price <moptop99@gmail.com>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: replying to emai with org-mode syntax in mu4e
Date: Fri, 18 Nov 2016 00:12:28 -0500	[thread overview]
Message-ID: <CAN_Dec-j_Aa5W8PHJdUAeSGMCpNUVWLs9TQunEbBx5yreb+Kxg@mail.gmail.com> (raw)
In-Reply-To: <CAN_Dec8DPu28=Kt4nB6jYns29Y6vXfn9Zs4-wZotAXoqTKRtww@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 3407 bytes --]

one last thing:

I had some further trouble when I tried to turn on
org-mu4e-compose-org-mode as a hook to mu4e-compose-mode. I'm pretty sure
there's some kind of a loop related to the funky post-command-hook-setting
internal function org~mu4e-mime-switch-headers-or-body. Anyway, turning off
hte hook and applying the above hook fixed my issue.  Added a couple of
keybindings and now everything works!

On Thu, Nov 17, 2016 at 8:42 PM, Matt Price <moptop99@gmail.com> wrote:

>
>
> On Thu, Nov 17, 2016 at 1:10 PM, Matt Price <moptop99@gmail.com> wrote:
>
>> Hey everyone, I am definitely still seeing this problem; I just sent a
>> new email to the mu list to see if anyone there has the same issue. Google
>> groups link is here:
>> https://groups.google.com/forum/#!topic/mu-discuss/Hvl9wzI01DA
>>
>
> In case, at some point, someone else starts seeing the same problem, I
> seem to have fixed it.  There appears to be some kind of bad chemistry
> between  recent org-mode, recent mu4e, and message mode.  The trick for me
> was making sure that org-mu4e-compose-org-mode was switched off before
> message-send-and-exit ran:
>
> (defun htmlize-and-send ()
>   "When in an org-mu4e-compose-org-mode message, htmlize and send it."
>   (interactive)
>   (when (member 'org~mu4e-mime-switch-headers-or-body post-command-hook)
>     (org-mime-htmlize)
>     (org-mu4e-compose-org-mode)
>     (message-send-and-exit)))
>
> The second-to-last line is my only change.
>
> Matt
>
>
>
>>
>> if you are able to reproduce or can see immediate errors in my ocnfig I'd
>> be grateful to hear about it.
>> Thanks!
>>
>> On Tue, Nov 1, 2016 at 2:13 PM, Matt Price <moptop99@gmail.com> wrote:
>>
>>> OK, I will try -- doesn't immediatley seem to work but I may have some
>>> crud kicking around my config that I need to get rid of.
>>>
>>> With both your orgmime and the standard library, htmlize-and-send works
>>> perfectly well when run from the headers. When run form the message body,
>>> sending fails with "Already sent by mail. Resend?" and drops me back into
>>> the buffer if I say "n". If I say "y", the send and save both fail. If I
>>> say "n", and go bak to the headers & execute C-c, sending now succeeds.
>>>
>>> No time to track down rihgt now but frustrating for sure!!
>>>
>>>
>>> On Tue, Nov 1, 2016 at 12:17 PM, John Kitchin <jkitchin@andrew.cmu.edu>
>>> wrote:
>>>
>>>> you could try my adapted version here:
>>>> https://github.com/jkitchin/scimax/blob/master/org-mime.el
>>>>
>>>> Matt Price writes:
>>>>
>>>> > On Mon, Oct 31, 2016 at 1:05 PM, John Kitchin <
>>>> jkitchin@andrew.cmu.edu>
>>>> > wrote:
>>>> >
>>>> >> I got that too for a while. Then it seemed to go away.
>>>> >
>>>> >
>>>> > If only I could copy-paste that part of your code ("seemed to go
>>>> away...")!
>>>> > Is pretty persistent for me.  Odldy, the first email I send in a new
>>>> emas
>>>> > seems to go out fine, and ot save fine in myu sent folder; after that
>>>> I get
>>>> > that error. Message sends if I hit C-c C-c again from the headers
>>>> section
>>>> > of the htmlized buffer. So, not a atastrophe, but not especially
>>>> > streamlined either.
>>>>
>>>>
>>>> --
>>>> Professor John Kitchin
>>>> Doherty Hall A207F
>>>> Department of Chemical Engineering
>>>> Carnegie Mellon University
>>>> Pittsburgh, PA 15213
>>>> 412-268-7803
>>>> @johnkitchin
>>>> http://kitchingroup.cheme.cmu.edu
>>>>
>>>
>>>
>>
>

[-- Attachment #2: Type: text/html, Size: 6342 bytes --]

      reply	other threads:[~2016-11-18  5:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-28 23:19 replying to emai with org-mode syntax in mu4e Matt Price
2016-10-28 23:48 ` Thibault Marin
2016-10-29  1:17   ` Matt Price
2016-10-29  2:26     ` Thibault Marin
2016-10-29  1:54   ` Matt Price
2016-10-29 18:38     ` John Kitchin
     [not found]       ` <CAN_Dec_751WGJJGmV8WxFx7PWErPuoVBSWE2vOO4d2aFnBiS=g@mail.gmail.com>
     [not found]         ` <CAJ51ETphbVSdasHU7v+oTJUr80e_yOzqy50A9xOj1avGqv_LiA@mail.gmail.com>
     [not found]           ` <CAN_Dec8BsUK4e=fMrA+4UP5Z2ayHTXrR7tE93VXxbTGsErTTLQ@mail.gmail.com>
     [not found]             ` <CAJ51ETrKsH1icjaF2ahDnzv+_SdpApNvsJxY-LOnkQcSQE1t_A@mail.gmail.com>
     [not found]               ` <CAN_Dec_ndN-b6uj9h=EtJUQAVs7ZXYgny-MTXCXCJypEg2FDdQ@mail.gmail.com>
     [not found]                 ` <m2funbyy2q.fsf@andrew.cmu.edu>
     [not found]                   ` <CAN_Dec_zvD2X0J9DE7p5vBPDc9Pf=8bU5RimHy3qmTMc-9Gk6A@mail.gmail.com>
2016-11-17 18:10                     ` Matt Price
2016-11-18  1:42                       ` Matt Price
2016-11-18  5:12                         ` Matt Price [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAN_Dec-j_Aa5W8PHJdUAeSGMCpNUVWLs9TQunEbBx5yreb+Kxg@mail.gmail.com \
    --to=moptop99@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).