From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/73492 Path: news.gmane.org!not-for-mail From: Dave Goldberg Newsgroups: gmane.emacs.gnus.general Subject: Re: Set gnus-message-archive-group depending on the From: header Date: Sat, 23 Oct 2010 19:52:00 -0400 Message-ID: <84ocak31sv.fsf@davestoy.home> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1287878009 13137 80.91.229.12 (23 Oct 2010 23:53:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 23 Oct 2010 23:53:29 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M21861@lists.math.uh.edu Sun Oct 24 01:53:28 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P9ntp-0004Ct-Ue for ding-account@gmane.org; Sun, 24 Oct 2010 01:53:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1P9nt8-0004EL-DQ; Sat, 23 Oct 2010 18:52:38 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1P9nt6-0004E0-4S for ding@lists.math.uh.edu; Sat, 23 Oct 2010 18:52:36 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1P9nt4-0002g7-Vt for ding@lists.math.uh.edu; Sat, 23 Oct 2010 18:52:35 -0500 Original-Received: from vms173011pub.verizon.net ([206.46.173.11]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1P9nt4-0003M3-00 for ; Sun, 24 Oct 2010 01:52:34 +0200 Original-Received: from davestoy.home.verizon.net ([unknown] [173.48.216.252]) by vms173011.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LAR00H0GOYLECB0@vms173011.mailsrvcs.net> for ding@gnus.org; Sat, 23 Oct 2010 18:51:58 -0500 (CDT) X-Face: W!bie|rYVd43O:2CkHTb*~s5}Yzx30X<@6Tq_bnP56Hp!xX4sVl4tgYRirjRcke\wfY!JJ9 i?]VIUJicJzq2\!3%7$5R%wi!R[.]Va97q In-reply-to: (Marcin's message of "Sat, 23 Oct 2010 16:14:59 +0000 (UTC)") User-Agent: Gnus/5.110011 (No Gnus v0.11) XEmacs/21.4.22 (linux) X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:73492 Archived-At: > It seems this should be a trivial question but I have not managed to find an > answer to it. What I want is really simple: I would like to save my sent > messages depending on what address I send them from. I guess I could use > something like: > (eval (gnus-message-archive-group 'foo)) > as part of my posting-styles but this will not work if I change the > From header on the fly, e.g. via gnus-alias (I understand this is > the right tool for the job, and can be used in combination with > posting-styles). Any ideas how I could do that? It's been ages since I've used it so I no longer have example code, but I used to have a lambda in message-send-hook that would set the GCC header based on the To address. Would be easy enough to do a similar concept to base on From. -- Dave Goldberg david.goldberg6@verizon.net