From 8b7ad0ed5c1d193fb1d888dc03a8141b6d1014b4 Mon Sep 17 00:00:00 2001 From: Christopher Corley Date: Sun, 7 Dec 2014 14:09:59 -0600 Subject: [PATCH] Only replace bcc if there are any --- send.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/send.py b/send.py index 847bf31..826ce0c 100755 --- a/send.py +++ b/send.py @@ -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]