From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/52897 Path: main.gmane.org!not-for-mail From: Burton Samograd Newsgroups: gmane.emacs.gnus.general Subject: Getting message details from message-sent-hook Date: 28 May 2003 10:51:41 -0700 Sender: ding-owner@lists.math.uh.edu Message-ID: <874r3f7ydu.fsf@kruhft.vc.shawcable.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1054148470 8795 80.91.224.249 (28 May 2003 19:01:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 28 May 2003 19:01:10 +0000 (UTC) Original-X-From: ding-owner+M1441@lists.math.uh.edu Wed May 28 21:01:06 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19L6Ac-0002HW-00 for ; Wed, 28 May 2003 21:01:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19L6CY-0003rC-00; Wed, 28 May 2003 14:03:06 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19L5uQ-0003lT-00 for ding@lists.math.uh.edu; Wed, 28 May 2003 13:44:23 -0500 Original-Received: (qmail 55700 invoked by alias); 28 May 2003 18:44:22 -0000 Original-Received: (qmail 55695 invoked from network); 28 May 2003 18:44:22 -0000 Original-Received: from main.gmane.org (80.91.224.249) by sclp3.sclp.com with SMTP; 28 May 2003 18:44:22 -0000 Original-Received: from root by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19L5qh-0000Xo-00 for ; Wed, 28 May 2003 20:40:31 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Received: from news by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19L58Q-0005TB-00 for ; Wed, 28 May 2003 19:54:46 +0200 Original-Lines: 27 Original-X-Complaints-To: usenet@main.gmane.org User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:52897 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:52897 Hi, I'm trying to write a function that inserts some information about emails I send into my diary. I'm hoping to be able to get it to write lines like: Mar 28, 2003 To: someone@pobox.com Subject: Hi There So far I've got the following: (defun message-to-diary () (make-diary-entry (concat (calendar-julian-date-string) " To: " " From: "))) (add-hook 'message-sent-hook 'message-to-diary) What I need is functions that get the To and Subject from the mail or post that was sent. Is any of that information available or am I going to have to write something that parses the current *mail* buffer? Thanks for any help. -- burton samograd kruhft@kruhft.dyndns.org http://kruhftwerk.dyndns.org