diff --git a/lib/redmine/imap.rb b/lib/redmine/imap.rb index 6e15c57e6..140131a6d 100644 --- a/lib/redmine/imap.rb +++ b/lib/redmine/imap.rb @@ -48,6 +48,8 @@ module Redmine end end imap.expunge + imap.logout + imap.disconnect end private