[Mailman-Users] Trapping a post with a blank Subject:

2009-03-05 Thread Hank van Cleef
How can I catch a post sent to the list that has nothing in the
Subject: field?

It is the first post in a thread that I need to catch.  Mailman adds
(no subject) before distributing the post, and I can trap all the
responses.  But evidently that is added after the incoming post
headers are scanned.

I've tried several strings in the spam filter, but I don't get
reliable results.  I don't know what various MUA's actually put in
that field, but a simple \n seems to provoke a lot of false trapping
on Windows browsers that are actually sending subject line contents.

Hank


--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] Trapping a post with a blank Subject:

2009-03-05 Thread Mark Sapiro
Hank van Cleef wrote:

I've tried several strings in the spam filter, but I don't get
reliable results.


Have you tried

^Subject:\s*$

That should get the ones with an empty subject, but in order to get the
ones with no subject header at all, you need a series of three rules.
The first with regexp as above and action Hold, The second with regexp

^Subject:

and action Accept to pass all the rest of the posts with Subject:
headers and the third with a regexp like . or ^ (without the
quotes) and action Hold to hold the remaining messages that have no
Subject: header.

-- 
Mark Sapiro m...@msapiro.netThe highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9