Browse Source

Use lowercase-matching for mail addresses

master
Johann Schmitz 6 years ago
parent
commit
da954cd8dd
Signed by: ercpe GPG Key ID: A084064277C501ED
  1. 2
      src/greatvacation/daemon/vacationd.py

2
src/greatvacation/daemon/vacationd.py

@ -25,7 +25,7 @@ class ReplyThread(threading.Thread):
def run(self):
try:
# get the recipient email addresses
recipients = [email for _, email in getaddresses(self.mail.get_all('To', []) + self.mail.get_all('CC', [])) if email]
recipients = [email.lower() for _, email in getaddresses(self.mail.get_all('To', []) + self.mail.get_all('CC', [])) if email]
logging.info("Sender: %s" % ', '.join([email for _, email in getaddresses(self.mail.get_all('From', []))]))
logging.info("Recipients: %s" % ', '.join(recipients))