]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Fix: bug in sendmail log parsing
authoreldy <>
Tue, 28 Nov 2006 21:00:42 +0000 (21:00 +0000)
committereldy <>
Tue, 28 Nov 2006 21:00:42 +0000 (21:00 +0000)
tools/maillogconvert.pl

index dd778d7e4177d5cefff22e784e6125f34d1e120e..1f24f42041493ae6e038f680aaa7c9f70d2f5de7 100644 (file)
@@ -370,7 +370,7 @@ while (<>) {
                $mail{$id}{'mon'}=$mon;
                $mail{$id}{'day'}=$day;
                $mail{$id}{'time'}=$time;
-               if (&trim($to)=~/^|/) {
+               if (&trim($to)=~/^\|/) {
                        # In particular case of mails are sent to a pipe, the ctladdr contains the to
                        $mail{$id}{'to'}=&trim($fromorto);
                } else {