diff options
| author | Barry Warsaw | 2009-11-02 22:28:22 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-11-02 22:28:22 -0500 |
| commit | c202caefecbead4c49fbf16ee39461aaef5fa149 (patch) | |
| tree | 7bb0bbfb39a66ea353f299f9b882825d37661317 /src | |
| parent | 3056c49ffff2775271e30c5a0ba98a0aa9b03483 (diff) | |
| download | mailman-c202caefecbead4c49fbf16ee39461aaef5fa149.tar.gz mailman-c202caefecbead4c49fbf16ee39461aaef5fa149.tar.zst mailman-c202caefecbead4c49fbf16ee39461aaef5fa149.zip | |
Diffstat (limited to 'src')
| -rw-r--r-- | src/mailman/mta/decorating.py | 6 | ||||
| -rw-r--r-- | src/mailman/mta/docs/decorating.txt | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mailman/mta/decorating.py b/src/mailman/mta/decorating.py index bf7472327..6093971f8 100644 --- a/src/mailman/mta/decorating.py +++ b/src/mailman/mta/decorating.py @@ -36,10 +36,10 @@ class DecoratingMixin: def decorate(self, mlist, msg, msgdata): """Add recipient-specific headers and footers.""" + decorator = config.handlers['decorate'] + decorator.process(mlist, msg, msgdata) # Do not decorate a message more than once. - if not msgdata.get('decorated', False): - decorator = config.handlers['decorate'] - decorator.process(mlist, msg, msgdata) + msgdata['nodecorate'] = True diff --git a/src/mailman/mta/docs/decorating.txt b/src/mailman/mta/docs/decorating.txt index f588eed5e..490974913 100644 --- a/src/mailman/mta/docs/decorating.txt +++ b/src/mailman/mta/docs/decorating.txt @@ -157,7 +157,7 @@ Decorate only once Do not decorate a message twice. Decorators must insert the 'decorated' key into the message metadata. - >>> msgdata['decorated'] = True + >>> msgdata['nodecorate'] = True >>> decorating.deliver(mlist, msg, msgdata) {} >>> messages = list(smtpd.messages) |
