From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: Questions about mail, MIME, etc. Date: Fri, 09 May 2014 09:45:52 +0800 Message-ID: <87vbtf67xr.fsf@ericabrahamsen.net> References: <20140508133125.GA20746@pdavismbp15.iscinternal.com> <87bnv8730t.fsf@ericabrahamsen.net> <20140508164359.GB88364@pdavismbp15.iscinternal.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57328) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiZpq-0008JC-Nr for emacs-orgmode@gnu.org; Thu, 08 May 2014 21:42:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WiZpk-0007GE-Fv for emacs-orgmode@gnu.org; Thu, 08 May 2014 21:42:50 -0400 Received: from plane.gmane.org ([80.91.229.3]:47331) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiZpk-0007G0-8p for emacs-orgmode@gnu.org; Thu, 08 May 2014 21:42:44 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WiZpi-0004QW-Hm for emacs-orgmode@gnu.org; Fri, 09 May 2014 03:42:42 +0200 Received: from 114.248.31.91 ([114.248.31.91]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 May 2014 03:42:42 +0200 Received: from eric by 114.248.31.91 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 May 2014 03:42:42 +0200 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Peter Davis writes: > On Thu, May 08, 2014 at 10:34:26PM +0800, Eric Abrahamsen wrote: >> Peter Davis writes: >> >> Yeah I got that error too, a while ago, and your message prompted me to >> look at it. It seems like org-mime is just a bit behind the state of >> org-export, and fixing that one dead function link is enough to make it >> work again. I've attached a patch. > > Excellent! That worked. Thank you! Okay, I'll start a new thread and see if we can get the patch accepted. >> >> Generating a message buffer is pretty much hard-coded into org-mime. >> Once you're in that buffer, though, the (non-interactive) function >> mml-generate-mime will return the fully encoded mime message as a >> string -- you could save that to a file and do something else with it. >> I'm not 100% confident that's the simplest way to do that. > > Ok, I was able to send the message through gnus, even though I don't (normally) use it as a mail reader. > >> > 3) What I'd really like is a multipart/alternative message where >> > one part is text/plain, and looks exactly like the emacs buffer >> > display, and the other part is text/html, and >> > looks like what org would export to html, complete with tables, images, etc. >> >> As far as I know, that's exactly what org-mime does! > > Almost. It looks like org-mime puts the actual contents of the buffer > into the text/plain part, including links, etc. that would normally be > hidden on display. I think it would be > more useful to make the text/plain part contain what would be output from exporting to text. But maybe that's just my preference. org-mime assumes a native 'org export format for the plain text part of the email. That looks like it's hard-coded in `org-mime-compose', unfortunately. Eric