From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: Sending org buffer as mail? Date: Fri, 17 Dec 2010 14:26:47 -0700 Message-ID: <87sjxw9jii.fsf@gmail.com> References: <4D09C7F2.8020806@gmail.com> <87sjxy168c.fsf@gmail.com> <4D09D3BB.3020508@gmail.com> <87bp4lxl60.fsf@fastmail.fm> <871v5hw5go.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=53943 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PThqm-0006LT-FQ for emacs-orgmode@gnu.org; Fri, 17 Dec 2010 16:28:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PThqk-0003YV-W6 for emacs-orgmode@gnu.org; Fri, 17 Dec 2010 16:28:28 -0500 Received: from mail-gx0-f180.google.com ([209.85.161.180]:64969) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PThqk-0003X8-SL for emacs-orgmode@gnu.org; Fri, 17 Dec 2010 16:28:26 -0500 Received: by mail-gx0-f180.google.com with SMTP id 19so659709gxk.39 for ; Fri, 17 Dec 2010 13:28:26 -0800 (PST) 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: Jean-Marie Gaillourdet Cc: Oscar Carlsson , Matt Lundin , emacs-orgmode@gnu.org, Jeff Horn , Rainer M Krug Jean-Marie Gaillourdet writes: > Hi Eric, > > "Eric Schulte" writes: > >> Hi Matt, >> >> This looks great, how would you feel about trying to fold this into >> org-mime, or would you mind if I did so. I've already mimicked your >> function to set subjects of outgoing emails to match the title of the >> org-mode buffer. I think that generalizing the org-mime functions to >> operate over either subtrees or whole files, and to output either html >> or plain text should cover all use cases with maximal code re-use. > > does it also support using ascii exports as text part and the html > export as html part in a multi part message? > It does now. In the version I just pushed up an html and ascii export can be accomplished by setting the :MAIL_FMT: property to html-ascii, or by calling either `org-mime-send-buffer' or `org-mime-send-subtree' with 'html-ascii as an argument. Best -- Eric > > Thanks for org-mime, I'll try it tomorrow. > > Cheers, > Jean-Marie