procmail
[Top] [All Lists]

Re: file name of attachment after line break

2001-09-05 18:44:55
Bart Schaefer <schaefer(_at_)zanshin(_dot_)com> writes:
On Wed, 5 Sep 2001, Philip Guenther wrote:
...
While it'll be more _accurate_, I'm not convinced it'll actually be
_faster_.

It should be faster because the "^--" will fail immediately on most lines
in the body, so the rest of the complicated regex never has to be tried.

But David's regexp started with "^Content-", so the same could be said
about it.  If procmail's regexp engine used Boyer-Moore then the longer
fixed string in your regexp would improve the speed, but it doesn't.


Philip Guenther
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail