fix: dont try to connect to server again when appending email to sent folder

This commit is contained in:
Ritwik Puri 2023-02-27 12:52:13 +05:30 committed by GitHub
parent 4c3cfd7873
commit 6a37c19d0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -657,8 +657,6 @@ class EmailAccount(Document):
if not email_server:
return
email_server.connect()
if email_server.imap:
try:
message = safe_encode(message)