1.1 --- a/imiptools/mail.py Mon Jan 30 23:23:30 2017 +0100
1.2 +++ b/imiptools/mail.py Mon Jan 30 23:28:11 2017 +0100
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Mail preparation support.
1.6
1.7 -Copyright (C) 2014, 2015, 2016 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2014, 2015, 2016, 2017 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU General Public License as published by the Free Software
1.12 @@ -19,12 +19,16 @@
1.13 this program. If not, see <http://www.gnu.org/licenses/>.
1.14 """
1.15
1.16 -from imiptools.config import LOCAL_PREFIX, MESSAGE_SENDER, OUTGOING_PREFIX
1.17 +from imiptools.config import settings
1.18 from email.mime.message import MIMEMessage
1.19 from email.mime.multipart import MIMEMultipart
1.20 from email.mime.text import MIMEText
1.21 from smtplib import LMTP, SMTP
1.22
1.23 +LOCAL_PREFIX = settings["LOCAL_PREFIX"]
1.24 +MESSAGE_SENDER = settings["MESSAGE_SENDER"]
1.25 +OUTGOING_PREFIX = settings["OUTGOING_PREFIX"]
1.26 +
1.27 # Fake gettext function for strings to be translated later.
1.28
1.29 _ = lambda s: s