From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/10313 Path: news.gmane.org!not-for-mail From: William Xu Newsgroups: gmane.emacs.gnus.user Subject: Change article "From" field Date: Wed, 06 Feb 2008 13:12:55 +0900 Organization: the Church of Emacs Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1202271215 367 80.91.229.12 (6 Feb 2008 04:13:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Feb 2008 04:13:35 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Wed Feb 06 05:13:57 2008 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JMbfX-0006GS-L1 for gegu-info-gnus-english@m.gmane.org; Wed, 06 Feb 2008 05:13:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JMbf5-0008NW-8N for gegu-info-gnus-english@m.gmane.org; Tue, 05 Feb 2008 23:13:27 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JMbf3-0008N4-5O for info-gnus-english@gnu.org; Tue, 05 Feb 2008 23:13:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JMbf1-0008MS-NE for info-gnus-english@gnu.org; Tue, 05 Feb 2008 23:13:24 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JMbf1-0008MP-L2 for info-gnus-english@gnu.org; Tue, 05 Feb 2008 23:13:23 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JMbf1-0002EL-AP for info-gnus-english@gnu.org; Tue, 05 Feb 2008 23:13:23 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JMbes-0005AO-ST for info-gnus-english@gnu.org; Wed, 06 Feb 2008 04:13:14 +0000 Original-Received: from gw.community-engine.co.jp ([210.255.51.230]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Feb 2008 04:13:14 +0000 Original-Received: from william.xwl by gw.community-engine.co.jp with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Feb 2008 04:13:14 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: gw.community-engine.co.jp User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (darwin) Cancel-Lock: sha1:BKA5gRvnu9c2gXcW9mxGD4P9pXY= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:10313 Archived-At: 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