From cf695db7cc6adea1ff64ff83b9cd85c068c891e2 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 28 Oct 2010 15:49:08 -0600 Subject: [PATCH] Fix #7322 (Auto emailing failure) --- src/calibre/gui2/device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/device.py b/src/calibre/gui2/device.py index c9d342a51d..78585d13b6 100644 --- a/src/calibre/gui2/device.py +++ b/src/calibre/gui2/device.py @@ -1029,7 +1029,7 @@ class DeviceMixin(object): # {{{ to_s = [account] subjects = [_('News:')+' '+mi.title] texts = [_('Attached is the')+' '+mi.title] - attachment_names = [mi.title+os.path.splitext(attachment)[1]] + attachment_names = [ascii_filename(mi.title)+os.path.splitext(attachment)[1]] attachments = [attachment] jobnames = ['%s:%s'%(id, mi.title)] remove = [id] if config['delete_news_from_library_on_upload']\