Commits

Anonymous committed afb38d2

Moved the expunge call for IMAP4 mailboxes

  • Participants
  • Parent commits 3f6d28f

Comments (0)

Files changed (1)

articles/management/commands/check_for_articles_from_email.py

         """Deletes a message from the server"""
 
         self.handle.store(msg_id, '+FLAGS', '\\Deleted')
-        self.handle.expunge()
 
     def disconnect(self):
         """Closes the IMAP4 handle"""
 
+        self.handle.expunge()
         self.handle.close()
         self.handle.logout()