Gnus development mailing list
 help / color / mirror / Atom feed
* Getting message details from message-sent-hook
@ 2003-05-28 17:51 Burton Samograd
  2003-05-28 19:25 ` Burton Samograd
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Burton Samograd @ 2003-05-28 17:51 UTC (permalink / raw)


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




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-05-29 17:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-28 17:51 Getting message details from message-sent-hook Burton Samograd
2003-05-28 19:25 ` Burton Samograd
2003-05-29  3:22   ` Bill White
2003-05-29 15:08     ` Burton Samograd
2003-05-29 17:30       ` Ted Zlatanov
2003-05-28 19:57 ` Johan Bockgård
2003-05-28 20:14 ` Benjamin Rutt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).