From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: replying to emai with org-mode syntax in mu4e Date: Thu, 17 Nov 2016 20:42:47 -0500 Message-ID: References: <87a8dorq62.fsf@dell-desktop.WORKGROUP> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f403045d9bbe60170b0541896c8d Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44008) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7YCY-0005LJ-O0 for emacs-orgmode@gnu.org; Thu, 17 Nov 2016 20:42:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c7YCX-0006QK-Ak for emacs-orgmode@gnu.org; Thu, 17 Nov 2016 20:42:50 -0500 Received: from mail-it0-x22a.google.com ([2607:f8b0:4001:c0b::22a]:35345) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c7YCX-0006QE-2y for emacs-orgmode@gnu.org; Thu, 17 Nov 2016 20:42:49 -0500 Received: by mail-it0-x22a.google.com with SMTP id c20so6736782itb.0 for ; Thu, 17 Nov 2016 17:42:48 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Org Mode --f403045d9bbe60170b0541896c8d Content-Type: text/plain; charset=UTF-8 On Thu, Nov 17, 2016 at 1:10 PM, Matt Price 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 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 >> 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 >> > >>> > 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 >>> >> >> > --f403045d9bbe60170b0541896c8d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Thu, Nov 17, 2016 at 1:10 PM, Matt Price <moptop99@gmail.com&g= t; wrote:
Hey everyone, I am definitely = still seeing this problem; I=20 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.g= oogle.com/forum/#!topic/mu-discuss/Hvl9wzI01DA

In case, at some point, someone = else starts seeing the same problem, I seem to have fixed it.=C2=A0 There a= ppears to be some kind of bad chemistry between=C2=A0 recent org-mode, rece= nt mu4e, and message mode.=C2=A0 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 ()
=C2=A0 "When in an org-mu4e-compose= -org-mode message, htmlize and send it."
=C2=A0 (interactive)
= =C2=A0 (when (member 'org~mu4e-mime-switch-headers-or-body post-command= -hook)
=C2=A0=C2=A0=C2=A0 (org-mime-htmlize)
=C2=A0=C2=A0=C2=A0 (org-= mu4e-compose-org-mode)
=C2=A0=C2=A0=C2=A0 (message-send-and-exit)))
<= /div>

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.=C2=A0
Thanks!

= On Tue, Nov 1, 2016 at 2:13 PM, Matt Price <moptop99@gmail.com> wrote:
OK, I will try -- does= n'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 "Alrea= dy sent by mail. Resend?" and drops me back into the buffer if I say &= quot;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 su= cceeds.=C2=A0

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/b= lob/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.=C2=A0 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 sect= ion
> 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-2= 68-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



--f403045d9bbe60170b0541896c8d--