From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Landscheidt Newsgroups: gmane.emacs.help Subject: Re: Setting gnus-message-archive-group in message-send-hook Date: Tue, 20 Sep 2011 22:53:05 +0000 Organization: Message-ID: References: <87sjnvtmzb.fsf@debian.i-did-not-set--mail-host-address--so-tickle-me> <4E76FE68.40705@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1316559215 17248 80.91.229.12 (20 Sep 2011 22:53:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 20 Sep 2011 22:53:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 21 00:53:31 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R69Bz-0008Ln-75 for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Sep 2011 00:53:31 +0200 Original-Received: from localhost ([::1]:53164 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R69By-0000SB-Kv for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Sep 2011 18:53:30 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:47772) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R69Bv-0000S4-20 for help-gnu-emacs@gnu.org; Tue, 20 Sep 2011 18:53:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R69Bs-0002Fy-UL for help-gnu-emacs@gnu.org; Tue, 20 Sep 2011 18:53:27 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:55980) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R69Bs-0002Fu-PI for help-gnu-emacs@gnu.org; Tue, 20 Sep 2011 18:53:24 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1R69Br-0008Ia-2d for help-gnu-emacs@gnu.org; Wed, 21 Sep 2011 00:53:23 +0200 Original-Received: from d177187.adsl.hansenet.de ([80.171.177.187]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 Sep 2011 00:53:23 +0200 Original-Received: from tim by d177187.adsl.hansenet.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 21 Sep 2011 00:53:23 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 23 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: d177187.adsl.hansenet.de Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:9IqUUxqUozp8k5BSyZt9wBmABI4= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82268 Archived-At: Marcin Wlodarczak wrote: >>> The problem is, however, that this only sets the Gcc line for the >>> *following message* not the one being sent. What am I doing wrong >>> here? >> Either change the Gcc: header in your hook, or - probably >> preferable - see if the fine manual for >> gnus-message-archive-group can be applied in your case: > Thanks but I don't quite follow. I thought setting > gnus-message-archive-group is the way to change the Gcc header. > Anyway, as I mentioned, it does work (it sets the Gcc line to the > specified group) but too late as it were. gnus-message-archive-group specifies which (if any) Gcc: header is inserted when a message buffer is *created*. The Gcc: header at the time of *sending* the message specifies where it is archived. Tim P. S.: Please don't post and mail at the same time. Thanks!