[Mailman-Users] filtering by subject or other headers?

2003-10-04 Thread Erez Zadok
Is there a way I can setup mail filters by subject or other headers (not
just by from/recipient)?  Spammers often send spam faked as having been sent
by my lists.  Then I get all sorts of bounces from the actual recipients
such as SpamAssassin Identified this message as spam.

I'd like to setup a filter rule that says: if the subject line matches a
certain string, discard this email and never tell me about it.  However, I
don't this kind of rule to affect the way other moderation or filter rules
work.  That is, if I configure mailman to hold all messages from unknown
senders, then those not matching the spam filter rule I just described,
should be left in the hold queue.

Thanks,
Erez.

--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/

This message was sent to: [EMAIL PROTECTED]
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] filtering by subject or other headers?

2003-10-04 Thread Erez Zadok
In message [EMAIL PROTECTED], Ed Wilts writes:
[...]
 I don't see anything that would stop you from processing the incoming
 e-mails through procmail before they get to mailman.  Just change the
 alias to point to valid user, process the e-mail via procmail and do
 whatever you want with it, then bounce the result over to the actual
 list processor if it passes your tests.  You could do your virus
 scanning the same way (although I would think that a callout from the
 MTA might be better).
 
 I don't believe that what you're asking for should be a mailman
 function.  Mailman should primarily be used to quickly get messages into
 and out the lists - all per-message processing should be handled by
 outside apps.

Thanks Ed.  It still doesn't answer my question of whether it is possible
for mailman to filter based on regexp matches on any header.

Yes, of course I could filter my list's mail before it goes to mailman.
First, this requires me to mix its support with other tools such as
procmail.  It might also make things tricker: how do I prevent direct access
to the list's address if someone finds it?  (security by obscurity doesn't
work in the long run.)  And I'll have to ensure that when the mail reaches
the list, the headers haven't been munged so much so as to make it difficult
to figure out who send that mail and from where.

I disagree with you, however, that it is not the place of Mailman to do such
filtering.  If that would have been the design philosophy for Mailman, then
it shouldn't have any filtering based on sender addresses and such.  As it
stands, Mailman has gotten to do more and more filtering to address spam and
such.  I'd like to see that trend continued.

What I'm asking for is not unreasonable.  I'm not asking for Mailman to
natively support things like SpamAssassin and MIME-Defang, but I do want it
to have a simple way of matching regexp's against any header.  Then I have a
more powerful and extensible mechanism for filtering based on any header,
and at that point it'd be easier for me to filter flexibly.  Imagine that I
feed all mailman list messages first via spamassassin's spamc tool, just
to get it to add the X-Spam-Level header.  I'd love to write a Mailman rule
that will ignore all mail if x-spam-level matches '**' or such.

Cheers,
Erez.

--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/

This message was sent to: [EMAIL PROTECTED]
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


Re: [Mailman-Users] filtering by subject or other headers?

2003-10-04 Thread Erez Zadok
In message [EMAIL PROTECTED], Todd writes:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Erez Zadok wrote:
  I'd like to setup a filter rule that says: if the subject line
  matches a certain string, discard this email and never tell me about
  it.  However, I don't this kind of rule to affect the way other
  moderation or filter rules work.  That is, if I configure mailman to
  hold all messages from unknown senders, then those not matching the
  spam filter rule I just described, should be left in the hold queue.
 
 Sounds like you're describing the bounce_matching_headers option, from
 Privacy Options - Spam Filters, except that you want the default
 action to be discard instead of hold.  I don't believe this is
 possible at the moment, but it seems like it would be a simple thing
 to add.  You could either add another option to the Spam Filters page,
 perhaps discard_matching_headers, or just an option that toggled
 whether posts matching bounce_matching_headers were held or discarded.
 
 That would be handy to have a on a list by list basis, but there is a
 site-wide configuration option, KNOWN_SPAMMERS, that you can set in
 mm_cfg.py which looks to do exactly what you want.  You might want to
 give that a try.  One of the comments in the SpamDetect.py file where
 this spam filtering is done says This needs to be made more
 configurable and robust.  So it's on the list of things that will
 happen when someone makes time to code it in.
 
 - -- 
 ToddOpenPGP - KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp

Todd,

Yes!  That's exactly it.  Right now all I can do is hold mails that match
certain headers.  I like that option for certain cases, but I'd like another
(independent) option to completely discard mails that match certain headers.
And while we're at it, why only hold or discard?  Why not offer the same
sets of options available in other places: hold, discard, forward to
someone, etc.

I don't understand something in your mail, however.  You say you could
either add... and such, implying that _I_ could do it myself?  Do you mean
that there is a facility for this already in mailman?  Or did you mean that
I could always hack the source and add the feature I wanted?  If you meant
the latter, then I'd prefer if someone more experienced in Python and
Mailman's code do it (what'll take me many hours, Barry can probably do in
his sleep, with _both_ hands tied behind his back. :-)

Erez.

--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/

This message was sent to: [EMAIL PROTECTED]
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] filtering Importance headers

2003-03-23 Thread Erez Zadok
Is there a way that Mailman can remove certain headers before a message is
posted to a list?  In particular, I want to remove the Importance header,
which some posters will set to high or urgent unnecessarily.  Some MUAs
do all kinds of things users dislike for high-priority mails.

