diff options
Diffstat (limited to 'sendmail.py')
-rwxr-xr-x | sendmail.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sendmail.py b/sendmail.py index 0c7b1f8..d4b2a5c 100755 --- a/sendmail.py +++ b/sendmail.py @@ -210,7 +210,11 @@ def main() -> None: body=html, to=config["sendmail"]["to_1"].split(" "), cc=config["sendmail"]["cc_1"].split(" "), - bcc=config["sendmail"]["bcc_1"].split(" "), + bcc=[ + w.strip() + for w in open(config["sendmail"]["bcc_1_file"], "r").readlines() + if w.strip() + ], when=date.replace( hour=int(config["sendmail"]["hour"]), minute=int(config["sendmail"]["minute"]), @@ -233,7 +237,11 @@ def main() -> None: body=html, to=config["sendmail"]["to_2"].split(" "), cc=config["sendmail"]["cc_2"].split(" "), - bcc=config["sendmail"]["bcc_2"].split(" "), + bcc=[ + w.strip() + for w in open(config["sendmail"]["bcc_2_file"], "r").readlines() + if w.strip() + ], when=date.replace( hour=int(config["sendmail"]["hour"]), minute=int(config["sendmail"]["minute"]), |