protected void closeFolderIfOpened ( final Folder folder ) { if ( folder != null ) { try { folder . close ( true ) ; } catch ( final MessagingException ignore ) { } } }
Closes folder if opened and expunge deleted messages .