From 2c3410d3e783efd1c85fc7178ddeecd048a5646c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 18 Sep 2022 08:40:46 +0530 Subject: [PATCH] Nuke email body text as well --- src/calibre/gui2/email.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/email.py b/src/calibre/gui2/email.py index 1ee3b5c0a1..d9e8a8bd4d 100644 --- a/src/calibre/gui2/email.py +++ b/src/calibre/gui2/email.py @@ -159,13 +159,15 @@ def send_mails(jobnames, callback, attachments, to_s, subjects, # containing only 22 English letters and numbers # # And since this email is only going to be processed by automated - # services, make the subject random too as at least the amazon - # service cant handle non-ascii subjects. I dont know what baboons + # services, make the subject+text random too as at least the amazon + # service cant handle non-ascii text. I dont know what baboons # these companies employ to write their code. It's the height of # irony that they are called "tech" companies. + # https://bugs.launchpad.net/calibre/+bug/1989282 from calibre.utils.short_uuid import uuid4 aname = f'{uuid4()}.' + aname.rpartition('.')[-1] subject = uuid4() + text = uuid4() job = ThreadedJob('email', description, gui_sendmail, (attachment, aname, to, subject, text), {}, callback) job_manager.run_threaded_job(job)