commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bogdan Drozdowski (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (NET-333) would you provide a class used for imap protocol?
Date Wed, 23 Mar 2011 11:56:06 GMT

     [ https://issues.apache.org/jira/browse/NET-333?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bogdan Drozdowski updated NET-333:
----------------------------------

    Attachment: IMAPMail.java

I only needed to add a TrustManager (now since we don't have a default). And it works for
me:
{noformat}
[bogdan@orion Commons-Net]$ java -cp .:/home/bogdan/RPMS/java/commons-net-2.2/commons-net-2.2.jar
IMAPMail imap.gmail.com bogdan bogdan TLS                                         
Using secure protocol: TLS
Connecting to server imap.gmail.com on 993  
Could not login to server. Check password.       
[bogdan@orion Commons-Net]$ java -cp .:/home/bogdan/RPMS/java/commons-net-2.2/commons-net-2.2.jar
IMAPMail 127.0.0.1 bogdan bogdan TLS                                         
Using secure protocol: TLS
Connecting to server 127.0.0.1 on 993    
Server capabilities:  
* CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES
THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1
CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS       
AAAB OK Capability completed. 
Selected inbox:
* FLAGS (\Answered \Flagged \Deleted \Seen \Draft)      
* OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted.
Examined inbox:
* 0 EXISTS  
* 0 RECENT   
* OK [UIDVALIDITY 1269775345] UIDs valid 
Inbox status:
* OK [UIDNEXT 17] Predicted next UID 
{noformat}

By the way, since the default TrustManagers have been removed, the POP3Mail example has stopped
working on SSL/TLS connections and needs to be changed, too.

I didn't change the javadoc. It can be change while committing to svn, but I can change it
if you want.

> would you provide a class used for imap protocol?
> -------------------------------------------------
>
>                 Key: NET-333
>                 URL: https://issues.apache.org/jira/browse/NET-333
>             Project: Commons Net
>          Issue Type: Improvement
>            Reporter: iceviewer
>         Attachments: IMAP.zip, IMAPMail.java
>
>
> would you provide a class used for imap protocol?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message