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

Re: Problems changing folder to inbox with Courier 0.46



Sorry to reply to myself, but running with debugging has revealed some
details (thanks to Nathan Dushman for the suggestion).

The culprit is Courier's dislike for SELECT "INBOX." (note the
period).

When mutt starts up and opens the inbox, it issues this command:

  > a0003 SELECT "INBOX"
  < * FLAGS (NonJunk \Draft \Answered \Flagged \Deleted \Seen \Recent)

But "c =" causes mutt to use a period after INBOX:

  > a0055 SELECT "INBOX."
  < a0055 NO Mailbox does not exist, or must be subscribed to.

However, "c !" omits the period and thus succeeds:

  > a0095 SELECT "INBOX"
  < * FLAGS (NonJunk \Draft \Answered \Flagged \Deleted \Seen \Recent)

The issue is my Courier server doesn't like the period after INBOX.  I
haven't looked at the IMAP spec in detail to understand if this is a
violation or not.

I'll look into what, if anything, can be done at the Courier end.  But
is there any way to get mutt to stop sending the period after LOGIN?

Thanks,

Matt


On Tue, 31 Aug 2004, Matt Larson wrote:
> I posted the following message on mutt-users, but I suspect it's more
> appropriate for some of the hardcode IMAP folks on this list.  I would
> be greatful for any help.
> 
> Thanks,
> 
> Matt
> 
> 
> ----- Forwarded message from Matt Larson <mlarson@xxxxxxxxxxxx> -----
> 
> From: Matt Larson <mlarson@xxxxxxxxxxxx>
> Subject: Problems changing folder to inbox with Courier 0.46
> To: mutt-users@xxxxxxxx
> Date: Mon, 30 Aug 2004 11:58:35 -0400
> 
> I'm trying to switch to a different IMAP server and having an annoying
> problem and I'd appreciate any help.
> 
> I'm using mutt from CVS HEAD against a Courier IMAP server.  (This is
> the full Courier mail server package, version 0.46).  I can start up
> mutt and it opens my inbox just fine, and I can switch to other
> folders using the '=' shortcut (e.g., 'c =incoming.mutt-users').  But
> I can't switch back to my inbox using the '=' or '+' shortcut.  If I
> try 'c =', I see this message:
> 
>   Mailbox does not exist, or must be subscribed to.
> 
> I don't see this behavior using an older Courier IMAP server (IMAP
> only, not the full package) nor a recent Dovecot IMAP server nor an
> older Cyrus IMAP server.
> 
> Here are relevant muttrc lines:
> 
>   set folder=imaps://matt@<hostname>/INBOX    # where are the mailboxes (+ 
> and = are shortcuts)
>   set spoolfile=imaps://matt@<hostname>/INBOX # Maildir incoming file 
> (~/Mail/incoming)
>   set imap_home_namespace="INBOX"     # IMAP path to your folders
> 
> I get the same behavior regardless of whether imap_home_namespace is
> set to "INBOX" or null.
> 
> One last note: interestingly, I can switch back to the inbox using the
> '!' character, i.e., 'c !' does work.
> 
> I'd be grateful for any suggestions and apologize in advance if this
> is an FAQ (I looked but couldn't find anything).
> 
> Thanks,
> 
> Matt
> 
> ----- End forwarded message -----