Note: I don't want to reject such posts automatically, b/c their content may
still be valuable, just not as urgent as the sender thinks.

Thanks,
Erez.

--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/

This message was sent to: [EMAIL PROTECTED]
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] one-click accept/reject all?

2003-03-22 Thread Erez Zadok
On a number of lists I maintain, most of the messages pending admin approval
are spam to be rejected, or good messages to be approved.  Is there a plan
for mailman to have a one-button-approve-all or one-click-reject-all?  It'll
save time for those who have to moderate/approve a lot of messages daily.

Thanks,
Erez.

--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/

This message was sent to: [EMAIL PROTECTED]
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] filtering Importance headers

2003-03-21 Thread Erez Zadok
Is there a way that Mailman can remove certain headers before a message is
posted to a list?  In particular, I want to remove the Importance header,
which some posters will set to high or urgent unnecessarily.  Some MUAs
do all kinds of things users dislike for high-priority mails.

Note: I don't want to reject such posts automatically, b/c their content may
still be valuable, just not as urgent as the sender thinks.

Thanks,
Erez.

--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/

This message was sent to: [EMAIL PROTECTED]
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org


[Mailman-Users] duplicating a mailman list?

2002-10-19 Thread Erez Zadok
[I've used mailman for a few years now, but I'm new to this list.]

How do I create an identical duplicate of a list by another new name?

I'm using mailman 2.0.13.  I'm generally very happy with it.  When I need to
create a new list, it takes me time to create it, b/c for the most part I
want to configure that list identically to other lists (esp. wrt
privacy/protection features).  Specifically I want to turn on/off certain
features, etc.  I do so by creating a new list, then going through the Web
interface for the old and new list, and setting the options by hand.  It's a
pain and time consuming.

I could not find a python script to duplicate one list to another.  I'd like
to copy everything: configuration, archives, and subscribership.  Actually,
I mostly care about configuration.  I don't mind if the subscribership and
archives are duplicated or not (I can handle those relatively automatically
by other means).

If someone had written a python script to cp oldlist newlist please let me
know.  (I couldn't find it in the faqs either.)

I also couldn't find this feature in the short list of new mailman 2.1
features.  Is something like that planned for 2.1?

Thanks,
Erez.

--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/



[Mailman-Users] rejecting non-subscriber postings

2002-10-19 Thread Erez Zadok

On one mailman list I maintain, I get spams submitted to the list.  Spammers
find out about that list and I can't do much about that.  However, when such
a spam comes to me, it gets queued by mailman and I, the list-admin, have to
go and manually reject/discard those spams.  It's becoming an annoying
chore.  I'd like to be able to just configure Mailman to discard/reject ALL
non-subscriber emails, and have mailman send them back a note saying they
have to subscribe first.  I didn't see such a feature off hand in Mailman.
Is there? (maybe part of the 2.1 anti-spam features?)

Occasionally a non-subscriber really asks an appropriate question on my
list.  I'm willing to accept that those people will have to subscribe first;
it's the price they have to pay --- but it'll save me time.

Thanks,
Erez.

--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/



Re: [Mailman-Users] rejecting non-subscriber postings

2002-10-19 Thread Erez Zadok
In message [EMAIL PROTECTED], Jon Carnes writes:
 I think he's already done that and simply wants Mailman to handle the
 held messages by deleting them instead of holding them.
 
 Erez, you should check out the FAQ, there are a couple of sections that
 will help you out.  There is a work-around that deletes all the messages
 daily instead of sending you a daily status of held messages.

Yes, that was useful.  However, it don't inform the sender that their
message was deleted.  Worse, they might already have gotten an auto-bounce
saying that their message is held for approval, expecting someone to approve
it.

 You might also consider an upgrade to the Beta version.  The beta
 version has this built into it!

Great.  I'll give it a try (on a system on which I have privileges to
install a new/beta mailman software. :-)

 Jon Carnes

Erez.

--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/



Re: [Mailman-Users] duplicating a mailman list?

2002-10-19 Thread Erez Zadok
In message [EMAIL PROTECTED], Jon Carnes writes:
 I've seen a python script that does this - it was posted to this list,
 so it must be in the archives.  What you really need to do, is edit your
 ~mailman/Mailman/mm_cfg.py file and add in the defaults that you
 prefer.  Then when you create a new list, the defaults will be set
 properly to your standards.
 
 Alternately, you can dump out a lists configuration by using
 ~mailman/bin/dumpdb
 
 You can modify the output and then feed that back into a list (using
 dumpdb again) to modify its configuration!  Dumpdb is a great tool and
 you can use it to dump out and save various mailing list syles (like
 announcement only lists, general discussion lists, or moderated private
 lists, etc...)
 
 Good Luck - Jon Carnes

I've used dumpdb before.  Definitely a useful tool.  But how _exactly_ do I
feed in edited dumped files (marshaled dictionary?) back into mailman
using dumpdb?  Can you send me the actual sequence of shell commands?

Maybe there's some python magic I'm not familiar with; but dumpdb doesn't
appear to take stdin, and seems always to want to have an argv[1] specifying
a .db file of that .db format.

It'll be great if I could use dumpdb to re-configure an entire list.

Thanks,
Erez.

--
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/