From 645fde2e675daf0fd7e13ad44a051a5453c2577c Mon Sep 17 00:00:00 2001 From: Summayya Hashmani <58825865+sumaiya2908@users.noreply.github.com> Date: Tue, 11 Jan 2022 13:41:38 +0530 Subject: [PATCH] fix: email fetch error for imaplib (#15581) * fix: remove maxline for imaplib * refactor: remove redundant line Co-authored-by: Summayya --- frappe/email/receive.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/frappe/email/receive.py b/frappe/email/receive.py index 4f4ed6d48e..dd64d0df80 100644 --- a/frappe/email/receive.py +++ b/frappe/email/receive.py @@ -27,11 +27,7 @@ from frappe.utils.html_utils import clean_email_html # fix due to a python bug in poplib that limits it to 2048 poplib._MAXLINE = 20480 -imaplib._MAXLINE = 20480 -# fix due to a python bug in poplib that limits it to 2048 -poplib._MAXLINE = 20480 -imaplib._MAXLINE = 20480 class EmailSizeExceededError(frappe.ValidationError): pass