Skip to content

Commit

Permalink
htmlmail: strip cc and bcc list after splitting, to allow for spaces …
Browse files Browse the repository at this point in the history
…after commas
  • Loading branch information
akkana committed Aug 13, 2018
1 parent 1c00a3d commit 1e465cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htmlmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,11 @@ def send_msg(recipients, sender, msg, smtp_server,
recipients = args.to_addresses.split(',')

if args.cc:
cc = args.cc.split(',')
cc = [ s.strip() for s in args.cc.split(',') ]
else:
cc = []
if args.bcc:
bcc = args.bcc.split(',')
bcc = [ s.strip() for s in args.bcc.split(',') ]
else:
bcc = []

Expand Down

0 comments on commit 1e465cd

Please sign in to comment.