Open dpc22 opened 7 months ago
I ended up redirecting sympa-request@lists.cam.ac.uk to /dev/null, as I don't think that is actually used for anything real.
I'm happy to put together a one line patch as a git pull request if that helps.
Here's the patch that I propose though:
Hi @dpc22, Thanks for reporting bug and suggesting fix! Could you please submit PR including your fix?
Okay, I think that I have done this, although it took me some time to remember how pull requests work.
https://github.com/sympa-community/sympa/pull/1818
I'm not a developer and I don't do this very often.
Version
6.2.72
Installation method
My own rpm, derived from the official rpm for RHEL 7
Expected behavior
If a list has multiple moderators/editors, then several different people may end up clicking on the link which is quoted:
The second and any further person to click on the link sees an error popup of the form:
which would work nicely if that was all that happened.
Actual behavior
Each time that someone clicks on the link after the message has been approved or rejected, sympa-request receives an email of the form:
We run a site with 8000 Sympa lists and see at least a dozen of these messages each day.
Steps to reproduce
Click on the "sympa/distribute" link in a moderation email several times. The second and subsequent clicks log:
Additional information
I'm pretty sure that this is because wwsympa.fcgi do_distribute() translates each click within the Web interface into an internal email message with zero or more "QUIET DISTRIBUTE" commands:
It looks like there should be a trivial fix where we only run Sympa::Message->new() when @mail_command is a non-empty list.