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

Re: line wrap in the index?



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

On Sunday, February  1 at 11:14 PM, quoth Paul E Condon:
> I have several verbose correspondents who write little essays in the 
> Subject header.  If I could put Subject: field last, I could see 
> several fields, like From; that are more important. But these other 
> fields are variable lenth, and that messes up threading, which is 
> keyed to the start of the Subject: field in each line, I think.

...I assume you're talking about index view? Then you probably want to 
set up $index_format.

> But rather than line wrap in the index, is there a way to truncate 
> the print of the subject field?

In the index? Absolutely! The $index_format variable takes printf-like 
length specifications. So, if you wanted to limit the subject (denoted 
by %s in the $index_format) to a mere twenty characters, you'd use 
this: %.20s

That will left-align the subjects. If, on the other hand, you wanted 
to align them all to the right, use this: %20.20s

~Kyle
- -- 
A fanatic is one who can't change his mind and won't change the 
subject.
                                     -- Winston Churchill, July 5, 1954
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iEYEARECAAYFAkmHC5gACgkQBkIOoMqOI141ygCeKNul+7XnBF6iR3OM6IJ5/p+H
Ap8AoMVhsysMS/Cb0XQLVOn+X5xXXREZ
=uUDL
-----END PGP SIGNATURE-----