diff options
| author | bwarsaw | 2001-07-10 05:42:30 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-07-10 05:42:30 +0000 |
| commit | af67b051fc75b08dfd3904d5ad7c2079e11d0b15 (patch) | |
| tree | 32f2937f9b5403ced57297d28687beab9b4e85c7 | |
| parent | a13085395c2977e75e0b6a000daba5739bf4f581 (diff) | |
| download | mailman-af67b051fc75b08dfd3904d5ad7c2079e11d0b15.tar.gz mailman-af67b051fc75b08dfd3904d5ad7c2079e11d0b15.tar.zst mailman-af67b051fc75b08dfd3904d5ad7c2079e11d0b15.zip | |
| -rw-r--r-- | Mailman/Handlers/Hold.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Mailman/Handlers/Hold.py b/Mailman/Handlers/Hold.py index a610c822b..0e7860b78 100644 --- a/Mailman/Handlers/Hold.py +++ b/Mailman/Handlers/Hold.py @@ -47,33 +47,33 @@ def _(s): -class ForbiddenPoster(Errors.MessageHeld): +class ForbiddenPoster(Errors.HoldMessage): "Sender is explicitly forbidden" rejection = _('You are forbidden from posting messages to this list.') -class ModeratedPost(Errors.MessageHeld): +class ModeratedPost(Errors.HoldMessage): "Post to moderated list" rejection = _('Your message was deemed inappropriate by the moderator.') -class NonMemberPost(Errors.MessageHeld): +class NonMemberPost(Errors.HoldMessage): "Post by non-member to a members-only list" rejection = _('Non-members are not allowed to post messages to this list.') -class NotExplicitlyAllowed(Errors.MessageHeld): +class NotExplicitlyAllowed(Errors.HoldMessage): "Posting to a restricted list by sender requires approval" rejection = _('This list is restricted; your message was not approved.') -class TooManyRecipients(Errors.MessageHeld): +class TooManyRecipients(Errors.HoldMessage): "Too many recipients to the message" rejection = _('Please trim the recipient list; it is too long.') -class ImplicitDestination(Errors.MessageHeld): +class ImplicitDestination(Errors.HoldMessage): "Message has implicit destination" rejection = _('''Blind carbon copies or other implicit destinations are not allowed. Try reposting your message by explicitly including the list address in the To: or Cc: fields.''') -class Administrivia(Errors.MessageHeld): +class Administrivia(Errors.HoldMessage): "Message may contain administrivia" def rejection_notice(self, mlist): @@ -84,18 +84,18 @@ list. If you wish to subscribe, visit %(listurl)s or send a message with the word `help' in it to the request address, %(request)s, for further instructions.""") -class SuspiciousHeaders(Errors.MessageHeld): +class SuspiciousHeaders(Errors.HoldMessage): "Message has a suspicious header" rejection = _('Your message had a suspicious header.') -class MessageTooBig(Errors.MessageHeld): +class MessageTooBig(Errors.HoldMessage): "Message body is too big: %d bytes but there's a limit of %d KB" def __init__(self, msgsize, limit): self.__msgsize = msgsize self.__limit = limit def __str__(self): - return Errors.MessageHeld.__str__(self) % ( + return Errors.HoldMessage.__str__(self) % ( self.__msgsize, self.__limit) def rejection_notice(self, mlist): |
