Unused imports and bad indentation

master
Ionut Filip 6 years ago committed by GitHub
parent ebed267c1b
commit f50e9055c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4,9 +4,6 @@ import time
import sys import sys
from email.mime.multipart import MIMEMultipart from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText from email.mime.text import MIMEText
import ntpath
from email.mime.base import MIMEBase
from email import encoders
msg = MIMEMultipart() msg = MIMEMultipart()
msg['From'] = "admin@mailu.io" msg['From'] = "admin@mailu.io"
@ -52,7 +49,7 @@ else:
typ, data = imap_server.search(None, 'ALL') typ, data = imap_server.search(None, 'ALL')
for num in data[0].split(): for num in data[0].split():
imap_server.store(num, '+FLAGS', '\\Deleted') imap_server.store(num, '+FLAGS', '\\Deleted')
imap_server.expunge() imap_server.expunge()
imap_server.close() imap_server.close()
@ -80,7 +77,7 @@ else:
typ, data = imap_server.search(None, 'ALL') typ, data = imap_server.search(None, 'ALL')
for num in data[0].split(): for num in data[0].split():
imap_server.store(num, '+FLAGS', '\\Deleted') imap_server.store(num, '+FLAGS', '\\Deleted')
imap_server.expunge() imap_server.expunge()
imap_server.close() imap_server.close()

Loading…
Cancel
Save