Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

On my mail server, I have a custom logcheck rule as follows, which is intended to filter messages from deliver:

^\w{3} [ :0-9]{11} [._[:alnum:]-]+ deliver\.*\): msgid=.*: saved mail to.*$

Unfortunately, the msgid=.* wildcard does not match if there are non-latin characters in the Message-Id, so lines like the following make it through the filter:

May 10 19:43:20 zapp deliver(matt): msgid=<20110510064307.3702.qmail@ÇöÀÌ01>: saved mail to spam

Logcheck uses egrep internally, and I've not found any way to make the period character include non-latin characters. Any ideas?

share|improve this question

1 Answer 1

I think your problem is not locale chars. To me part with deliver\.*\): seems wrong and it wouldn't match deliver(matt). Try using deliver[^:]+: instead.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.