Re: [Mimedefang] Using a db for subject lines to block

2005-06-21 Thread Kevin A. McGrail
1. Updating the original rule required restarting sendmail with a kill -HUP, in order to re-load the array of subjects. Whereas, like access.db, the database can be rebuilt on-the-fly with no sendmail restart needed. That should be fixable. Why can't you do something like:

RE: [Mimedefang] Using a db for subject lines to block

2005-06-21 Thread Damrose, Mark
-Original Message- From: Kevin A. McGrail In fact, if I ever snap, I will be known as the Sendmail Killer and I'll write all my letters to newspappers with this syntax. Well, there goes plausible deniability on premeditation! ___ Visit

RE: [Mimedefang] Using a db for subject lines to block

2005-06-21 Thread Cormack, Ken
$lc_subject =~ s/\s/./g; which will squish multiple spaces down to a single dot, this might make your source file smaller as well and would handle tabs as well. Jim David was faster at the keyboard than you, Jim. ;) He suggested the following yesterday... $lc_subject = s/^\s+//;

Re: [Mimedefang] Using a db for subject lines to block

2005-06-21 Thread Jan Pieter Cornet
On Tue, Jun 21, 2005 at 10:10:30AM -0400, James Ebright wrote: I am not sure if either of the above would break anything as perl is pretty forgiving of these things. However, you might consider substituting on whitespace like so: $lc_subject =~ s/\s/./g; which will squish multiple spaces

RE: [Mimedefang] Using a db for subject lines to block

2005-06-21 Thread James Ebright
Yeah, I saw that after I replied! His does a better job at sanitation than mine as I had not thought of leading or trailing whitespace. :) Jim On Tue, 21 Jun 2005 10:43:18 -0400, Cormack, Ken wrote David was faster at the keyboard than you, Jim. ;) He suggested the following yesterday...

Re: [Mimedefang] Using a db for subject lines to block

2005-06-21 Thread James Ebright
On Tue, 21 Jun 2005 16:44:03 +0200, Jan Pieter Cornet wrote Actually, that should read: $lc_subject =~ s/\s+/./g; True, sometimes the fingers do not type what the mind meant ;) Jim -- EsisNet.com Webmail Client ___ Visit

RE: [Mimedefang] Using a db for subject lines to block

2005-06-21 Thread Cormack, Ken
I saw that after I replied! His does a better job at sanitation than mine as I did not thought of leading or trailing whitespace. :) Jim On Tue, 21 Jun 2005 10:43:18 -0400, Cormack, Ken wrote David was faster at the keyboard than you, Jim. ;) He suggested the following yesterday...

Re: [Mimedefang] Using a db for subject lines to block

2005-06-20 Thread David F. Skoll
Kevin A. McGrail wrote: Why the switch from your sendmail rules (i.e. /etc/mail/subjects_full and /etc/mail/subjects_part) to MD to check the subject? I would think avoiding a milter call for memory and processor savings would be beneficial. Well, if you're doing a milter call anyway,

RE: [Mimedefang] Using a db for subject lines to block

2005-06-20 Thread Cormack, Ken
And Ken's code could pick out individual words from the subject and find them in the database. I bet you _could_ do that with Sendmail rulesets, but I shudder to imagine what they'd look like. The old sendmail rule would do the same thing (whole subjects, or keywords.) As far as sendmail