Skip to content

Commit

Permalink
Only replace bcc if there are any
Browse files Browse the repository at this point in the history
  • Loading branch information
cscorley committed Dec 7, 2014
1 parent ba78b91 commit 8b7ad0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion send.py
Expand Up @@ -77,7 +77,8 @@ def main(argv):
msg.replace_header('from', fromaddr)
msg.replace_header('to', ', '.join(tos))

msg.replace_header('bcc', None) # wipe out from message
if msg.get_all('bcc', False):
msg.replace_header('bcc', None) # wipe out from message

if fromaddr in accounts:
acct = accounts[fromaddr]
Expand Down

0 comments on commit 8b7ad0e

Please sign in to comment.