Re: [Mutt] #3138: IMAP: leaf folders in LSUB are not recognized
#3138: IMAP: leaf folders in LSUB are not recognized correctly (was: problem
with
backslash as folder separator)
-------------------------+--------------------------------------------------
Reporter: uspoerlein | Owner: brendan
Type: defect | Status: assigned
Priority: minor | Milestone: 1.6
Component: IMAP | Version: 1.5.18
Resolution: | Keywords: imap folder separator backslash leaf
-------------------------+--------------------------------------------------
Changes (by uspoerlein):
* keywords: imap folder separator backslash => imap folder separator
backslash leaf
* status: infoneeded => assigned
* version: 1.5.17 => 1.5.18
Comment:
I no longer have access to the Domino server and the original trace. But
managed to reproduce another bug by using dovecot.
It is really easy to set up, use the following namespace definition:
{{{
namespace private {
prefix =
inbox = yes
separator = "\"
}
}}}
And then fool around. One thing I noticed, that is different to the
original test (I'm using 1.5.18 right here), is that mutt now issues
multiple LSUB "" "%" instead of LSUB "" "*" so no sub-folder view will be
returned. Using these individual LSUBs seems to have worked around the
problem. There is still a nit though. It will not SELECT the folder, when
using Return on a leaf folder. You have to use Space to actually enter the
folder. Looks like it doesn't "get" that it's a leaf folder.
The dump shows this:
{{{
a0006 LSUB "" "%"
* LSUB () "\\" "ls3"
* LSUB () "\\" "testing"
a0006 OK Lsub completed.
a0007 LSUB "" "testing"
* LSUB () "\\" "testing"
a0007 OK Lsub completed.
a0008 LSUB "" "testing\\%"
* LSUB () "\\" {9}
testing\a
* LSUB () "\\" {9}
testing\b
a0008 OK Lsub completed.
}}}
This is ok, a and b are leaf folders.
{{{
a0011 LSUB "" "testing\a"
a0011 OK Lsub completed.
a0012 LSUB "" "testing\\a%"
* LSUB () "\\" {9}
testing\a
a0012 OK Lsub completed.
a0013 CLOSE
a0014 SELECT "testing\\a"
a0013 OK Close completed.
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags
permitted.
* 0 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1231150924] UIDs valid
* OK [UIDNEXT 1] Predicted next UID
a0014 OK [READ-WRITE] Select completed.
}}}
This is not ok, hitting return on "testing.a." (that's how it's displayed)
will issue LSUBs (a0011 seems totally bogus). Only forcing the SELECT by
using space will open the folder. This is a regression against 1.5.17 and
happens regardless of the folder separator. I just checked with a "."
separator.
Is this related to #3129? Is dovecot to blame? I'm using dovecot 1.1.7 and
mutt 1.5.18 right now. I will retest once 1.5.19 has hit the FreeBSD ports
tree (shouldn't take too long).
Cheers,
Uli
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3138#comment:4>
Mutt <http://www.mutt.org/>
The Mutt mail user agent