Theodore Watson wrote:
This sounds like a problem I was posting under "pop3 getting stuck on certain email". If it's the same thing, Hes Siemelink has posted a patch in the bug tracker which I am currently testing. So far so good.

Could be.

It's in Pop3Handler. When it encounters an error writing a message
during TOP, it does not end the message with a <CRLF>.<CRLF> but
with an error code. Some clients don't handle this well.

The quick-fix I made for the TOP command is very simple: it makes sure
the end dot is always printed.

In POP3Handler.java:971 (2.2.0 release), replace

    mc.writeContentTo(nouts, lines);

    nouts.flush();
    out.println(".");
    out.flush();


with

    try {
        mc.writeContentTo(nouts, lines);
    }
    catch (Exception ex) {
        // Do not print anything
        // TODO: return -ERR before serving the message
        getLogger().error(
          "Exception while retrieving top of message.", ex);
        }
    finally {
        nouts.flush();
        out.println(".");
        out.flush();
    }


So you won't get your data but at least the client doesn't hang.

Cheers,

        Hes.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to