Cedric Hyppolite wrote:
I ran the test with the latest CVS version for javamail and
inetlib.
Same result, the listing is still looping.
It seems bizarre that the IMAP server would include the current
folder in a LIST. I would try setting the session property
mail.debug=true and looking at the IMAP conversation.
Setting mail.debug to true or calling Session.setDebug(true) did
not enable the imap logger.
That's odd. Is any logging working? Do you have a specialised
java.util.logging configuration?
However I added to print statement, and the server response to the
list command only consist in repeating the listed mailbox.
and the LIST command is something like
a002 LIST "" %
right?
I looked at thunderbird code and they list the IMAP folder from
the root using a '*' wildcard.
I tried this on the default folder and successfully listed all my
IMAP folders.
The '*' wildcard lists the entire hierarchy, not just the immediate
children.
However the folder separator character is not interpreted in the
returned names...
What does it return, NIL?
That would be a way to read mails in all IMAP folders forgetting
the hierarchy thus seeing all folders under the root.
Not really, since this would give you all folders independent of
the hierarchy, but with no way to interpret that hierarchy.
I would really appreciate seeing transcripts of the same JavaMail
conversation with both Sun and GNU JavaMail for this server, if you
can provide them. If you're having problems with logging you could
use tcpflow.
--
犬 Chris Burdess
"They that can give up essential liberty to obtain a little safety
deserve neither liberty nor safety." - Benjamin Franklin