Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Change article "From" field
@ 2008-02-06  4:12 William Xu
  0 siblings, 0 replies; 6+ messages in thread
From: William Xu @ 2008-02-06  4:12 UTC (permalink / raw)
  To: info-gnus-english

I tried to set current article's "From" field based on its contents. For
example, if the article content looks like: 

,----
| Timestamp: 2008/02/06
| Author: william
`----

I want to use the Author line to set "From" field, so that it does not
display as "nobody". (This is a RSS group) I tried doing this in
gnus-article-prepare-hook, calling something like:

,----
| (gnus-summary-edit-article 2)
| (goto-char (point-min))
| (insert (format "From: %s\n" author))
| (gnus-article-edit-done)
`----

But it looks like this will be called again and again. Am I using the
wrong hook?

-- 
William

http://williamxu.net9.org

^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <mailman.7018.1202271207.18990.info-gnus-english@gnu.org>]

end of thread, other threads:[~2008-02-08  8:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-06  4:12 Change article "From" field William Xu
     [not found] <mailman.7018.1202271207.18990.info-gnus-english@gnu.org>
2008-02-06  6:36 ` Katsumi Yamaoka
2008-02-06  8:54   ` William Xu
2008-02-06 20:27   ` Reiner Steib
2008-02-07  7:34     ` William Xu
     [not found] ` <foed64$g7c$1@news.sap-ag.de>
2008-02-08  8:31   ` William Xu

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).