Exception on STATUS Response with space in mailbox name

  3 posts   Feedicon  
Replies: 2 - Last Post: November 13, 2009 11:46
by: xfan
showing 1 - 3 of 3
 
Posted: November 08, 2009 11:57 by svrega
hy,

i tried the demo class folderlist.java from the current demo source code.
on the response for my mailbox "Sent Items" a exception is throwed, because in

com.sun.mail.imap.protocol.Status:

public Status(Response r) throws ParsingException { mbox = r.readAtomString(); // mailbox := astring r.skipSpaces(); if (r.readByte() != '(') throw new ParsingException("parse error in STATUS");


with respone:
* STATUS Sent Items (MESSAGES 1 RECENT 0 UIDNEXT 2 UIDVALIDITY 1209839005 UNSEEN 0)

mbox = Sent and not (but should) Sent Item.

is it a bug?

 
Posted: November 09, 2009 03:47 by shannon
Yes, it's a bug in the server. What server are you using?

JavaMail 1.4.3 will have a workaround for this bug. You can find a Release Candidate build at
http://download.java.net/maven/2/javax/mail/mail/1.4.3-rc1/
 
Posted: November 13, 2009 11:46 by xfan
tanks for your answer.

it is an official (very big) hosting provider in germany called strato and i could not find out, which mail server they used.

Replies: 2 - Last Post: November 13, 2009 11:46
by: xfan
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120127.ac94057)
 
 
Close
loading
Please Confirm
Close