From 737cadf1fd840a9e8d83ee22813e7723abdab2ec Mon Sep 17 00:00:00 2001 From: David Carter Date: Wed, 20 Mar 2024 10:59:38 +0000 Subject: [PATCH] Potential fix for https://github.com/sympa-community/sympa/issues/1737 --- src/cgi/wwsympa.fcgi.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cgi/wwsympa.fcgi.in b/src/cgi/wwsympa.fcgi.in index a7e730f3d..e7afde703 100644 --- a/src/cgi/wwsympa.fcgi.in +++ b/src/cgi/wwsympa.fcgi.in @@ -7732,6 +7732,10 @@ sub do_distribute { $spool_mod->remove($handle, action => 'distribute'); } + # Don't need to do anything if all messages were filtered out + # by the "already_moderated" clause above. + return 'modindex' if (@mail_command == 0); + # Commands are injected into incoming spool directly with "md5" # authentication level. my $cmd_message = Sympa::Message->new(