From 131dc3a8fcf0ae1c275d4977e195132b3f837608 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 28 May 2013 18:17:36 +0000 Subject: [PATCH] Disconnect and logout from IMAP after mail receive (#14103). Patch by Pierre Pretorius. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11905 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/imap.rb | 2 ++ 1 file changed, 2 insertions(+) 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