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: Thu, 15 Apr 2010 09:47:00 -0600 Message-ID: <87r5mghg35.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> <878w8pe8fz.fsf@gmail.com> 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 1O2RJ4-0007aL-24 for emacs-orgmode@gnu.org; Thu, 15 Apr 2010 11:48:42 -0400 Received: from [140.186.70.92] (port=52727 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2RIy-0007Uy-Fh for emacs-orgmode@gnu.org; Thu, 15 Apr 2010 11:48:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O2RIw-0007n9-3v for emacs-orgmode@gnu.org; Thu, 15 Apr 2010 11:48:36 -0400 Received: from mail-pv0-f169.google.com ([74.125.83.169]:54158) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2RIv-0007my-Up for emacs-orgmode@gnu.org; Thu, 15 Apr 2010 11:48:34 -0400 Received: by pvg11 with SMTP id 11so1213520pvg.0 for ; Thu, 15 Apr 2010 08:48:33 -0700 (PDT) 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 Org-mime should now fully support the WL mailer, thanks to Eric S Fraga. I've updated the documentation on worg, but basically to use org-mime with WL, you need only add the following to your config. --8<---------------cut here---------------start------------->8--- (require 'org-mime) (setq org-mime-library 'semi) --8<---------------cut here---------------end--------------->8--- Now if any VM users want to add VM mime syntax to the `org-mime-file' and `org-mime-multipart' functions we should have full coverage of the big 3 Emacs mailers. Thanks -- Eric "Eric Schulte" writes: > 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. > > ('semi (concat > "--" "<>-{\n" > "--" "[[text/plain]]\n" plain > "--" "[[text/html]]\n" html > "--" "}-<>\n")) > > 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