From b01ec75b14fda3d78f661afb157869624c02c952 Mon Sep 17 00:00:00 2001 From: sam Date: Tue, 6 Jun 2023 19:35:00 +0000 Subject: [PATCH] removed email stuff --- root/app/fanficdownload.py | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/root/app/fanficdownload.py b/root/app/fanficdownload.py index ddd9052..9e31bab 100644 --- a/root/app/fanficdownload.py +++ b/root/app/fanficdownload.py @@ -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