procmail
[Top] [All Lists]

Send file - permissions

1998-06-22 02:13:54

Hi all,

        I have an account (this one, actually) which I can't access via
telnet (or similar means) from outside, but I would like to read 
and *remove* mail from this account using Procmail. My idea is to have a
Procmail recipe on this account which would do the following:

 When I send an e-mail with a particular Subject of the form:
XXXXXXXXXX <mailing list>, where the Xs represent a ten digit number
Procmail responds by sending me the file 

/home/belhagin/mail/<mailing list>

or if I want my INBOX mail (in other words <mailing list> == INBOX) the
file would be

/var/mail/belhagin

The most important thing is for Procmail to clean up after sending me the
mail by deleting it at this account. Thus my questions are:

1) What would a recipe for the above look like?
2) Can Procmail remove files which are on my account if they have the
   following permissions -rwx---------?
3) Will the removing of INBOX mail pose a special problem? I think that
   cleaning the INBOX will be a more difficult task than cleaning the
   mailing list mail, because I can't just rm /var/mail/belhagin while
   removing /home/belhagin/mail/<mailing list> is no problem.

Any help with this would be greatly appreciated.

Cheers,
Bernard

"When you're not looking this sentence is in Spanish."