Skip to Content.
Sympa Menu

en - Re: [sympa-users] disable the command parsing feature

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: "Igor Shabaltas" <address@concealed>
  • To: <address@concealed>, <address@concealed>
  • Subject: Re: [sympa-users] disable the command parsing feature
  • Date: Mon, 4 Jun 2001 13:45:32 -0700

> Hello,

Hi,

>
> I would like to know how one should proceed
> to get rid of the command feature of sympa.
>
> That is I would like to stop sympa from looking
> at the message subject and body for commands.
> Is there a simple way to turn that feauture off ?
>
> Thanks a million
>
> TOM
> address@concealed

In tools.pl I did next changes and it's works fine for me (see below).
I'm using Sympa version 3.0.3.

$ diff tools.pl.orig tools.pl > ~shaber/diff
80,98c80,98
< if ($subject) {
< foreach $avoid (@avoid_hdr) {
< if ($subject =~ /^\s*(quiet)?($avoid)(\s+|$)/im) {
< &rejectMessage($msg, $sender);
< return 1;
< }
< }
< }
< foreach $i (@{$msg->body}) {
< foreach $avoid (@avoid_hdr) {
< if ($i =~ /^\s*(quiet)?($avoid)(\s+|$)/im) { ## Suspicious line
< &rejectMessage($msg, $sender);
< return 1;
< }
< }
< ## Control is only applied to first non-blank line
< last unless $i =~ /^\s*$/;
<
< }
---
> ##if ($subject) {
> ## foreach $avoid (@avoid_hdr) {
> ## if ($subject =~ /^\s*(quiet)?($avoid)(\s+|$)/im) {
> ## &rejectMessage($msg, $sender);
> ## return 1;
> ## }
> ## }
> ##}
> ##foreach $i (@{$msg->body}) {
> ## foreach $avoid (@avoid_hdr) {
> ## if ($i =~ /^\s*(quiet)?($avoid)(\s+|$)/im) { ## Suspicious
line
> ## &rejectMessage($msg, $sender);
> ## return 1;
> ## }
> ## }
> ## ## Control is only applied to first non-blank line
> ## last unless $i =~ /^\s*$/;
> ##
> ##}

Thanks,
---
Igor Shabaltas <address@concealed>





Archive powered by MHonArc 2.6.19+.

Top of Page