Skip to Content.
Sympa Menu

en - [sympa-users] Moderated Scenario not working

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Steve Rich <address@concealed>
  • To: "address@concealed" <address@concealed>
  • Subject: [sympa-users] Moderated Scenario not working
  • Date: Wed, 26 Aug 2015 18:10:26 +0000

Hi all,

We just upgraded from 5.4.7 to 6.2.3.  I have 24 lists that have the following send scenario

title.gettext Anyone may send to the list, and their messages get forwarded to the moderators; moderators themselves may send straight to the list.

is_editor([listname],[sender])                 smtp,smime,md5    -> do_it
is_editor([listname],[header->X-sender])       smtp,smime,md5    -> do_it
true()                                         smtp,smime,md5    -> editor

According to the documentation, this should work just fine but my logs indicate the following:

Aug 24 12:37:58 lists-app-01 sympa_msg[26264]: err main::#355 > main::process_message#863 > main::DoMessage#1669 Failed to send moderation request of Sympa::Message <address@concealed> by address@concealed for list Sympa::List <address@concealed> to editor(s)


The users are reporting that their messages are never delivered unless sent directly by an editor or owner.


I dug through the code and traced what is happening:



sympa_msg.pl


my $key = Sympa::List::send_confirm_to_editor($message, 'smtp');


        unless (defined $key) {

            $log->syslog(

                'err',

                'Failed to send moderation request of %s by %s for list %s to editor(s)',

                $message,

                $sender,

                $list

            );


The send_confirm_to_editor() function in 6.2.3 returns the modkey to the calling function but modkey is only defined if method is md5, not smtp.

my $modkey = undef;


The send_to_editor() function in 5.4.7 returns a defined modkey regardless of the method (smtp, md5, etc).

my $modkey=Digest::MD5::md5_hex(join('/', $self->get_cookie(),$messageid));



I don’t see anything in the changelogs that references this change but it effectively breaks the editor action in send scenarios.  Was this intended or did I find a bug?


Thanks,
Steve




Archive powered by MHonArc 2.6.19+.

Top of Page