Hello Frank, On Wednesday, January 9, 2008 at 21:40:17 +0100, spekul wrote:
>| account-hook imaps://server1.com 'set folder=imaps://server1.com >| imap_user=user1 imap_pass=pass1 " BTW account-hooks are intended to configure the connections to various accounts, typically $imap_*, $pop_*, and $smtp_* variables. They are triggered at each connection and reconnection, at moments not always expected by the user. Mutt can maintain multiple simultaneous connections: To the currently opened IMAP account, of course, but also to several IMAP mailboxes checked for new mail, to a destination account during <copy-message>, to yet another IMAP hierarchy you browse, und so weiter. Each connection gets its own good parameters, but at user level nobody knows which account-hook was triggered last. Account-hooks are not suited to manipulate $folder in any usefull non-random way: You may want to use folder-hooks for things like that. Those are triggered user-predictably: When the user opens a folder. Bye! Alain. -- When you want to reply to a mailing list, please avoid doing so from a digest. This often builds incorrect references and breaks threads.