Subject: logcheck-database: /etc/logcheck/ignore.d.server/spamd regex broken, 
triggered by unusual Message-Id
Package: logcheck-database
Version: 1.3.13
Severity: minor

*** Please type your report below this line ***
Hello, there are a few commas that are out of place in one of the
spamassassin expressions:

^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ 
(spamd|check|re(port|voke))\[[[:digit:]]+\]: (spamd: )?result: [.YN] [ 
[:digit:]-]+ - ([._[:alnum:],]+ 
)?scantime=[[:digit:].]+,size=[[:digit:]]+,(user=[^,]+,uid=[[:digit:]]+,required_score=[[:digit:].]+,rhost=[._[:alnum:]-]+,raddr=[[:digit:].]+,rport=[/[:alnum:].-]+,)?mid=(<[^[:space:]]+>|\(unknown\))(rmid=(<[^[:space:]]+>|\(unknown\)),)?,(bayes=[.[:digit:]]+(e-[[:digit:]]+)?,)?autolearn=(ham|spam|no|disabled|unavailable)(,shortcircuit=(ham|spam|no))?
 *$

Fixed:

^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ 
(spamd|check|re(port|voke))\[[[:digit:]]+\]: (spamd: )?result: [.YN] [ 
[:digit:]-]+ - ([._[:alnum:],]+ 
)?scantime=[[:digit:].]+,size=[[:digit:]]+,(user=[^,]+,uid=[[:digit:]]+,required_score=[[:digit:].]+,rhost=[._[:alnum:]-]+,raddr=[[:digit:].]+,rport=[/[:alnum:].-]+,)?mid=(<[^[:space:]]+>|\(unknown\)),(rmid=(<[^[:space:]]+>|\(unknown\)),)?(bayes=[.[:digit:]]+(e-[[:digit:]]+)?,)?autolearn=(ham|spam|no|disabled|unavailable)(,shortcircuit=(ham|spam|no))?
 *$

...the comma before and after the rmid= group.

I think you have to get a message with mid=(unknown) for rmid=<foo> to
show up, quite rare, otherwise the regex has been working fine.

Thanks!

-- System Information:
Debian Release: 6.0
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-xen-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

-- no debconf information

-- 
Gerald Turner   Email: [email protected]   JID: [email protected]
GPG: 0xFA8CD6D5  21D9 B2E8 7FE7 F19E 5F7D  4D0C 3FA0 810F FA8C D6D5

Attachment: pgpWtNp1YyMGL.pgp
Description: PGP signature

_______________________________________________
Logcheck-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/logcheck-devel

Reply via email to