Re: JAVAMAIL - IMAP Connection Failure: "* BYE disconnecting"

From: GaryM (nospam_at_nospam.com)
Date: 02/23/04


Date: Mon, 23 Feb 2004 20:09:00 -0000


"Daniel Albisser" <daniel.albisser@spam.swisscom.com> wrote in news:1077530791.793851@ftpgate:

> Questions:
> - Does somebody know that problem and how has he/she solved that?
> - Is there another way to solve it?
> - This problem lies on the serverside - Is that true?
> - Is this a familiar problem of IMAP mail servers?
>
>
> Thanks a lot for helping!
> Greetz,
> Dani

A couple of pointers that might help.

First put Javamail in debug mode:

props.put("mail.debug", "true");

where props is your Session props. This should
provide a level of detail in the connection process
that might show you how far you are getting.

Second, review the timeouts per the doc here.
Most are infinite, but a few are not:

http://java.sun.com/products/javamail/1.3/docs/javadocs/com/sun/mail/imap/package-summary.html

Lastly repost your question to Sun's Javamail Forum here,
where there are a lot of highly experienced users of this API:

http://forum.java.sun.com/forum.jsp?forum=43

HTH,

Gary