X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=philter%2Fphilter%2Finclude%2Fplugin_autoreply.inc.php;h=e068ce1be8d131abd49d9582a4a5d0b56fda9cd0;hb=27c46cc101c9b69ebcb22ffd9696c4acc3eeeb8e;hp=cc517e051cb7d849cc7e4ea021907b86717b5c53;hpb=99dcf940fad4ce8a16963aa9466c668db2876c99;p=old-projects.git diff --git a/philter/philter/include/plugin_autoreply.inc.php b/philter/philter/include/plugin_autoreply.inc.php index cc517e0..e068ce1 100644 --- a/philter/philter/include/plugin_autoreply.inc.php +++ b/philter/philter/include/plugin_autoreply.inc.php @@ -32,16 +32,13 @@ EOF; function to_string($_data) { $uid = get_user_id(); $text = explode("\n",$_data[1]); - $res = "| ( formail -rA'X-Philter-Autoreply: $uid; \ \n"; + $res = " :0 hc\n" + . " *X-Philter-Autoreply: $uid" + . " | ( formail -rA'X-Philter-Autoreply: $uid; \ \n"; foreach($text as $line) - $res .= " echo ".escapeshellarg($line)."; \ \n"; - $res .= " ) | $"."SENDMAIL -oi -t\n"; - } - - function to_header_string() { - return "* ^X-Philter-Autoreply:".get_user_id()."\n" - . "/dev/null\n" - . "\n"; + $res .= " echo ".escapeshellarg($line)."; \ \n"; + $res.= " ) | $"."SENDMAIL -oi -t\n"; + return $res; } }