diff options
author | Kali Kaneko <kali@futeisha.org> | 2014-11-11 21:53:25 +0100 |
---|---|---|
committer | Kali Kaneko <kali@futeisha.org> | 2014-11-11 21:53:25 +0100 |
commit | 20b7b701508bf6e2c9a9cee38db9757dd07e52fe (patch) | |
tree | 1101ed78a557bbf41c29e2d6ff00849a45cbc568 /pkg/leap_mx.tac | |
parent | 0420989d62c7508e31f946ca7b52e98b87cc2bcb (diff) | |
parent | d8893584886a593dd6ddcfa1a6930288c7fd8ecc (diff) |
Merge tag '0.6.0' into debian/experimental
Tag leap.mx version 0.6.0
Diffstat (limited to 'pkg/leap_mx.tac')
-rw-r--r-- | pkg/leap_mx.tac | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/pkg/leap_mx.tac b/pkg/leap_mx.tac index c101de9..75d2405 100644 --- a/pkg/leap_mx.tac +++ b/pkg/leap_mx.tac @@ -46,6 +46,15 @@ password = config.get("couchdb", "password") server = config.get("couchdb", "server") port = config.get("couchdb", "port") +bounce_from = "bounce" +bounce_subject = "Delivery failure" + +try: + bounce_from = config.get("bounce", "from") + bounce_subject = config.get("bounce", "subject") +except ConfigParser.NoSectionError: + pass # we use the defaults above + alias_port = config.getint("alias map", "port") check_recipient_port = config.getint("check recipient", "port") @@ -74,11 +83,12 @@ mail_couch_url_prefix = "http://%s:%s@%s:%s" % (user, port) directories = [] for section in config.sections(): - if section in ("couchdb", "alias map", "check recipient"): + if section in ("couchdb", "alias map", "check recipient", "bounce"): continue to_watch = config.get(section, "path") recursive = config.getboolean(section, "recursive") directories.append([to_watch, recursive]) -mr = MailReceiver(mail_couch_url_prefix, cdb, directories) +mr = MailReceiver(mail_couch_url_prefix, cdb, directories, bounce_from, + bounce_subject) mr.setServiceParent(application) |