From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/37776 Path: main.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.gnus.general Subject: Re: custom function to modify Gcc Date: Tue, 14 Aug 2001 16:22:07 -0400 Organization: Cienfuegos Sender: tzz@northernlight.com Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1035173131 15575 80.91.224.250 (21 Oct 2002 04:05:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:05:31 +0000 (UTC) Cc: ding@gnus.org Return-Path: Return-Path: Original-Received: (qmail 23689 invoked from network); 14 Aug 2001 20:22:41 -0000 Original-Received: from tantalum.northernlight.com (HELO bronze.nimbus.northernlight.com) (205.181.75.60) by gnus.org with SMTP; 14 Aug 2001 20:22:41 -0000 Original-Received: from onyx.nimbus.northernlight.com (onyx.nimbus.northernlight.com [10.0.3.57]) by bronze.nimbus.northernlight.com (8.10.0/8.10.0) with ESMTP id f7EKMAq26111; Tue, 14 Aug 2001 16:22:10 -0400 (EDT) Original-To: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) In-Reply-To: (Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "Tue, 14 Aug 2001 22:03:43 +0200") User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.104 Original-Lines: 42 Xref: main.gmane.org gmane.emacs.gnus.general:37776 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:37776 Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Gro=DFjohann) writes: > prj@po.cwru.edu (Paul Jarc) writes: >> Check out the "Archived Messages" node in the manual; you can include >> a function in the value of gnus-message-archivegroup or >> gnus-outgoing-message-group to decide how to set Gcc. You can also >> use posting styles to set Gcc; see the "Posting Styles" node. > > This, however, takes place when setting up the message buffer. But > maybe Ted wants to do stuff after typing in the Subject header and > stuff? So it would be useful to have something in message-send-hook. > Maybe header-action.el (by Holger Schauer, I think) is your friend, > Ted? Kai is right, I want the Gcc header to be rewritten when the message is being sent. The archiving functionality of Gnus seems to be on the preparation side, which is OK for most users. I got header-action.el from http://www.coling.uni-freiburg.de/~schauer/resources/emacs/header-action.el= .gz It's not immediately obvious to me how to activate it the way I want. Should it be something like (after loading the lib and adding the hook) (setq header-action-list '(("Subject:"=20 (".*status report.*" (lambda() (save-excursion (mail-position-on-field "Gcc") (insert ",status") ; there already is an archive entry here )))))) I use message.el, so I'm not sure whether mail-position-on-field will work, or if I'm doing the right thing. Any help is appreciated. I am definitely not a Lisp programmer. Thanks Ted