=- Malte Detlefsen wrote on Tue  5.Jun'12 at 12:48:31 +0200 -=

> > > Still got a problem with my multiple account setup, although I
> > > narrowed it down to the following:
> > > 
> > > Someone in the irc channel then suggested that I, while
> > > working with hooks, should better use something like
> > > user[at]server instead of server.

That was I.

> > > Since the DebugConfig points out the possibility of
> > > misunderstanding hooks, I could understand a hooks related
> > > problem in my case. But to be honest: I don't know, what I
> > > exactly have to change, since all my tries ended in errors. I
> > > hope some of you might know, what to do!
> > > 
> > > account-hook imaps://imap.gmx.com 'set imap_user = "whl...@gmx.de" 
> > > imap_pass = "xxxx"'
> > > #account-hook imaps://imap.gmx.com 'set imap_user = "d...@gmx.de" 
> > > imap_pass = "xxxx"'

Match on "user@server" for user-specific settings (like imap_pass,
but not imap_user, since it's already part of the match),
 match server-only for user-unspecific settings (like IMAP-Server-params),

Then change-folder to "user@server", maybe use folder-hooks, but
then always match for "user@server", otherwise how should mutt know
which user you want to talk to?

For your case of multi-user on same-host setup the word
"account-hook" is misleading, or rather you must keep in mind the
match on "server" alone is not enough, but must always match "user@server".

-- 
© Rado S. -- You must provide YOUR effort for your goal!
EVERY effort counts: at least to show your attitude.
You're responsible for ALL you do: you get what you give.

Reply via email to