<<< Date Index >>>     <<< Thread Index >>>

Re: index_format %l



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday, September  1 at 06:17 AM, quoth Bob Self:
>
>I have %l in the index_format string (I'm just using the default).
>
>I notice that mosts messages have (   0) as the number of lines, but now
>and then one will have a non-zero number. The ones that show zero actually
>have many lines of text. How can I get the to show non-zero numbers?

Generally? The reason is because mutt doesn't count lines until it 
parses the MIME message (e.g. downloads the message from the server, 
figures out it's contents, formats them for the terminal-size, etc.). 
So, the messages that list non-zero numbers are messages that you've 
viewed.

What I do (and what the mutt default is to do) is to only display line 
numbers when it knows them, and to display message size otherwise. The 
format string for that is:

    %?l?%4l&%4c?

~Kyle
- -- 
A great many people think they are thinking when they are actually 
rearranging their prejudices.
                                                      -- William James
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iD8DBQFE+LapBkIOoMqOI14RAv+eAJ9ocIsy+xLzG1Nc8YbUk5PtYB1zPACgpVJR
4kEhVCnJ7SrUWSz9UOziT+E=
=CpBB
-----END PGP SIGNATURE-----