<<< Date Index >>>     <<< Thread Index >>>

Multiple IMAP accounts



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;
 }


-- 
12.04.2007 11:47:25

Cheers,
Oleg A. Mamontov

mailto:  oleg@xxxxxxxxxxxx

icq uin: 79-521-617
cell:    +7-903-798-1352