removed email stuff

This commit is contained in:
sam 2023-06-06 19:35:00 +00:00
parent 6ce5b31824
commit b01ec75b14

View File

@ -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