I just wrote this patch and it seems to work (tested with and without log_selector +pid):
--- /usr/share/munin/plugins/exim_mailstats_ 2007-08-07 17:33:43.000000000 +0200 +++ /usr/share/munin/plugins/exim_mailstats 2007-09-03 10:20:28.000000000 +0200 @@ -251,11 +251,15 @@ my $line =<LOGFILE>; chomp ($line); - if (substr ($line, 37,2 ) eq '<=') + my $str = undef; + $line =~ m/^.{19}\s(\[\d+\]\s)?.{16}\s(.{9})/; + $str = $2; + + if (defined($str) && substr ($str, 0,2) eq '<=') { $received++; } - elsif (substr ($line, 37,9) eq 'Completed') + elsif (defined($str) && substr ($str, 0,9) eq 'Completed') { $completed++; } -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]