-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sunday, November 16 at 08:52 PM, quoth Alberto Rizzi:
> I want to use four different "Form:" header depending on the folder
> I am in.
That's a fairly standard request.
> account-hook get executed only the first time I open a folder on
> that account
It's actually more complicated than that. Account hooks are run
whenever needed, as determined by mutt. They're designed primarily for
setting connection-based things, such as $imap_pass and that sort of
thing.
> Maybe I can use a folder-hook but how can I create the correct
> regexp? How?
What are the folders?
You can try something like this:
folder-hook imap://[EMAIL PROTECTED]/ 'set [EMAIL PROTECTED]'
folder-hook imap://[EMAIL PROTECTED]/ 'set [EMAIL PROTECTED]'
folder-hook imap://[EMAIL PROTECTED]/ 'set [EMAIL PROTECTED]'
The details, of course, depend on exactly what your accounts are.
~Kyle
- --
You can get more with a kind word and a gun than you can with a kind
word alone.
-- Al Capone
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iEYEARECAAYFAkkgiUkACgkQBkIOoMqOI141kACgjfYJBt35a4fDE6f2cYOO0RaW
A9sAniprcfXOna/eF9Avg2geL+ciuAl7
=whQv
-----END PGP SIGNATURE-----