From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/85023 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general,gmane.emacs.orgmode Subject: Re: Capturing outgoing gnus e-mail Date: Wed, 24 Sep 2014 17:04:35 -0400 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87ppekk9wc.fsf@lifelogs.com> References: <8761k3rivi.fsf@kanis.fr> Reply-To: ding@gnus.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1411593024 8697 80.91.229.3 (24 Sep 2014 21:10:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Sep 2014 21:10:24 +0000 (UTC) Cc: emacs-orgmode@gnu.org To: ding@gnus.org Original-X-From: ding-owner+M33267@lists.math.uh.edu Wed Sep 24 23:10:17 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XWtpI-0005fO-5z for ding-account@gmane.org; Wed, 24 Sep 2014 23:10:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1XWtpA-0007lm-QH; Wed, 24 Sep 2014 16:10:08 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1XWtp9-0007lQ-4v for ding@lists.math.uh.edu; Wed, 24 Sep 2014 16:10:07 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1XWtp7-0004hR-P1 for ding@lists.math.uh.edu; Wed, 24 Sep 2014 16:10:07 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1XWtp6-00046x-Ee for ding@gnus.org; Wed, 24 Sep 2014 23:10:04 +0200 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XWtp6-0005SY-45 for ding@gnus.org; Wed, 24 Sep 2014 23:10:04 +0200 Original-Received: from c-98-229-61-72.hsd1.ma.comcast.net ([98.229.61.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Sep 2014 23:10:04 +0200 Original-Received: from tzz by c-98-229-61-72.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Sep 2014 23:10:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 30 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-98-229-61-72.hsd1.ma.comcast.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6;d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:aQD8Zhqbf82YeCowA/se46raFqU= X-Spam-Score: -3.6 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:85023 gmane.emacs.orgmode:91087 Archived-At: On Sat, 14 Jun 2014 10:32:49 +0200 Ivan Kanis wrote: IK> I would like to capture outgoing e-mail in my org file. IK> I use the gcc mechanism in gnus with a nnml backend. IK> I think I have read on the org mailing list that someone has implemented IK> that feature. I did a search but could not find the article. IK> I tried implementing it myself. I had a look at the function IK> gnus-inews-do-gcc. It has the group and the article number. However org IK> link expect the Message-ID header. How do I get it? Well, I use the following to maintain a diary file. It's probably equally easy to use a Org file: (defun message-to-diary () (make-diary-entry (concat (format-time-string "%B %d, %Y %H:%M" (gnus-date-get-time (message-fetch-field "date"))) (if (message-fetch-field "newsgroups") (concat " Sent news To: " (message-fetch-field "newsgroups")) (concat " Sent mail To: " (message-fetch-field "to"))) " Subject: \"" (message-fetch-field "subject") "\"" " Message-ID: " (message-fetch-field "message-id"))) (save-buffer "diary")) (add-hook 'message-sent-hook 'message-to-diary) HTH Ted