Postmap and regexp.pcre

This is a discussion on Postmap and regexp.pcre within the alt.comp.mail.postfix forums, part of the Mail Servers and Related category; Anyone got any ideas as to why my postmap isn't doing as it's supposed to? I have header_checks ...


Go Back   Usenet Forums > Mail Servers and Related > alt.comp.mail.postfix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-24-2003
TGGA
 
Posts: n/a
Default Postmap and regexp.pcre

Anyone got any ideas as to why my postmap isn't doing as it's supposed to?

I have header_checks as shown below and a sample email, but postmap doesn't
seem to work in the way it's supposed to.

header_checks:-

/^Subject: .*Affordable Health Coverage/ REJECT
/^Subject: .*Affordable Health Insurance/ REJECT
/^Subject: .*Aging Breakthrough/ REJECT

test email:-

From: Postmaster@here.com
To: Postmaster@there.com
Cc:
Bcc:
Subject: Affordable Health Coverage
Reply-To:

# postmap -q - regexp:/tmp/header_checks < /tmp/testmail

Gives nothing

# postmap -q "Subject: Affordable Health Coverage" regexp:/tmp/header_checks
# REJECT

As you can see it seems to work there. Any ideas why the first one doesn't
work, which is how it's suppose to - pcre does the same btw?


Cheers,

Pete


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:46 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0