From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?S=C3=A9bastien_Vauban?= Subject: Re: Sending org buffer as mail? Date: Mon, 20 Dec 2010 11:20:49 +0100 Message-ID: <80fwtsrbi6.fsf@missioncriticalit.com> 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> <871v5dusfv.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: 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-mXXj517/zsQ@public.gmane.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Eric, "Eric Schulte" wrote: > I've added two hooks, `org-mime-send-subtree-hook' and > `org-mime-send-buffer-hook' which can be used to do this, for example > the following > > #+begin_src emacs-lisp > (add-hook 'org-mime-send-subtree-hook > (lambda () > (org-entry-put (point) "mail_sent" (current-time-string)))) > #+end_src Maybe we could format the time string as an inactive Org timestamp? I've searched in org-capture for such an example (use of %u) but couldn't s= pot one, at least easily. > will add a mail_sent property with the current time when org-mime-subtree= is > called. The only downside here is that the property is added before the > email is sent, so choosing not to send the email after reviewing it in the > message buffer could result in a misleading mail_sent property, in fact > maybe mail_sent should be changed to mail_composed. I guess too that that name is better. FYI, when I'm M-x'ing org-mime-subtree: - it opens a message mode buffer, but slightly different from the one I have if I do `m' in Gnus: + no Organization field, + no signature + etc. (I'm using `gnus-alias' for handling on-the-fly personality change) - after `C-c C-c', it writes it's sent, but then opens Thunderbird!? I'll have a look at these features. Best regards, Seb --=20 S=C3=A9bastien Vauban _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode-mXXj517/zsQ@public.gmane.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode