Regular expressions in procmail

خرید بک لینک

I have a problem with backscatter to randomly generated fake-from-adresses on a domain with a catchall.

The fake-alias is using a scheme, using egrep with the regexp

^To:.*.[A-Z].[a-z].*[A-Z].[a-z].*[0-9]{2,5}@example.org.*

in my maildir lists all unwanted backscatter und luckily no address using this scheme is actually in use.

However, procmail is convinced that it does not match.

:0hD:
* ^To:.*.[A-Z].[a-z].*[A-Z].[a-z].*[0-9]{2,5}@example.org.*
!spam

procmail: No match on "^To:.*.[A-Z].[a-z].*[A-Z].[a-z].*[0-9]{2,5}@example.org.*"

I can't get procmail to interpret a regular expression like egrep (and other tools using regex's) does.

What am I doing wrong?

I found out that by default procmail ignores case, that's why I added "D" to the recipe. But I don't find any example with usage of [A-Z] in a procmail-recipes. Am I trying something impossible?

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 205 تاريخ: دوشنبه 10 خرداد 1395 ساعت: 22:04

صفحه بندی