# HG changeset patch # User Paul Boddie # Date 1418163618 -3600 # Node ID e38082b5b7a4e0c2ad8d2d9488d4cf400945a833 # Parent 884560298d085a0d840013cd599502b6b6211136 Moved the e-mail identity of the agent into the config module. diff -r 884560298d08 -r e38082b5b7a4 imiptools/config.py --- a/imiptools/config.py Tue Dec 09 22:53:45 2014 +0100 +++ b/imiptools/config.py Tue Dec 09 23:20:18 2014 +0100 @@ -1,5 +1,9 @@ #!/usr/bin/env python +# The public identity of the agent. + +MESSAGE_SENDER = "calendar@example.com" + # The location of the stored calendar information. STORE_DIR = "/var/lib/imip-agent/store" diff -r 884560298d08 -r e38082b5b7a4 imiptools/mail.py --- a/imiptools/mail.py Tue Dec 09 22:53:45 2014 +0100 +++ b/imiptools/mail.py Tue Dec 09 23:20:18 2014 +0100 @@ -1,12 +1,11 @@ #!/usr/bin/env python +from imiptools.config import MESSAGE_SENDER from email.mime.message import MIMEMessage from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from smtplib import LMTP, SMTP -MESSAGE_SENDER = "imip-agent@example.com" - MESSAGE_SUBJECT = "Calendar system message" MESSAGE_TEXT = """\