mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
74162b6b60
commit
fcab57c402
@ -202,6 +202,10 @@ def main(args=sys.argv):
|
|||||||
|
|
||||||
|
|
||||||
if len(args) > 1:
|
if len(args) > 1:
|
||||||
|
if len(args) < 4:
|
||||||
|
print ('You must specify the from address, to address and body text'
|
||||||
|
' on the command line')
|
||||||
|
return 1
|
||||||
msg = compose_mail(args[1], args[2], args[3], subject=opts.subject,
|
msg = compose_mail(args[1], args[2], args[3], subject=opts.subject,
|
||||||
attachment=opts.attachment)
|
attachment=opts.attachment)
|
||||||
from_, to = args[1:3]
|
from_, to = args[1:3]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user