** J. Prendick <saftsec...@googlemail.com> [2010-06-30 07:55]:
> 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.'
> 

I'm doing this, although with my own server not a separate ISP. What I've done 
is put the account information into the account-hook and folder-hook info:

account-hook imaps://p...@domain2.com@imap.domain.com 'set imap_user = 
p...@domain1.com... '
folder-hook imaps://p...@domain2.com@imap.domain.com 'set ... '
account-hook imaps://p...@domain2.com@imap.domain.com 'set imap_user = 
p...@domain2.com... '
folder-hook imaps://p...@domain1.com@imap.domain.com 'set ... '

I use full email addressing as my login details. The only problem is the 
lengthy references when moving between folders or filing mail, but the tab 
completion helps. At the moment I have to type 'imaps:<tab>' before each (the 
tab only saves typing the '//') then the login name, etc. with tabs to save 
typing.

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

I've not managed to get my head around macros yet, but it is on my list of 
things to do - one day, I've only been using Mutt about 10 years!!

> 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?
** end quote [J. Prendick]

-- 
Paul Tansom | Aptanet Ltd. | http://www.aptanet.com/ | 023 9238 0001
======================================================================
Sponsor me in the Moonlit Memories Walk for Rowans Hospice
A 12 mile walk along Southsea seafront starting midnight 19th June
Visit: http://www.justgiving.com/MoonlitTansom2010
======================================================================
Registered in England  |  Company No: 4905028  |  Registered Office:
Crawford House, Hambledon Road, Denmead, Waterlooville, Hants, PO7 6NU

Reply via email to