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:
-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
$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+//;
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
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...
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
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...
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,
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
9 matches
Mail list logo