On Wed, Apr 23, 2025 at 01:44:22PM CEST, Paul Tansom <p...@aptanet.com> said:
> On 18/04/2025 12:50, Erwan David wrote:
> >     I use mutt with sevreal accounts on different servers through 
> > folder-hook, account-hook, etc.
> > But now I need to use it with two different accounts on same server.
> > I do not succeed in differentiating them since folders are names 
> > imap://server, and I cannot use
> > imap://user1@server and imap://user2@server.
> > 
> > How would you do this ?
> 
> I do this with multiple accounts on the same server. My muttrc file has
> account-hook lines using imap_user to define the account, so:
> 
> account-hook imaps://user1@server 'set imap_user = user1'
> 
> account-hook imaps://user2@server 'set imap_user = user2'
> 
> I also use separate files for per account configuration with the folder-hook
> (signatures, etc.):
> 
> folder-hook imaps://user1@server source ~/.mutt/user1
> 
> folder-hook imaps://user2@server source ~/.mutt/user2
> 
> ... and editing that in Thunderbird instead of Mutt with Vim as my editor
> was hard work, so I'll stop there. I can give more detail if it helps, but
> obfuscating things in this editor will be a pain!


Thanks, your message and those I received directly give me directions. I think 
I can adapt my setting like this.


-- 
Erwan David

Reply via email to