Releasing a connection |
To disconnect from an IMAP server, invoke the Imap#disconnect method. You should always make sure to close your connection after you are finished with your IMAP session.
Example
// release connection imap.disconnect(); |