On Wednesday 30.06.10 08:57 +0200, J. Prendick wrote: >Hi all, > >I'm wondering if it is possible, to manage multiple accounts at the >same e-mail provider. First let's say I have one account at a.com, >another at b.com. Then in my .muttrc I have > > account-hook 'imaps://a.com' 'set imap_user=... etc.' > folder-hook 'imaps://a.com' 'set folder=... etc.' > >and the analogue for b.com. Via > > macro index <f1> "<change-folder>imaps://imap.a.com" > macro index <f2> "<change-folder>imaps://imap.b.com" > >I can switch between them. > >If now a equals b we do have a problem. I could for example change the >macro-lines to > > macro index <f1> "<change-folder>imaps://user1:passwo...@a.com" > macro index <f2> "<change-folder>imaps://user2:passwo...@a.com" > >which enables me to switch between the accounts, but e.g. from=, >pgp_sign_as=, ... are not beeing set correctly. > >Does anyone have any idea how to solve that problem? > > >Best regards, >Prendick
How about macro index <f1> '<enter-command>source ~/.mutt/account1.rc<enter><refresh>' 'use account1' macro index <f2> '<enter-command>source ~/.mutt/account2.rc<enter><refresh>' 'use account2' ? I have a generic muttrc containing `source ~/.mutt/accountname.rc' where all the account spesific settings such as from=, folders= etc. The `<refresh>' part is in the macro to refresh the status color which I change to remind myself which account I'm currently on. Eivind