opus
October 4th, 2003, 19:27
I dont want these emails....how can I filter them out?

Subject: =?ISO-8859-1?b?UmU6U3BlY2lhbCBQcm9tb3Rpb24gU2lsZGVuYWZpbCBDaX RyYXRlICAoNikgNTBtZy4gZG9zZXMgRlJFRSBDb25zdWx0YXRp b24=?=

I have this in my header_checks but it isnt working.

/^Subject: .*\=\?ISO/ REJECT

soup4you2
October 4th, 2003, 19:55
I dont want these emails....how can I filter them out?

Subject: =?ISO-8859-1?b?UmU6U3BlY2lhbCBQcm9tb3Rpb24gU2lsZGVuYWZpbCBDaX RyYXRlICAoNikgNTBtZy4gZG9zZXMgRlJFRSBDb25zdWx0YXRp b24=?=

I have this in my header_checks but it isnt working.

/^Subject: .*\=\?ISO/ REJECT

/^Subject: .*0 =?ISO-8859-1?b?UmU6U3BlY2lhbCBQcm9tb3Rpb24gU2lsZGVuYWZpbCBDaX RyYXRlICAoNikgNTBtZy4gZG9zZXMgRlJFRSBDb25zdWx0YXRp b24=?=/ REJECT Because you suck dick!

inside your header_checks

opus
October 4th, 2003, 20:25
Soup....that'll kinda work. Problem is that I want to block everything with ISO in the subject line not just that particular one. Was thinking what I had would work....but.

soup4you2
October 4th, 2003, 20:58
Soup....that'll kinda work. Problem is that I want to block everything with ISO in the subject line not just that particular one. Was thinking what I had would work....but.

is there anything else unique in the header we can use?
can we see the full header?

opus
October 4th, 2003, 21:02
For you anything.


Return-Path: <childress_pe@mdnet.com.br>
Delivered-To: pete@localhost.dopey.hopto.org
Received: from wuerzburg.de (pool-151-199-53-111.bos.east.verizon.net [151.199.53.111])
by dopey.dopey.hopto.org (Postfix) with ESMTP id 4EFCECB
for <pete@milneweb.com>; Sat, 4 Oct 2003 11:59:18 -0600 (MDT)
Date: Sun, 05 Oct 2003 02:00:13 +0000
MIME-Version: 1.0
Message-ID: <1a2a01c38ae4$8c8128bd$baadfced@mntbyfd>
To: pete@milneweb.com
Subject: =?ISO-8859-1?b?UmU6U3BlY2lhbCBQcm9tb3Rpb24gU2lsZGVuYWZpbCBDaX RyYXRlICAoNikgNTBtZy4gZG9zZXMgRlJFRSBDb25zdWx0YXRp b24=?=
From: "Madeleine Childress" <childress_pe@mdnet.com.br>
Content-Type: text/html
Content-Transfer-Encoding: 8bit

<html><body>
<center><!--iuux7218tf3--><a href="http://www.reansome21.com/host/default.asp?ID=omni"><!--srbQ1259CuFv--><img src="http://signgreat1.com/pics/gv1.gif" height="270" width="405"></a></center>
<br><a href="http://www.reansome21.com/host/emailremove.asp?ID=omni"><br><font size="1">Rem<!--73rfgb1y32a-->ove Me</a></font>

</html></body?

soup4you2
October 4th, 2003, 21:07
/^Subject: .*?b?UmU6U3BlY2lhbCBQcm9tb3Rpb24gU2lsZGVuYWZpbCBDa XRyYXRlICAoNikgNTBtZy4gZG9zZXMgRlJFRSBDb25zdWx0YXR pb24=?=/ REJECT My Penis works just fine thanks for the offer though..

you could probbibly also do a body check for

/www.reansome21.com/ REJECT My penis doesnt like you

elmore
October 8th, 2003, 15:43
If the subject always has =?ISO

Then the following should work. I copied your header and modified it in a few ways to double check. I'm just learning regex syntax in order to improve my sed and awk abilities so I made an example out of your header:

[code:1:747ce5a7a2]

workstation# more header
Subject: =?ISO-8859-1?b?UmU6U3BlY2lhbCBQcm9tb3Rpb24gU2lsZGVuYWZpbCBDaX RyYXRlICAoNikgNTBtZy4gZG9zZXMgRlJFRSBDb25zdWx0YXRp b24=?=
Subject: =?ISO-?b?UmU6U3BlY2lhbCBQcm9tb3Rpb24gU2lsZGVuYWZpbCBDaXR yYXRlICAoNikgNTBtZy4gZG9zZXMgRlJFRSBDb25zdWx0YXRpb 24=?=
Subject: =?ISO88591?RlICAoNikgNTBtZy4gZG9zZXMgRlJFRSBDb25zd Wx0YXRpb24=?=
Subject: =?ISO-
Subject: =?8859-1?b?UmU6U3BlY?=
Subject: =?ISO-8859-1?b?UmU6U3BlY?=
Subject: =?IO-8859-1?b?UmU6U3BlY?=
Subject: 8859-1?b?UmU6U3BlY?=
Subject: ISO-8859-1?b?UmU6U3BlY?=
Subject: ISO 8859-1?b?UmU6U3BlY?=

workstation# egrep -e '^Subject: .*ISO[-,.{A-Za-z}{0-9}]+' header
Subject: =?ISO-8859-1?b?UmU6U3BlY2lhbCBQcm9tb3Rpb24gU2lsZGVuYWZpbCBDaX RyYXRlICAoNikgNTBtZy4gZG9zZXMgRlJFRSBDb25zdWx0YXRp b24=?=
Subject: =?ISO-?b?UmU6U3BlY2lhbCBQcm9tb3Rpb24gU2lsZGVuYWZpbCBDaXR yYXRlICAoNikgNTBtZy4gZG9zZXMgRlJFRSBDb25zdWx0YXRpb 24=?=
Subject: =?ISO88591?RlICAoNikgNTBtZy4gZG9zZXMgRlJFRSBDb25zd Wx0YXRpb24=?=
Subject: =?ISO-
Subject: =?ISO-8859-1?b?UmU6U3BlY?=
Subject: ISO-8859-1?b?UmU6U3BlY?=
workstation#

[/code:1:747ce5a7a2]


So
[code:1:747ce5a7a2]
^Subject: .*ISO[-,.{A-Za-z}{0-9}]+
[/code:1:747ce5a7a2]

looks like it should work for you. This won't match something like

Hey I mailed an ISO to you

or

ISO you requested

it will match anything before ISO and then most things but a space after ISO. If you wanted to grab spaces too that could be easily accomplished in a much simplier expression like so:

[code:1:747ce5a7a2]
^Subject: .*ISO.
[/code:1:747ce5a7a2]

Anyways, hope that helps. It was a fun exercise for me.

*EDIT*
That will match a line like

I mailed you an ISO.

but not I mailed you an ISO

I don;t know how a big a concern that is for you though.
*EDIT*

opus
October 8th, 2003, 17:42
Thanks Elmore. That is fine about mails with ISO's....I dont want any mailed to me anyway. :?

Glad I could give you some exersize....if you need more, holler.

elmore
October 8th, 2003, 18:53
I can use all the ones you wanna throw at me. Like I said I'm currently trying to get a solid handle on Regular Expressions, real life examples are what I'm looking for.

opus
October 8th, 2003, 21:44
Ok...you asked for it.

How do I set Postfix so I can get a message telling me an email from you got rejected because of content?