X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=philter%2Fphilter%2Finclude%2Fplugin_autoreply.inc.php;h=25a9788b0c8141750561209ac60b5c39c4fdd5fd;hb=fd96b13fe3c1a82b2f4c041ff3fd81a6bcd71dbc;hp=e068ce1be8d131abd49d9582a4a5d0b56fda9cd0;hpb=f03530ce96970815720671b9b4afa3870f702f0d;p=old-projects.git diff --git a/philter/philter/include/plugin_autoreply.inc.php b/philter/philter/include/plugin_autoreply.inc.php index e068ce1..25a9788 100644 --- a/philter/philter/include/plugin_autoreply.inc.php +++ b/philter/philter/include/plugin_autoreply.inc.php @@ -33,10 +33,11 @@ EOF; $uid = get_user_id(); $text = explode("\n",$_data[1]); $res = " :0 hc\n" - . " *X-Philter-Autoreply: $uid" - . " | ( formail -rA'X-Philter-Autoreply: $uid; \ \n"; + . " * !^FROM_DAEMON\n" + . " * !^X-Philter-Autoreply: $uid\n" + . " | ( formail -rI'Precedence: junk' -A'X-Philter-Autoreply: $uid; \ \n"; foreach($text as $line) - $res .= " echo ".escapeshellarg($line)."; \ \n"; + $res .= " echo ".escapeshellarg(chop($line))."; \ \n"; $res.= " ) | $"."SENDMAIL -oi -t\n"; return $res; }