removed email stuff

master
sam 1 year ago
parent 6ce5b31824
commit b01ec75b14

@ -258,15 +258,18 @@ def main(user, password, server, label, inout_file, path, lib_user, lib_password
with open(inout_file, "w") as fp:
fp.write("")
try:
socket.setdefaulttimeout(55)
urls |= geturls.get_urls_from_imap(server, user, password, label)
socket.setdefaulttimeout(None)
except BaseException:
with open(inout_file, "w") as fp:
for cur in urls:
fp.write("{}\n".format(cur))
return
# try:
# print('attempting imap grab')
# socket.setdefaulttimeout(55)
# urls |= geturls.get_urls_from_imap(server, user, password, label)
# socket.setdefaulttimeout(None)
# except BaseException:
# print('imap grab failed')
# with open(inout_file, "w") as fp:
# for cur in urls:
# fp.write("{}\n".format(cur))
# print(urls)
# return
if not urls:
return

Loading…
Cancel
Save