Fix #7322 (Auto emailing failure)

This commit is contained in:
Kovid Goyal 2010-10-28 15:49:08 -06:00
parent b58aa580f7
commit cf695db7cc

View File

@ -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']\