From 7a5ef2ffc002e7976fae34d08f296ace993211c8 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Thu, 30 Jul 2015 01:39:30 +0200 Subject: Log out before exiting. --- imapsync | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'imapsync') diff --git a/imapsync b/imapsync index 45b214f..b0226c3 100755 --- a/imapsync +++ b/imapsync @@ -1111,4 +1111,7 @@ while(1) { wait_notifications(900); } -END { cleanup(); } +END { + $_->logout() foreach grep defined, ($lIMAP, $rIMAP); + cleanup(); +} -- cgit v1.2.3