This commit is contained in:
Kovid Goyal 2025-05-12 04:26:13 +05:30
parent ef9b5a1950
commit 0eb5375275
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -164,8 +164,8 @@ def send_mails(jobnames, callback, attachments, to_s, subjects,
# these companies employ to write their code. It's the height of # these companies employ to write their code. It's the height of
# irony that they are called "tech" companies. # irony that they are called "tech" companies.
# https://bugs.launchpad.net/calibre/+bug/1989282 # https://bugs.launchpad.net/calibre/+bug/1989282
from calibre.utils.short_uuid import uuid4
if not is_for_kindle(to): if not is_for_kindle(to):
from calibre.utils.short_uuid import uuid4
# Amazon nowadays reads metadata from attachment filename instead of # Amazon nowadays reads metadata from attachment filename instead of
# file internal metadata so don't nuke the filename. # file internal metadata so don't nuke the filename.
# https://www.mobileread.com/forums/showthread.php?t=349290 # https://www.mobileread.com/forums/showthread.php?t=349290