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/ ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/