procmail
[Top] [All Lists]

Re: autoresponder errors, I want a copy

1997-01-05 12:04:54
On Sun, 5 Jan 1997, Timothy J Luoma wrote:
How do I check for ".." or "/" ?
I have them all in one folder

There is an example of a fileserver in the procmailex manpage. It
says that:

"it does not return files that have names starting with a dot, nor
does it allow files to be retieved that are outside the file directory
tree"

Here is a partial quote of the recipe:

        :0
        * ^Subject: send flie [0-9a-z]
        * !^X-Loop: yourname(_at_)your(_dot_)address
        * !^Subject:.*Re:
        * !^FROM_DAEMON
        * !^Subject: send file .*[/.]\.

It is the regular expression in the last condition line that restricts
what files will be delivered. 

David