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

Re: From variable and multiple account



-----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://user@acct1host/ 'set from=user@domain1'
folder-hook imap://user@acct2host/ 'set from=user@domain2'
folder-hook imap://user@acct3host/ 'set from=user@domain3'

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-----