Article View: alt.privacy.anon-server
Article #268793Re: Regex help
From: Bergman Admin
Date: Thu, 03 Jul 2014 16:17
Date: Thu, 03 Jul 2014 16:17
29 lines
2144 bytes
2144 bytes
On 03/07/14 04:47 AM, Zax wrote: > You could get postfix to handle it for you. > > Make sure you have postfix-pcre installed. > > In main.cf:- > header_checks = pcre:/etc/postfix/header_checks > > Create a header_checks file:- > /^From: .*ayuda.*/ DISCARD > > > You should also be able to do it with Procmail: > > :0 > * ^From: .*ayuda.*@gmail\.com > /dev/null > > Procmail uses egrep style expressions so you can test your regexs like > this: > echo 'ayuda7hastapar4todo@gmail.com' | egrep .*ayuda.*@gmail\.com Thanks, Zax. 'Just what I needed. -- Bergman Remailer Admin 0x770251F2 Fingerprint: 8124 C17B 7FD9 1738 066F 4E29 4407 A967 7702 51F2
Technical Details
Message-ID:
<lp3vn2$qa2$2@solani.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!border1.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mailReferences:
<lp2hes$mir$1@solani.org> <slrnlra65r.a1l.admin@snorky.mixmin.net>Show Full Headers
Complete Article Headers
Message-ID: <lp3vn2$qa2$2@solani.org> Subject: Re: Regex help Date: Thu, 03 Jul 2014 12:17:35 -0400 From: Bergman Admin <nobody@bergman.delphy.org> References: <lp2hes$mir$1@solani.org> <slrnlra65r.a1l.admin@snorky.mixmin.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!border1.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail Newsgroups: alt.privacy.anon-server Organization: solani.org Lines: 29 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1404404259 26946 eJwNy8EBADEEBMCWsEi0s0T/JdzNfwKp2ccz0mNjrVgQT5BlfI47V3dsGDgekAeZlvrDJrU/DRUQnQ== X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Thu, 3 Jul 2014 16:17:39 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; X-User-ID: eJwNysEBADEEBMCakF2Uc4j+S8jNe2AUth+CB4v11qw5+oE9N+1KeOTUHyyU3sE2rwXEI9YeGK4Qmg== X-No-Archive: yes In-Reply-To: <slrnlra65r.a1l.admin@snorky.mixmin.net> Cancel-Lock: sha1:+oKnrY47nOH94HJkG7PF72earJQ= X-NNTP-Posting-Host: eJwFwYERADAEBLCZHP8Yh2L/EZpAKXxuBA2Hc52xDeFcU+eUmVWXoHhV7sNizHWjIiX6AypyEYU= X-Enigmail-Version: 1.6