procmail
[Top] [All Lists]

Re: chowning messges delivered to specific user through /etc/procmail

2002-10-07 09:08:42
 :0
 * conditions
 {
   TRAP='chown virus "$LASTFOLDER"' # apostrophes, not backticks

   :0
    /export/home/faculty/virus/VMaildir/.Filtered.Klez-1/
 }

Actually, I'd recommend doing it that way, because it saves the effort of
chown -R.  On the other hand, having no maildir experience, I could be wrong
about how LASTFOLDER is set after a save to a maildir; if $LASTFOLDER ends up
with the name of the directory rather than that of the file, you'll still
need -R.


I thought about the -R after I submitted the last mail, but was also not
sure how LASTFOLDER would work.  For anyone else interested, the
suggestion above works beautifully.

Thank you very much David.

-Mark

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail