Browse Source

plac wurde vergessen

robert 1 year ago
parent
commit
e359f630fe
1 changed files with 3 additions and 3 deletions
  1. 3 3
      mailserver/imap.py

+ 3 - 3
mailserver/imap.py

@@ -135,7 +135,7 @@ class Imap:
         self.remove_absence_messages()
 
     def undelivered(self):
-        with MailBox("mail.global-cube.com").login("versand", "y6!avXX3tQvr") as mb:
+        with self.conncet("versand") as mb:
             selected = []
             for msg in mb.fetch(
                 criteria=AND(to="@global-cube.com"),
@@ -181,5 +181,5 @@ class Imap:
 
 
 if __name__ == "__main__":
-    # plac.Interpreter.call(Imap)
-    Imap().undelivered()
+    plac.Interpreter.call(Imap)
+    # Imap().undelivered()