1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-25 09:30:31 +00:00

minor formatting

This commit is contained in:
gjutras 2022-08-02 19:51:31 -04:00
parent 24e9bf2728
commit c974cd048e

View File

@ -113,7 +113,7 @@ def send_test_mail(ereader_mail, user_name):
for email in ereader_mail.split(','):
email = email.strip()
WorkerThread.add(user_name, TaskEmail(_(u'Calibre-Web test e-mail'), None, None,
config.get_mail_settings(), email, N_(u"Test e-mail"),
config.get_mail_settings(), email, N_(u"Test e-mail"),
_(u'This e-mail has been sent via Calibre-Web.')))
return
@ -227,8 +227,8 @@ def send_mail(book_id, book_format, convert, ereader_mail, calibrepath, user_id)
for email in ereader_mail.split(','):
email = email.strip()
WorkerThread.add(user_id, TaskEmail(_(u"Send to E-Reader"), book.path, converted_file_name,
config.get_mail_settings(), email, email_text,
_(u'This e-mail has been sent via Calibre-Web.')))
config.get_mail_settings(), email,
email_text, _(u'This e-mail has been sent via Calibre-Web.')))
return
return _(u"The requested file could not be read. Maybe wrong permissions?")