On Tue, Mar 16, 2004 at 11:59:13PM -0500, Daniel wrote:
* ? grep -i ^"${MYSUBJECT}"$ $LIST/subject.txt
I suggest you use fgrep specifically to avoid
regexes from the Subject string. I see no point in
your ^ and $ around the grep string; it would be
a tautology, it seems to me. Perhaps you envision
the start-to-finish of the line in the $LIST/subject.txt
file, in which case you should use the -x flag to
grep.
I did think in those terms where the each subject had to
match the whole list from start to finish. Only because I
had matches with word in the middle of the line. The -x
flag (read man) does seems like it will do the same thing.
Finally, turn on verbose logging and see what exactly
is matching.
* ? fgrep -six -e "$MYSUBJECT" $LIST/subject.txt
So is there any difference in using "${MYSUBJECT}" vs.
"$MYSUBJECT"?
--
dman
Basically I could hard code the "words" to match instead
of using external files. I tried doing that and I saw a
LINEBUF within the log file. So I would have to break the
recipe in two or increase the size of LINEBUF. One thing
thought, how much overhead is using grep and formail vs.
hard coding? Is there a way to find out? Would I run "TOP"
to compare?
Thanks, much appreciated,
Dan
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail