From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [ANN] org-mime -- using orgmode to send html mail? Date: Wed, 14 Apr 2010 20:49:36 -0600 Message-ID: <878w8pe8fz.fsf@gmail.com> References: <87eij05had.fsf@gmail.com> <878w98w4sz.fsf@stats.ox.ac.uk> <87sk7f8d6x.fsf@gmail.com> <87aatizcef.fsf@gmail.com> <71591C25-1B0B-4162-A53C-16DB9436C0F3@gmail.com> <8739z9c3vq.fsf@gmail.com> <8739z44lyl.fsf@gmail.com> <87bpdoio0j.fsf@gmail.com> <87mxx6hmvw.fsf@gmail.com> <87pr225sxu.wl%ucecesf@ucl.ac.uk> <87iq7u9if8.fsf@gmail.com> <87hbndq0ym.wl%ucecesf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O2F9J-0006ST-AE for emacs-orgmode@gnu.org; Wed, 14 Apr 2010 22:49:49 -0400 Received: from [140.186.70.92] (port=55682 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2F9H-0006QN-Ut for emacs-orgmode@gnu.org; Wed, 14 Apr 2010 22:49:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O2F9G-0000QD-1A for emacs-orgmode@gnu.org; Wed, 14 Apr 2010 22:49:47 -0400 Received: from qw-out-1920.google.com ([74.125.92.148]:54740) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2F9F-0000Pz-UA for emacs-orgmode@gnu.org; Wed, 14 Apr 2010 22:49:45 -0400 Received: by qw-out-1920.google.com with SMTP id 4so336139qwk.24 for ; Wed, 14 Apr 2010 19:49:44 -0700 (PDT) In-Reply-To: <87hbndq0ym.wl%ucecesf@ucl.ac.uk> (Eric S. Fraga's message of "Wed, 14 Apr 2010 20:38:09 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: e.fraga@ucl.ac.uk Cc: emacs-orgmode@gnu.org Eric S Fraga writes: [...] > Thanks. I've pulled and it now works better, in that the HTML > element is now not-nil. However, it's not quite right and other > aspects are still not working. I'm attaching three files: the original > org file I'm using to test the mime encoding, a small image used for > the test, and the resulting message I receive when I've sent the > result of mime exporting. > > There are definitely problems in encoding images, whether one > explicitly linked to in the org file or one created for latex > equations. Some (maybe all?) of the problems may be due to > Wanderlust. I imagine you don't use WL so if there's any help I can > provide in debugging this combination, please let me know! > Yes, there absolutely is something you can do to help. I think you're right that my poor WL syntax is most likely the problem. All of the WL specific syntax is in the `org-mime-file' and `org-mime-multipart' functions. To start could you try replace the 'semi portion of the case statement in `org-mime-multipart' with the following (I'd paste the whole function but it'd break my outgoing gnus email) the syntax here is updated based on a function from http://www.emacswiki.org/emacs/WlFaq#toc10. --8<---------------cut here---------------start------------->8--- ('semi (concat "--" "<>-{\n" "--" "[[text/plain]]\n" plain "--" "[[text/html]]\n" html "--" "}-<>\n")) --8<---------------cut here---------------end--------------->8--- That *should* fix the exportation of html portions w/o pictures, the WL syntax in `org-mime-file' will need to be fixed for image attachments. > > I do note that the text contents for the email created in the buffer > do differ from what I get when I explicitly insert attachments. > yes, hopefully once these are brought into line then org-mime will work for WL as well as gnus. Thanks -- Eric