On Wed, 2003-09-03 at 12:12, David W. Tamkin wrote:
> /\/ is right-splitting.
Er, no.
/ is a literal slash.
\/ is procmail's extraction mark; everything matching the rest of the
pattern to the right of \/ becomes the new value of the MATCH variable.
Gotcha.
> However, seeing as how we are working with the entire variable, isn't
> it redundant?
No, because (if you don't get distracted by the extraction mark)
/[^/]+^^ means everything from the last slash on to the end (provided
that there is a slash, and that the last character isn't a slash -- but
since you're saving to a maildir, there always will be a slash in
$LASTFOLDER and there will always be non-slash characters after the last
slash).
Ohhh I see. The "/" is a literal slash at the beginning of the regex. I
thought it was to mark the start of the pattern.
Thanks again. Makes sense now :)
Gonzalo
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail