On Thursday, 12 April 2007 at 21:03, Oleg A. Mamontov wrote: > Hello! > > During setting up my two different IMAP accounts (mutt 1.5.14) i have > some problem. Periodocaly check ('mail_check' setting) discover new > messages only in one account folders (if both accounts connected). > Searching sources, i've found that first server answer for STATUS question > may be received when account_hook switched 'imap_user' (and global variable > ImapUser) to other account. Then function mutt_account_match (account.c) > will return false and answer will ignored... > There is no problem, if both accounts have th same user name, but in my > situation they aren't :( > > Now i'm happy with this simple patch: > > --- account.c.orig Mon Apr 9 21:45:19 2007 > +++ account.c Mon Apr 9 21:46:59 2007 > @@ -56,10 +56,14 @@ > > if (a1->flags & a2->flags & M_ACCT_USER) > return (!strcmp (a1->user, a2->user)); > + /* > if (a1->flags & M_ACCT_USER) > return (!strcmp (a1->user, user)); > if (a2->flags & M_ACCT_USER) > return (!strcmp (a2->user, user)); > + */ > > return 1; > } Thanks for the report. This is a good diagnosis, but I'm not sure I trust the fix. I think we might need something a little safer. I'll try to look at it a little more closely in a week.
Attachment:
pgpt3iOMR0Hws.pgp
Description: PGP signature