procmail
[Top] [All Lists]

Re: SYNTAX

1996-01-19 14:54:06
Marc Rackett asked,

| I was wondering if any of you procmail/regular expression
| gurus could explain the following syntax:
| 
|    !^Subject: send file .*[/.]\.
|                   
|                          ^ from here

If the subject contains "send file" but then tries to include "/." or ".."
in the name of the file, the condition fails and the archive request will not
be processed.

The point is to reject archive requests for a file whose name contains ".."
(translation: no attempting to get up into directories other than the archive
directory and its own subdirectories) or "/." (translation: no dotfiles, not
even from otherwise permitted directories).

<Prev in Thread] Current Thread [Next in Thread>
  • SYNTAX, "Marc Rackett (ETLMCRT XB/VAC)"
    • Re: SYNTAX, Steve Jorgensen
    • Re: SYNTAX, David W. Tamkin <=