procmail
[Top] [All Lists]

explain 5 characters of FROM_MAILER regexp?

1996-10-22 16:12:54
In procmailrc(5) (Last change: 1994/10/31), "^FROM_DAEMON" and
"^FROM_MAILER" are described...

    If the regular expression contains `^FROM_MAILER' it will be
    substituted by `(^(((Resent-)?(From|Sender)|X-Envelope-From):
    |>?From )(.*[^((_dot_)%(_at_)a-z0-9])?(Post(ma(st(er)?|n)|office)
    |(send)?Mail(er)?|daemon|mmdf|root|n?uucp|smtp|response
    |serv(ices?|er)|Admin(istrator)?)([^).!:a-z0-9].*)?$[^>])'
    (a stripped down version of `^FROM_DAEMON'), which should
    catch mails coming from most mailer-daemons.

The last part of the regexp is "$[^>]".  I'm confused.  Isn't "$" only
special (end-of-line anchor) when it's the last character of the
regexp?  What is supposed to be going on here?  And if this behavior is
different than that of egrep, could someone tell me where it is
documented?

Thank you very much for any assistance.
John Ruckstuhl

<Prev in Thread] Current Thread [Next in Thread>