From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/1595 Path: news.gmane.org!not-for-mail From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.user Subject: Re: gnus-sum and gnus-extra-headers Date: Tue, 10 Dec 2002 09:41:52 +0100 Organization: University of Dortmund, Germany Message-ID: <84smx6p8of.fsf@lucy.cs.uni-dortmund.de> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138668321 11959 80.91.229.2 (31 Jan 2006 00:45:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 00:45:21 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:29:24 2006 Original-Path: quimby.gnus.org!newsfeed1.e.nsc.no!nsc.no!nextra.com!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!lucy.is.informatik.uni-duisburg.DE!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: lucy.is.informatik.uni-duisburg.de (134.91.35.216) Original-X-Trace: fu-berlin.de 1039509712 33606083 134.91.35.216 (16 [73968]) User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:BClPl6btGX1P0rEl13skku2T7CM= Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:1735 Original-Lines: 49 X-Gnus-Article-Number: 1735 Tue Jan 17 17:29:24 2006 Xref: news.gmane.org gmane.emacs.gnus.user:1595 Archived-At: Uli Wortmann writes: > A year ago, I added a function to see the message size in the summary > buffer (following a posting from Kai). Now, I tried to see the > recipient instead of the sender in archive groups. It turns out, the > the following code is somehow disabling the > gnus-extra-headers/gnus-ignored-from-addresses business: > > (require 'gnus-sum) > (defsubst kai-gnus-summary-line-message-size (header) > (let ((c (or (mail-header-chars header) 0))) > (cond ((< c 1000) (format "%db" c)) > ((< c (* 1000 1000)) (format "%dk" (/ c 1024.0))) > (t (format "%dM" (/ c (* 1024.0 1024))))))) > (add-to-list 'gnus-summary-line-format-alist > '(?k (kai-gnus-summary-line-message-size gnus-tmp-header) > ?s)) Are you saying that the above code makes it break if you use the settings below? That would be really weird, for the settings below do not use the above code at all! How can code that isn't used break anything? > Here is my setup of the gnus extra headers > > (setq gnus-extra-headers '(To CC Newsgroups)) > (setq nnmail-extra-headers gnus-extra-headers) > (setq gnus-summary-line-format "%U%R%z%I%(%[%4L: %-20,20f%]%) %s\n") > (setq gnus-ignored-from-addresses ".*uli\.wortmann.*") Irrelevant hint: write \\. instead of \. in Lisp strings in regexes when you mean a literal dot. For regexes in Lisp strings, backslashes need to be doubled. > I'm not a list programmer, but I'd appreciate any hint. But since you do not use %k in gnus-summary-line-format, you can easily turn my code off. PS: I had "below settings" instead of "settings below" in an earlier draft of this message, but then changed it because it looked strange. Yet, "above code" and "below settings" appear to be quite analogous. Hm. Maybe I could have used "code above" together with "settings below" for consistency. Which is (are) correct? -- ~/.signature is: umop ap!sdn (Frank Nobis)