Due to size restrictions, I read my e-mail with mutt on a 26x80
terminal.

I've found that setting pager_index_lines=6 gives me a very practical
ratio between the index and the body of the e-mail being read.
However, there are many times when I want to have the mail in full
screen, and then go back to pager_index_lines=6 when I'm done.

I've solved this by setting this in the .muttrc:

-----8<--------8<--------8<--------8<--------8<--------8<--------8<-----
set pager_index_lines=6
macro pager z ":source ~/.muttrc_z0\n"
-----8<--------8<--------8<--------8<--------8<--------8<--------8<-----

And defining these two files:

~/.muttrc_z0
-----8<--------8<--------8<--------8<--------8<--------8<--------8<-----
set pager_index_lines=0
macro pager z ":source ~/.muttrc_z6\n"
-----8<--------8<--------8<--------8<--------8<--------8<--------8<-----

~/.muttrc_z6
-----8<--------8<--------8<--------8<--------8<--------8<--------8<-----
set pager_index_lines=6
macro pager z ":source ~/.muttrc_z0\n"
-----8<--------8<--------8<--------8<--------8<--------8<--------8<-----

but I don't think this is elegant enough. Is there a better way to do
this?


ALSO:

There are many instances where I have a folder with a single e-mail.
In this case, the pager_index is useless and takes up two lines of the
screen. I have to press the 'z' key to get rid of it manually... and I
think it'd be better if mutt would detect this situation
automagically. It could be settable as an option called
"force_clear_pager_index" (or something like that), with a numeric
value N. It the folder being read contains N or less messages,
pager_index_lines is forced to 0.


Just in case, I'm using: Mutt 1.2.5i (2000-07-28)

-- 
MIGUEL FARAH              //   [EMAIL PROTECTED]
#include <disclaimer.h>   //   http://www.nn.cl/~miguel
<*>
"Trust me - I know what I'm doing."
- Sledge Hammer

Reply via email to