mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Allow ; in subjects.
This commit is contained in:
parent
181af07705
commit
186e3e9689
@ -887,7 +887,12 @@ class DeviceMixin(object): # {{{
|
||||
on_card = dest
|
||||
self.sync_to_device(on_card, delete, fmt)
|
||||
elif dest == 'mail':
|
||||
to, fmts, subject = sub_dest.split(';')
|
||||
sub_dest_parts = sub_dest.split(';')
|
||||
while len(sub_dest_parts) < 3:
|
||||
sub_dest_parts.append('')
|
||||
to = sub_dest_parts[0]
|
||||
fmts = sub_dest_parts[1]
|
||||
subject = ';'.join(sub_dest_parts[2:])
|
||||
fmts = [x.strip().lower() for x in fmts.split(',')]
|
||||
self.send_by_mail(to, fmts, delete, subject=subject)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user