Skip to content

Commit c3c07ff

Browse files
authored
Merge pull request #1726 from ikedas/issue-1699
DSN with status 4.3.0 may mess the parent of nested list (#1699)
2 parents 19db897 + d7f071f commit c3c07ff

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/lib/Sympa/Spindle/ToModeration.pm

+4-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
# Copyright (c) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
88
# 2006, 2007, 2008, 2009, 2010, 2011 Comite Reseau des Universites
99
# Copyright (c) 2011, 2012, 2013, 2014, 2015, 2016, 2017 GIP RENATER
10-
# Copyright 2020, 2022 The Sympa Community. See the AUTHORS.md
11-
# file at the top-level directory of this distribution and at
10+
# Copyright 2020, 2022, 2023 The Sympa Community. See the
11+
# AUTHORS.md file at the top-level directory of this distribution and at
1212
# <https://github.com/sympa-community/sympa.git>.
1313
#
1414
# This program is free software; you can redistribute it and/or modify
@@ -94,7 +94,8 @@ sub _twist {
9494
Time::HiRes::time() - $self->{start_time}
9595
);
9696

97-
Sympa::send_dsn($list, $message, {}, '4.3.0')
97+
# Do not report to the sender if the message was tagged as a spam.
98+
Sympa::send_dsn($list, $message, {}, '2.3.0')
9899
unless $self->{quiet}
99100
or $message->{'spam_status'} eq 'spam';
100101
return 1;

0 commit comments

Comments
 (0)