From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84065 Path: news.gmane.org!not-for-mail From: Uwe Brauer Newsgroups: gmane.emacs.gnus.general Subject: display FROM based on BBDB Date: Tue, 21 Jan 2014 15:17:11 +0100 Message-ID: <87k3dtifmg.fsf@gilgamesch.quim.ucm.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1390313863 2092 80.91.229.3 (21 Jan 2014 14:17:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Jan 2014 14:17:43 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M32317@lists.math.uh.edu Tue Jan 21 15:17:50 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W5c9E-0007qc-N6 for ding-account@gmane.org; Tue, 21 Jan 2014 15:17:49 +0100 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 1W5c8w-0006ig-RY; Tue, 21 Jan 2014 08:17:30 -0600 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 1W5c8v-0006iW-HU for ding@lists.math.uh.edu; Tue, 21 Jan 2014 08:17:29 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1W5c8t-0001kZ-1G for ding@lists.math.uh.edu; Tue, 21 Jan 2014 08:17:28 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1W5c8r-0007ck-4s for ding@gnus.org; Tue, 21 Jan 2014 15:17:25 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W5c8q-0007fh-Vz for ding@gnus.org; Tue, 21 Jan 2014 15:17:24 +0100 Original-Received: from gilgamesch.quim.ucm.es ([147.96.12.99]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Jan 2014 15:17:24 +0100 Original-Received: from oub by gilgamesch.quim.ucm.es with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Jan 2014 15:17:24 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 33 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: gilgamesch.quim.ucm.es Mail-Copies-To: never X-Hashcash: 1:20:140121:gmane.emacs.gnus.general::vMVzC10KOAR8P1jS:00000000000000000000000000000000000002y0i User-Agent: Gnus/5.130006 (Ma Gnus v0.6) XEmacs/21.5-b33 (linux) Cancel-Lock: sha1:vq3CtrQ5dMKRmjF6474nZQc3oTA= X-Spam-Score: -2.5 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84065 Archived-At: Hello I just found out about http://www.emacswiki.org/emacs-se/BbdbAndGnusAuthorNames in which it is described how gnus displays the from field based on the Author entry in BBDB. There seems to be to possibilities - adding %uB to the gnus-summary-line-format - or using the functions the author described. None worked for me. My gnus-summary-line-format is %U%R%z%I%N %(%[ %-10,10n%]%) %-10,10~(form (rfc2047-decode-string (gnus-extra-header 'To)))@ [%-25,25s%] %D %k %L I tried to add %uB which seems to do what I want, at least partially but adds and unwanted + in front of the authors BBDB name. I tried out %U%R%z%I%N %(%[ %-10,10%uB%]%) %-10,10~(form (rfc2047-decode-string (gnus-extra-header 'To)))@ [%-25,25s%] %D %k %L The code which is published in emacswiki does not work for since emacs complains about the use of string= which only allows 2 arguments but the author seems to have used 4. Does anybody use %uB and if so how? thanks Uwe Brauer