From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/69140 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: Folded subject line with inserted Keywords line Date: Thu, 15 Oct 2009 21:05:36 +0200 Message-ID: <87tyy0mq9r.fsf@marauder.physik.uni-ulm.de> References: <87r5tl1eoz.fsf@newsguy.com> <87pr94x6e3.fsf@marauder.physik.uni-ulm.de> <87ske0z9u6.fsf@newsguy.com> 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: 8bit X-Trace: ger.gmane.org 1255633653 26512 80.91.229.12 (15 Oct 2009 19:07:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Oct 2009 19:07:33 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M17555@lists.math.uh.edu Thu Oct 15 21:07:23 2009 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.50) id 1MyVfX-000344-Ba for ding-account@gmane.org; Thu, 15 Oct 2009 21:07:23 +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 1MyVek-0000No-Dc; Thu, 15 Oct 2009 14:06:34 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1MyVej-0000NX-0R for ding@lists.math.uh.edu; Thu, 15 Oct 2009 14:06:33 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1MyVef-0000KI-UD for ding@lists.math.uh.edu; Thu, 15 Oct 2009 14:06:32 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1MyVef-0007AJ-00 for ; Thu, 15 Oct 2009 21:06:29 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1MyVeY-0002Tc-RR for ding@gnus.org; Thu, 15 Oct 2009 21:06:22 +0200 Original-Received: from p4fd46dfd.dip.t-dialin.net ([79.212.109.253]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 Oct 2009 21:06:22 +0200 Original-Received: from Reiner.Steib by p4fd46dfd.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 Oct 2009 21:06:22 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org Original-Lines: 66 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p4fd46dfd.dip.t-dialin.net X-Face: #vK]N[`vqjuod*|)'[iD7/"3AB-ApT%fmN"LWAg@oS7OesGv~)n[OBTLM#I="J'Y^-7I I/ps7o_'IK@#-Rs{::DZ@O8yS|fexe,XslY[:dNWOb~>?mC-&i_c)say:"\IpA.5U.b]'NY;Pks{lb h.+#6%DpZuaK3dcHB`Av3zc:r!C%~s0&m,tWj]&},qg.+0ww2gK%f!:GK|wMl.I!(voY*1"^li8"~B BNG)9LvPi?^DMR-GVDnZqhu*3Hi,+g=wFhI)BL6&u{EOVEHjVEVq~d?_}lMntWAc3(6?kftjc>_f>! g0wM(qPM$d5]^TT_Qyi&L?LGVG)SHN;Gk/,pkY9,~ Mail-Copies-To: nobody User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:Aunxt/Jy+vKIodYCI+G0ynqIgmM= X-Spam-Score: -2.8 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:69140 Archived-At: On Sat, Oct 03 2009, Harry Putnam wrote: > Anyway, with the settings above and having `eval'd region' on your > code, when opening a group gnus goes thru the opening of a group > routine up to the point where it says something like > `summary [...] done'... But then the group never opens and I see the > clock for a cursor... ... nothing more happens... ever. Here is a tested variant of the code (Note: I substituted X-Mailer for Keywords, so I don't need to modify my mail): --8<---------------cut here---------------start------------->8--- (defun rs-gnus-summary-line-keywords (header) "Display keywords of message in summary line. This function is intended to be used in `gnus-summary-line-format-alist', with \(defalias 'gnus-user-format-function-X 'rs-gnus-summary-line-keywords). See (info \"(gnus)Group Line Specification\"). You need to add `Keywords' to `nnmail-extra-headers' and `gnus-extra-headers', see Info node `(gnus)To From Newsgroups'." (let ((keywords (cdr (assq 'X-Mailer (mail-header-extra header))))) (if keywords (format " Keywords: %s" keywords) ""))) (defalias 'gnus-user-format-function-keywords 'rs-gnus-summary-line-keywords) ;; (defvar rs-gnus-summary-line-format-orig gnus-summary-line-format) ;; (setq gnus-summary-line-format rs-gnus-summary-line-format-orig) (setq gnus-summary-line-format "%U%R%z%I%(%[%4L: %-23,23f%]%) %s%u&keywords;\n") (add-to-list 'nnmail-extra-headers 'X-Mailer) (add-to-list 'gnus-extra-headers 'X-Mailer) --8<---------------cut here---------------end--------------->8--- The I did regenerate the overview for foo.bar (an nnml group): M-x nnml-generate-nov-databases-directory RET ~/Mail/foo/bar/ RET Entering the group foo.bar now shows: ,---- | O [ 51: A. Müller ] t...... Keywords: FooMail... | O [ 50: A. Müller ] w............ Keywords: FooMail... | O [ 29: A. Müller ] Hi ........... Keywords: FooMail... `---- BTW, when changing the subject (which was not useful here), please use... ,----[ `C-h k ' ] | runs the command message-change-subject | which is an interactive Lisp function in `message.el'. | It is bound to C-c C-f s, . | (message-change-subject NEW-SUBJECT) | | Ask for NEW-SUBJECT header, append (was: ). `---- Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/