From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ethan Ligon Subject: Re: Sending org buffer as mail? Date: Sat, 18 Dec 2010 23:26:48 +0000 (UTC) Message-ID: References: <4D09C7F2.8020806@gmail.com> <87sjxy168c.fsf@gmail.com> <4D09D3BB.3020508@gmail.com> <87bp4lxl60.fsf@fastmail.fm> <871v5hw5go.fsf@gmail.com> <87sjxw9jii.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=35244 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PU6B5-0004rH-QG for emacs-orgmode@gnu.org; Sat, 18 Dec 2010 18:27:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PU6B4-0004Gh-DB for emacs-orgmode@gnu.org; Sat, 18 Dec 2010 18:27:03 -0500 Received: from lo.gmane.org ([80.91.229.12]:56089) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PU6B4-0004GS-3G for emacs-orgmode@gnu.org; Sat, 18 Dec 2010 18:27:02 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PU6B2-00080Y-8h for emacs-orgmode@gnu.org; Sun, 19 Dec 2010 00:27:00 +0100 Received: from c-24-5-193-224.hsd1.ca.comcast.net ([24.5.193.224]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 19 Dec 2010 00:27:00 +0100 Received: from ligon by c-24-5-193-224.hsd1.ca.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 19 Dec 2010 00:27:00 +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: emacs-orgmode@gnu.org Eric Schulte gmail.com> writes: > > Jean-Marie Gaillourdet gaillourdet.net> writes: > > > Hi Eric, > > > > "Eric Schulte" gmail.com> 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. > Eric- This is just great; thanks! Two additional suggestions: 1. The subject line should be exported as ascii also, to avoid funky orgmode markup messing things up (I often have links in my headlines, for example). 2. Could we get some indication that the subtree's been mailed? I'm thinking of having org-mime-subtree set a property MAIL_SENT to a time stamp or perhaps to the message id. This way, if we inspect the subtree later we'll know if and when it was actually sent. A possible bonus if we use the message id: when we get to the point of getting replies *back* into the org file it'll be possible to thread things properly. -Ethan