From: Vladimir Volovich <vvv@vsu.ru>
Cc: ding@gnus.org
Subject: Re: nnimap and article line numbers
Date: 15 May 2001 14:27:16 +0400 [thread overview]
Message-ID: <ey66f29abf.fsf@video.uic.vsu.ru> (raw)
In-Reply-To: <vaf1yps18zo.fsf@lucy.cs.uni-dortmund.de> (Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "14 May 2001 13:10:51 +0200")
"KG" == Kai Großjohann writes:
KG> ;; Use %c rather than %L because nnimap doesn't inlude the line
KG> ;; count for attachments in the line count. (require 'gnus-sum)
KG> (defsubst kai-gnus-summary-line-message-size (header) (let ((c
KG> (or (mail-header-chars header) 0))) (cond ((< c 1000) (format
KG> "%db" c)) ((< c (* 1000 1000)) (format "%dk" (/ c 1024.0))) (t
KG> (format "%dM" (/ c (* 1024.0 1024))))))) (add-to-list
KG> 'gnus-summary-line-format-alist '(?k
KG> (kai-gnus-summary-line-message-size gnus-tmp-header) ?s))
KG> Now you can use %k in your summary line format. The comment is
KG> slightly off, since it's from an old version.
thanks. btw, the following format (%us) defined via
gnus-user-format-function-X also works:
(defun gnus-user-format-function-s (header)
(let ((c (or (mail-header-chars header) 0)))
(cond ((< c 1000) (format "%db" c))
((< c (* 1000 1024)) (format "%dk" (/ c 1024.0)))
(t (format "%dM" (/ c (* 1024.0 1024)))))))
(setq gnus-summary-line-format "%U%R%z%I%(%[%4us: %-20,20n%]%) %s\n")
Best,
v.
next prev parent reply other threads:[~2001-05-15 10:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-14 10:16 Vladimir Volovich
2001-05-14 11:10 ` Kai Großjohann
2001-05-15 10:27 ` Vladimir Volovich [this message]
2001-05-14 20:33 ` Simon Josefsson
2001-05-15 7:17 ` Simon Josefsson
2001-05-15 10:05 ` Vladimir Volovich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ey66f29abf.fsf@video.uic.vsu.ru \
--to=vvv@vsu.ru \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).