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

Re: IMAP CLIENT ERROR and imap default INBOX



On Mon, 2006-11-27 at 18:32:27 +0100, Anders Helmersson wrote:
> There is a check in imap_access (in imap/imap.c) to avoid this warning
> but it does not catch the case when INBOX is not specifically defined in
> the Fcc. The imap_parse_path function (in imap/utils.c) returns null,
> which does not match INBOX.
> 
> Maybe imap_parse_patch should return the default INBOX if it is not
> explicitly defined?

Here is a simple patch that should solve the case

===================================================================
RCS file: /home/roessler/cvs/mutt/imap/imap.c,v
retrieving revision 3.88
diff -u -r3.88 imap.c
--- imap/imap.c 15 Nov 2006 18:53:15 -0000      3.88
+++ imap/imap.c 30 Nov 2006 18:11:20 -0000
@@ -77,7 +77,7 @@
   imap_fix_path (idata, mx.mbox, mailbox, sizeof (mailbox));
 
   /* we may already be in the folder we're checking */
-  if (!ascii_strcmp(idata->mailbox, mx.mbox))
+  if (!ascii_strcmp(idata->mailbox, mailbox))
   {
     FREE (&mx.mbox);
     return 0;
===================================================================


Anders