From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: using orgmode to send html mail? Date: Wed, 24 Mar 2010 14:19:46 -0600 Message-ID: <874ok5qxp9.fsf@gmail.com> References: <878w9krtyn.wl%dmaus@ictsoc.de> <871vfa24qo.fsf@gmail.com> <87pr2uww2d.fsf@columbia.edu> <87tys5zrwm.fsf@gmail.com> <87sk7pzk02.fsf@stats.ox.ac.uk> <87tys5r3q6.fsf@gmail.com> <87ocid7cuj.wl%dmaus@ictsoc.de> 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 1NuX3Z-0004Ec-7S for emacs-orgmode@gnu.org; Wed, 24 Mar 2010 16:20:01 -0400 Received: from [140.186.70.92] (port=45048 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuX3W-0004DE-UP for emacs-orgmode@gnu.org; Wed, 24 Mar 2010 16:20:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NuX3S-0005sd-RP for emacs-orgmode@gnu.org; Wed, 24 Mar 2010 16:19:57 -0400 Received: from mail-bw0-f219.google.com ([209.85.218.219]:38781) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NuX3Q-0005sA-PU for emacs-orgmode@gnu.org; Wed, 24 Mar 2010 16:19:54 -0400 Received: by bwz19 with SMTP id 19so6721588bwz.26 for ; Wed, 24 Mar 2010 13:19:51 -0700 (PDT) In-Reply-To: <87ocid7cuj.wl%dmaus@ictsoc.de> (David Maus's message of "Wed, 24 Mar 2010 20:12:52 +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: David Maus Cc: Dan Davison , emacs-orgmode@gnu.org David Maus writes: > Eric Schulte wrote: >>Thanks Dan, > >>I'm happy to hear I'm not the only person who's enjoying playing with >>this :). > >>Aside from changing the mime-delimeters for VM and wanderlust, it seems >>to me that the only remaining step between the current functionality and >>a seamless use of org-mode for email composition, is the resolution of >>images as email attachments. That would allow emails with embedded >>latex (which I personally would find very compelling), as well as >>embedded ditaa diagrams and images. If anyone knows more about mime, >>I'd be interested to hear suggestions, but I may try a first pass using >>`replace-regexp' to replace all links with inline mime image >>attachments. > > Taking a look into the MIME specs (RFC2045ff) regarding this issue is > on my list. My biggest concern with utilizing more MIME capabilities > is, that you have little control over what the recipient's MUA will do. > good point, for example as I recall gmail insists on displaying all images at the bottom of an email message regardless of the placement of their mime spec. I wonder if it's possible for an html image link to reference an attachment? > > Don't know about VM, but with regards to WL I'd imagine something > like: > > - first represent the MIME strukture in a list > > - then call translating functions that insert the appropriate > delimeters > what does it look like (in the text WL buffer) when you attach say an image, or a piece of inline text like a diff file? If WL has it's own mime markup like mml that would be ideal. > >>I've just made a couple of small changes, and pushed this file up to a >>git repo at http://github.com/eschulte/org-html-mail, or for raw elisp >>http://github.com/eschulte/org-html-mail/raw/master/org-mml-htmlize.el > > Just out of curiosity: Why do you write to a temp file and not just > insert the body in a temporary buffer, turn on org-mode and use > org-export-region-as-html (point-min) (point-max) nil t 'string)? > Because `org-export-as-html' requires that the buffer have a path, I believe this is for resolution of relative paths for things like images. Best -- Eric > > -- David > > -- > OpenPGP... 0x99ADB83B5A4478E6 > Jabber.... dmjena@jabber.org > Email..... dmaus@ictsoc.de