Re: [NET] Unexpectedly long IMAP protocol response

Stuart Maclean <[email protected]> Fri, 12 Dec 2025 12:29:14 -0800
Newsgroups gmane.comp.jakarta.commons.user
Message-ID <[email protected]>
I was unaware 3.12.0 was out, my apologies.

Yes, 3.12.0 is much better. In the last 5 mins, I have tested both 
versions. 10 trials with 3.12.0, 10 successful conversations. With 
3.11.1, 10 trials, 8 of which ended with the same exception that I posted.

So, yes, only anecdotal evidence, but that which does suggest that 
3.12.0 would work going forward where 3.11.1 would not.

So, you must have increased the expected IMAP reply string length in 
3.12.0? Thank you!

Stuart


On 12/12/25 11:57, Gary Gregory wrote:
> Hello Stuart,
>
> When happens with 3.12.0?
>
> Thank you,tion
> Gary
>
> On Fri, Dec 12, 2025 at 2:50 PM Stuart Maclean <[email protected]> wrote:
>> I am using Commons Net 3.11.1.
>>
>> I am contacting a Microsoft Email server via IMAP. Sometimes, its
>> initial reply is unexpectedly long, and the IMAPReply class barfs:
>>
>> org.apache.commons.net.MalformedServerReplyException: Received
>> unexpected IMAP protocol response from server: '* OK The Microsoft
>> Exchange IMAP4 service is ready. (BACKENDAUTHENTICATE)
>> [TQBXADQAUABSADAANABDAEEAMAAyADMAOAAuAG4AYQBtAHAAcgBkADAANAAuAHAAcgBvAGQALgBvAHUAdABsAG8AbwBrAC4AYwBvAG0A]'.
>> at
>> org.apache.commons.net.imap.IMAPReply.getReplyCode(IMAPReply.java:119)
>> at
>> org.apache.commons.net.imap.IMAPReply.getUntaggedReplyCode(IMAPReply.java:130)
>> at org.apache.commons.net.imap.IMAP.getReply(IMAP.java:288)
>> at org.apache.commons.net.imap.IMAP._connectAction_(IMAP.java:152)
>>
>> I have brought this up before. Perhaps this time it might get at least
>> an ack? Thanks.
>>
>> Stuart
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>