1.1 --- a/imiptools/config.py Wed Oct 21 15:22:09 2015 +0200
1.2 +++ b/imiptools/config.py Wed Oct 21 17:14:33 2015 +0200
1.3 @@ -6,6 +6,10 @@
1.4
1.5 MESSAGE_SENDER = "calendar@example.com"
1.6
1.7 +# The local message handling prefix.
1.8 +
1.9 +LOCAL_PREFIX = "local"
1.10 +
1.11 # The outgoing message handling prefix.
1.12
1.13 OUTGOING_PREFIX = "people-outgoing"
2.1 --- a/imiptools/mail.py Wed Oct 21 15:22:09 2015 +0200
2.2 +++ b/imiptools/mail.py Wed Oct 21 17:14:33 2015 +0200
2.3 @@ -19,7 +19,7 @@
2.4 this program. If not, see <http://www.gnu.org/licenses/>.
2.5 """
2.6
2.7 -from imiptools.config import MESSAGE_SENDER, OUTGOING_PREFIX
2.8 +from imiptools.config import LOCAL_PREFIX, MESSAGE_SENDER, OUTGOING_PREFIX
2.9 from email.mime.message import MIMEMessage
2.10 from email.mime.multipart import MIMEMultipart
2.11 from email.mime.text import MIMEText
2.12 @@ -98,7 +98,7 @@
2.13 """
2.14
2.15 parts = recipient.split("+", 1)
2.16 - return "%s+%s" % ("local", parts[-1])
2.17 + return "%s+%s" % (LOCAL_PREFIX, parts[-1])
2.18
2.19 def make_outgoing_message(self, parts, recipients, sender=None, outgoing_bcc=None):
2.20