From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/68771 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.emacs.gnus.general Subject: Evaluation of `gnus-message-archive-group' vs. `gnus-posting-styles' Date: Mon, 20 Jul 2009 16:09:01 +0200 Message-ID: <87y6qj78g2.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1248099025 20970 80.91.229.12 (20 Jul 2009 14:10:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Jul 2009 14:10:25 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M17192@lists.math.uh.edu Mon Jul 20 16:10:17 2009 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.50) id 1MStZI-0004f8-CT for ding-account@gmane.org; Mon, 20 Jul 2009 16:10:16 +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 1MStYN-0002Dn-3N; Mon, 20 Jul 2009 09:09:19 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1MStYK-0002DW-V2 for ding@lists.math.uh.edu; Mon, 20 Jul 2009 09:09:16 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1MStYJ-0004H5-UX for ding@lists.math.uh.edu; Mon, 20 Jul 2009 09:09:16 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1MStYs-00039H-00 for ; Mon, 20 Jul 2009 16:09:50 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MStYH-0003YG-AJ for ding@gnus.org; Mon, 20 Jul 2009 14:09:13 +0000 Original-Received: from laptop-147-210-128-170.labri.fr ([147.210.128.170]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Jul 2009 14:09:13 +0000 Original-Received: from ludo by laptop-147-210-128-170.labri.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Jul 2009 14:09:13 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: laptop-147-210-128-170.labri.fr X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 2 Thermidor an 217 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 821D 815D 902A 7EAB 5CEE D120 7FBA 3D4F EB1F 5364 X-OS: x86_64-unknown-linux-gnu User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:q4M5Bh3ReG8SWc8rBml+38efl5c= X-Spam-Score: -3.6 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:68771 Archived-At: Hello, I wanted to have the following archival setup: --8<---------------cut here---------------start------------->8--- (setq gnus-message-archive-group '((let ((from (message-fetch-field "From"))) (cond ((string-match "ludo@gnu\\.org" from) "Sent-gnu") (t "Sent"))))) --8<---------------cut here---------------end--------------->8--- However, it doesn't work as expected because `gnus-posting-styles' (which changes the `From:' header) hasn't yet been taken into account at the time `gnus-message-archive-group' is evaluated. AFAICS this is due to the order in which the relevant hooks are added in `gnus-setup-message'. IMO the order should be changed so that `gnus-posting-styles' is honored before `gnus-message-archive-group', and the documentation should make it explicit. What do you think? Thanks, Ludo'.