From mboxrd@z Thu Jan 1 00:00:00 1970 From: lukasz.stelmach@iem.pw.edu.pl Subject: Re: Sending org-mode nodes Date: Thu, 19 Nov 2009 11:20:53 +0100 Message-ID: <87hbsqu86y.fsf@dasa3.iem.pw.edu.pl> References: <87aayjaih8.fsf@dasa3.iem.pw.edu.pl> <873a4a29ce.wl%maus.david@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NB48K-0006je-Ex for emacs-orgmode@gnu.org; Thu, 19 Nov 2009 05:21:00 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NB48F-0006iF-79 for emacs-orgmode@gnu.org; Thu, 19 Nov 2009 05:20:59 -0500 Received: from [199.232.76.173] (port=51732 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NB48E-0006i8-Vc for emacs-orgmode@gnu.org; Thu, 19 Nov 2009 05:20:55 -0500 Received: from lo.gmane.org ([80.91.229.12]:38491) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NB48E-0003SN-Dx for emacs-orgmode@gnu.org; Thu, 19 Nov 2009 05:20:54 -0500 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NB48C-00055i-4d for emacs-orgmode@gnu.org; Thu, 19 Nov 2009 11:20:52 +0100 Received: from dasa3.iem.pw.edu.pl ([194.29.147.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Nov 2009 11:20:52 +0100 Received: from lukasz.stelmach by dasa3.iem.pw.edu.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 19 Nov 2009 11:20: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: emacs-orgmode@gnu.org David Maus writes: > At Wed, 18 Nov 2009 17:46:43 +0100, > lukasz.stelmach@iem.pw.edu.pl wrote: >> I've just made a note which I would like to send (with its attachment) >> via email. Is it possible? I mean, I would like to select a node (C-c @) >> and then few keystrokes more and have the letter sent or at least opened >> in a mail composing window with the subject set to the title of the >> note, attachments attached and waiting for me to choose an addressee. > > It *should* be possible but as far as I am aware of there's currently > no implementation for this. As Orgmode does not depend on any > particular email program this would require a particular function for > every supported mail program. I.e. a function that executes the right > things to let the mail program compose a new mail. I suppuse that by writing "program" you mean Emacs' compose-mail, gnus etc. External handler of course, would be useful too. > Hum. As I tend to write important mails first below a corresponding > todo headline, than copy'n'paste it such functionality could be > useful. > > I suppose the first thing to do is brewing a function that scrapes all > relevant information (i.e.: subject, content, attachments) and returns > a property list that can be used by mua specific functions to call the > mua and instruct it to create the mail. > > What about: > > - Subject: current entries headline without todo keyword and tags OK, however, inclusion of todo and/or tags should be optional and possible for those who would like to exchange those information with one another. Converting those to iCal attachment is yet another issue. > - Body: the entries content up to the next headline w/o drawers and > schedule/deadline Fine but the above note applies. > - Attachments: full path to the entry's attachments That's right and in case of compose-mail/gnus and whatever else a letter with files attached should appear. Later at home I thought about it some more: - The To, Cc and Bcc headers read from :PROPERTIES: or collected with minibuffer. - Sent-To field in the PROPERTIES drawer filed after sending mail. This might require collecting addresses from within org-mode before invoking mail program (the above). - Move the list from Sent-To to Old-Sent-To everytime the node or its child or its attachment changes (this might be quite difficult to implement but awesome to have) - Custom mail headers to include in the PROPERTIES drawer. Something like :PROPERTIES: :MailHeader-X-Face: l;aksjdf;ioavh9p8qrty9 :END would result in X-Face: in the mail. X-Face, however, would probably be configured with a mua but I am sure someone will find it useful. - Message-ID derived from node's ID. This would be quite useful for associating replies with original notes/nodes. These are of course my whishful thoughts, especially the one with Old-Sent-To. I think, however, that org-mode with them implemented would be even greater tool than it is today. -- Miłego dnia, Łukasz Stelmach