From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/78741 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general,gmane.emacs.bbdb.user 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 Message-ID: <87liygxskd.fsf_-_@marauder.physik.uni-ulm.de> References: <19910.60231.151907.922622@gargle.gargle.HOWL> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1304924740 23329 80.91.229.12 (9 May 2011 07:05:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 9 May 2011 07:05:40 +0000 (UTC) Cc: ding@gnus.org, Leo , bbdb-info@lists.sourceforge.net To: Roland Winkler Original-X-From: ding-owner+M27043@lists.math.uh.edu Mon May 09 09:05:33 2011 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 1QJKX6-00081I-Le for ding-account@gmane.org; Mon, 09 May 2011 09:05:32 +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 1QJKWw-0002se-Ng; Mon, 09 May 2011 02:05:22 -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 1QJKWv-0002sU-4T for ding@lists.math.uh.edu; Mon, 09 May 2011 02:05:21 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1QJKWt-0007WW-7Q for ding@lists.math.uh.edu; Mon, 09 May 2011 02:05:20 -0500 Original-Received: from mail.uni-ulm.de ([134.60.1.11]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QJKWq-0005Fd-V0 for ding@gnus.org; Mon, 09 May 2011 09:05:17 +0200 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.175]) by mail.uni-ulm.de (8.14.3/8.14.2) with ESMTP id p49759WD010527; Mon, 9 May 2011 09:05:09 +0200 (MEST) Original-Received: from localhost (localhost [127.0.0.1]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id 55E8A10AFA; Mon, 9 May 2011 09:05:09 +0200 (CEST) X-Face: 1;h7XMU[7l}$T@J.D}5z*w8Tg'}B5ArAWc8>2X~otB;kOjKs8X%|hTC#dG:%Vpx")x7S/`v :VXU#fZW$X$zdhEU.RfVQ@<-m9IuN{Hm"fW{,5]6kR'M*vEs+{5Cj!L(JTRzA$(},?5J=sm;%Od, ding@gnus.org, Leo , bbdb-info@lists.sourceforge.net In-Reply-To: <19910.60231.151907.922622@gargle.gargle.HOWL> (Roland Winkler's message of "Sun, 8 May 2011 14:13:11 -0500") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (gnu/linux) X-DCC-debian-Metrics: poseidon 1169; Body=4 Fuz1=4 Fuz2=4 X-Virus-Scanned: by amavisd-new X-MIME-Autoconverted: from 8bit to quoted-printable by mail.uni-ulm.de id p49759WD010527 X-Spam-Score: 0.5 (/) X-Spam-Report: SpamAssassin (3.3.1 2010-03-16) analysis follows Bayesian score: 0.0000 Ham tokens: 0.000-1628--5961h-0s--0d--H*UA:Emacs, 0.000-1485--5439h-0s--0d--H*u:Emacs, 0.000-1405--5146h-0s--0d--H*UA:Gnus, 0.000-1405--5145h-0s--0d--H*u:Gnus, 0.000-1352--4952h-0s--0d--H*u:linux Spam tokens: 0.903-1--1h-14s--0d--ooO, 0.892-1890--3779h-46699s--0d--HX-Spam-Relays-External:quimby.gnus.org, 0.892-1890--3779h-46699s--0d--H*RU:quimby.gnus.org, 0.890-1657--3455h-42109s--0d--H*Ad:D*gnus.org, 0.885-73--184h-2115s--1d--U*ding Autolearn status: no 0.0 FREEMAIL_FROM Sender email is freemail (reinersteib+gmane[at]imap.cc) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 2.4 FREEMAIL_REPLYTO Reply-To/From or Reply-To/body contain different freemails List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:78741 gmane.emacs.bbdb.user:2716 Archived-At: On Sun, May 08 2011, Roland Winkler wrote: > On Sun May 8 2011 Leo wrote: >>=20 >> 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. >>=20 >> 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=FCnster)" (gnus-fetch-original-field "From") -> "... (Peter =3D?utf-8?Q?M=3DC3=3D= BCnster?=3D)" > 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)) >>=20 >> --8<---------------cut here---------------end--------------->8--- Bye, Reiner. --=20 ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/