aboutsummaryrefslogtreecommitdiff
path: root/lib/Sietima/Role/Debounce.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Sietima/Role/Debounce.pm')
-rw-r--r--lib/Sietima/Role/Debounce.pm11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/Sietima/Role/Debounce.pm b/lib/Sietima/Role/Debounce.pm
index 882d982..f949842 100644
--- a/lib/Sietima/Role/Debounce.pm
+++ b/lib/Sietima/Role/Debounce.pm
@@ -14,11 +14,20 @@ Sietima::Role::Debounce - avoid mail loops
=head1 DESCRIPTION
A L<< C<Sietima> >> list with this role applied will mark each message
-with a C<X-Been-There> header, and will not handle any messages that
+with a C<X-Been-There:> header, and will not handle any messages that
have that same header. This prevents messages bounced by other
services from being looped between the mailing list and those other
services.
+=head1 MODIFIED MESSAGES
+
+=head2 C<munge_mail>
+
+If the incoming email contains our C<X-Been-There:> header, this
+method will return an empty list (essentially dropping the message).
+
+Otherwise, the header is added, and the email is processed normally.
+
=cut
my $been_there = 'X-Been-There';