From 5224954b6149ca46bdaf0e2d17de406536d6959f Mon Sep 17 00:00:00 2001 From: dantolini Date: Tue, 25 Oct 2022 20:43:22 +1100 Subject: [PATCH] Removed author from attachment filename prefix because of new Send to Kindle by email behaviour --- src/calibre/gui2/email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/email.py b/src/calibre/gui2/email.py index 94b9e67212..71cfd297dd 100644 --- a/src/calibre/gui2/email.py +++ b/src/calibre/gui2/email.py @@ -440,7 +440,7 @@ def send_by_mail(self, to, fmts, delete_from_library, subject='', send_ids=None, if mi.comments and gprefs['add_comments_to_email']: from calibre.utils.html2text import html2text texts[-1] += '\n\n' + _('About this book:') + '\n\n' + textwrap.fill(html2text(mi.comments)) - prefix = f'{t} - {a}' + prefix = f'{t}' if not isinstance(prefix, str): prefix = prefix.decode(preferred_encoding, 'replace') attachment_names.append(prefix + os.path.splitext(f)[1]) -- 2.11.0