From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/36213 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: nnimap and article line numbers Date: 14 May 2001 13:10:51 +0200 Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035171838 7355 80.91.224.250 (21 Oct 2002 03:43:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:43:58 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: (qmail 25417 invoked by alias); 14 May 2001 11:11:39 -0000 Original-Received: (qmail 25412 invoked from network); 14 May 2001 11:11:39 -0000 Original-Received: from waldorf.cs.uni-dortmund.de (129.217.4.42) by gnus.org with SMTP; 14 May 2001 11:11:39 -0000 Original-Received: from marcy.cs.uni-dortmund.de (marcy.cs.uni-dortmund.de [129.217.20.159]) by waldorf.cs.uni-dortmund.de with ESMTP id NAA06409; Mon, 14 May 2001 13:10:52 +0200 (MES) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.20.160]) by marcy.cs.uni-dortmund.de id NAA25926; Mon, 14 May 2001 13:10:51 +0200 (MET DST) Original-Received: (from grossjoh@localhost) by lucy.cs.uni-dortmund.de (8.9.3/8.9.3/Debian 8.9.3-21) id NAA01322; Mon, 14 May 2001 13:10:51 +0200 X-Face: 6=pZ4hVbjN:C?j1$h/-bi4:F%*~B#Rxb$[0%!{5NK"dE:_QRAM]Dzl=$yMu%Rh4xCSm/#>! $n%@SHJ](KFJKL,uF\=G=bRJQC$ ?+Dlxu*pj.Z,-GK<~y7sd/l*PN\]>} In-Reply-To: (Vladimir Volovich's message of "14 May 2001 14:16:06 +0400") User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.104 Original-Lines: 25 Xref: main.gmane.org gmane.emacs.gnus.general:36213 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:36213 On 14 May 2001, Vladimir Volovich wrote: > so, is it possible to change the line number reports for the nnimap > backend to show the size of the raw article? No, but I use the number of characters (or bytes?) for this, using the following hack: ;; Use %c rather than %L because nnimap doesn't inlude the line ;; count for attachments in the line count. (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)) Now you can use %k in your summary line format. The comment is slightly off, since it's from an old version. kai -- The passive voice should never be used.