From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/16682 Path: news.gmane.org!not-for-mail From: nljlistbox2@gmail.com (N. Jackson) Newsgroups: gmane.emacs.gnus.user Subject: Trouble with extra headers Date: Sat, 08 Feb 2014 17:30:48 -0400 Organization: Aioe.org NNTP Server Message-ID: <87sirts35j.fsf@moondust.localdomain> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1391898325 20908 80.91.229.3 (8 Feb 2014 22:25:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Feb 2014 22:25:25 +0000 (UTC) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sat Feb 08 23:25:34 2014 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WCGL8-0005qo-0y for gegu-info-gnus-english@m.gmane.org; Sat, 08 Feb 2014 23:25:34 +0100 Original-Received: from localhost ([::1]:48209 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WCGL7-0006ZU-Kt for gegu-info-gnus-english@m.gmane.org; Sat, 08 Feb 2014 17:25:33 -0500 Original-Path: usenet.stanford.edu!goblin1!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-Lines: 65 Original-NNTP-Posting-Host: 8zD5md1O4tyyRz7HmX8fhA.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:pjnI55+5XSBfrftsinxmMjlLiB4= Original-Xref: usenet.stanford.edu gnu.emacs.gnus:87811 X-Mailman-Approved-At: Sat, 08 Feb 2014 17:24:34 -0500 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.14 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: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.gnus.user:16682 Archived-At: I'm trying to use gnus-extra-headers and I don't seem to quite have the trick of it. I have a header "Delivered-To" on my local IMAP server which identifies which mail server a message was retrieved from. I want eventually to use the value of this header in Gnus select methods to chose my "From" header and outbound smtp server for replies. As an initial test, I wanted to try limiting my Group Summary buffer using the value of this header, and I wanted to try displaying the value of it in my summary line. I added (setq gnus-extra-headers '(To Newsgroups Delivered-To)) to my .gnus.el file. (Eventually I would have this in the group parameters for my local IMAP server, but it seemed simplest to add it globally at first.) Then, in my Summary buffer I try to use the /x command to limit by an extra header. This prompts me for the header to limit by: Limit extra header (default To): and I can choose "Delivered-To" using tab completion, so clearly the change to gnus-extra-headers "took" at some level. (Previously "Delivered-To" wasn't accepted here.) But then at the subsequent prompt Limit to header Delivered-To (regexp): whatever I enter seems to result in no matches. For example if I simply enter the leter "a", the response is "Found no matches for "a"". Although I would think this should match for example at least all my accounts on gmail as "gmail" has an "a" in it. I checked the headers of a few emails in the group by opening them and using C-u g to show all headers, and the "Delivered-To" header is there and contains nothing unexpected. For example, here is one: Delivered-To: nljlistbox2@gmail.com I thought I might have a regular expression problem, but when I do the same thing with the "To" header, I get my Summary buffer "limited" as expected. What could I be missing? I also tried to add the value of the Delivered-To header to my summary line. I changed (setq gnus-summary-line-format "%U%R%z%I%(%[%4L:%&user-date; %-23,23f%]%) %s\n") to (setq gnus-summary-line-format "%U%R%z%I%(%[%4L:%&user-date;%~(form (gnus-extra-header 'Delivered-To))@ %-23,23f%]%) %s\n") but it makes no difference (or possibly adds a space or two). Does this suggest that Gnus is not reading/saving the values of the "Delivered-To" header when it retrieves the headers for my mail, and only retrieves the value when I open the mail?