Gnus development mailing list
 help / color / mirror / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
To: Roland Winkler <winkler@gnu.org>
Cc: ding@gnus.org, Leo <sdl.web@gmail.com>, bbdb-info@lists.sourceforge.net
Subject: gnus-fetch-field and gnus-fetch-original-field (was: `bbdb-message-header' can not fetch hidden fields in Gnus)
Date: Mon, 09 May 2011 09:05:06 +0200	[thread overview]
Message-ID: <87liygxskd.fsf_-_@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <19910.60231.151907.922622@gargle.gargle.HOWL> (Roland Winkler's message of "Sun, 8 May 2011 14:13:11 -0500")

On Sun, May 08 2011, Roland Winkler wrote:

> On Sun May 8 2011 Leo wrote:
>> 
>> I am using latest No Gnus from Emacs-24 (trunk). It seems if a header
>> field in Gnus is hidden, bbdb-message-header return nil. I don't know if
>> this is intended.
>> 
>> I use the following patch in my local BBDB copy.
>
> I am not a Gnus expert. gnus-fetch-field was used already by BBDB
> v2. Is there someone reading this list who knows the (intended)
> difference between gnus-fetch-field and gnus-fetch-original-field?

[ Cc-ing ding@gnus. ]  I don't know.  The doc strings need
improvement.

> Well, the latter uses the undocumented internal variable
> gnus-original-article-buffer. But what does this mean in real life?

I guess `gnus-original-article-buffer' holds encoded content.  Yes...

  (gnus-fetch-field "From")          -> "... (Peter Münster)"
  (gnus-fetch-original-field "From") -> "... (Peter =?utf-8?Q?M=C3=BCnster?=)"

> Which headers are not available via gnus-fetch-field?

As you might have guessed, this is customizable in Gnus.  See (info
"(gnus)Hiding Headers").

>> --8<---------------cut here---------------start------------->8---
>>  lisp/bbdb-mua.el |    4 ++--
>>  1 files changed, 2 insertions(+), 2 deletions(-)
[...]
>>    (let* ((mua (bbdb-mua))
>> -         (val (cond ((eq mua 'gnus) (gnus-fetch-field header))
>> +         (val (cond ((eq mua 'gnus) (gnus-fetch-original-field header))
>>                      ((eq mua 'vm) (bbdb/vm-header header))
>>                      ((eq mua 'rmail) (bbdb/rmail-header header))
>>                      ((eq mua 'mh) (bbdb/mh-header header))
>> 
>> --8<---------------cut here---------------end--------------->8---

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/



       reply	other threads:[~2011-05-09  7:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <m1fwopel0j.fsf@gmail.com>
     [not found] ` <19910.60231.151907.922622@gargle.gargle.HOWL>
2011-05-09  7:05   ` Reiner Steib [this message]
2011-05-09 14:55     ` gnus-fetch-field and gnus-fetch-original-field Roland Winkler
2011-05-09 16:32       ` Leo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87liygxskd.fsf_-_@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    --cc=bbdb-info@lists.sourceforge.net \
    --cc=ding@gnus.org \
    --cc=sdl.web@gmail.com \
    --cc=winkler@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).