issues@javamail.java.net

[Bug 5713] POP3 UIDL capanility not supported

From: <bugzilla-daemon_at_kenai.com>
Date: Thu, 15 Nov 2012 14:53:34 +0000

http://kenai.com/bugzilla/show_bug.cgi?id=5713

--- Comment #1 from JesseJames_at_kenai.com 2012-11-15 14:53:34 UTC ---
In com.sun.mail.pop3.POP3Store#getPort, adding this fixes the issue:

> supportsUidl = capabilities == null || capabilities.containsKey("UIDL");
>
> String msg = null;
> if ((msg = p.login(user, passwd)) != null) {
> try {
> p.quit();
> } catch (IOException ioex) {
> } finally {
> throw new EOFException(msg);
> }
> }
>
> // PATCH: check again for capabilities after login
> p.setCapabilities(p.capa());
> capabilities = p.getCapabilities();
> supportsUidl |= capabilities == null || capabilities.containsKey("UIDL");

-- 
Configure bugmail: http://kenai.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.