From 4f53f5ce8edb7932bdd0de6414e4e40989738e76 Mon Sep 17 00:00:00 2001 From: Johannes Blume Date: Sun, 3 Mar 2013 00:26:39 +0100 Subject: [PATCH] Improve IMAP example --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 4b15d8a..88dd2db 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,7 @@ Measure=Plugin Plugin=Plugins\Python.dll ScriptPath=IMAP.py PythonHome=c:\Python33 +ClassName=Measure UpdateDivider=60 Username=username Password=password @@ -73,5 +74,7 @@ class Measure: con.login(self.username, self.password) con.select('INBOX', True) _, msgnums = con.search(None, '(UNSEEN)') + con.close() + con.logout() return float(len(msgnums[0].split())) ```