Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

MUA and multiple mailboxes



Hello all,

I currently work with multiple Maildir mailboxes. One for personal
e-mail, another for work e-mail and so on. Suppose they are stored in
/mail/Home and /mail/Work.

zsh completion is smart. If I have MAIL=/mail/Home, all e-mail
commands look for that. My MUA (mutt), for instance, does right
completion of mailboxes:

mutt -f=<tab here will show mailboxes>

Now I want to make a function or alias called muttw that completes to
mailboxes in /mail/Work. An alias muttw="MAIL=/mail/Work mutt" or
similar doesn't work. Making a file _muttw with the following content:

MAIL="/mail/Work" _mutt

doesn't work eitheir.

zsh-users archives doesn't having anything similar.

Any tips?

Thank you.

-- 
Silas Silva



Messages sorted by: Reverse Date, Date, Thread, Author