From 6a37c19d0ed21ccbf8c326ad7a622eb4d1ce258c Mon Sep 17 00:00:00 2001 From: Ritwik Puri Date: Mon, 27 Feb 2023 12:52:13 +0530 Subject: [PATCH] fix: dont try to connect to server again when appending email to sent folder --- frappe/email/doctype/email_account/email_account.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/frappe/email/doctype/email_account/email_account.py b/frappe/email/doctype/email_account/email_account.py index f754869938..aa0935e028 100755 --- a/frappe/email/doctype/email_account/email_account.py +++ b/frappe/email/doctype/email_account/email_account.py @@ -657,8 +657,6 @@ class EmailAccount(Document): if not email_server: return - email_server.connect() - if email_server.imap: try: message = safe_encode(message)