procmail
[Top] [All Lists]

Perl script

1996-10-02 13:50:46


The following is in my .procmailrc file
PATH=$HOME/bin:/usr/bin:/usr/ucb:/bin:/usr/local/bin:.
MAILDIR=$HOME/mail      # You'd better make sure it exists
LOGFILE=$MAILDIR/from
LOCKFILE=$HOME/.lockmail
SHELL=/bin/sh    # for other shells, this might need adjustment

:0c: LOCKFILE
* ^From:(_dot_)yan(_at_)ns1(_dot_)wwisp(_dot_)com
/usr/home/admin/yantemp

:0a: LOCKFILE
| ( /usr/home/admin/test;)


What I want to do is for allmail come in from 
yan(_at_)ns1(_dot_)wwisp(_dot_)com to be in 
/usr/home/admin/yantemp, which worked. now, after that, I want to run a 
perl script /usr/home/admin/test which operates on yantemp. the file name 
yantemp is already in the perl script so i don't have to put it in. 
However, my script did not run at all. I can manually run it and it 
worked, but when i put in in .procmailrc it did not run. What am I doing 
wrong ?

Thanks.

yan



                                  \\\|///
                                \\  - -  //
                                 (  @ @  )
+------------------------------oOOo-(_)-oOOo---------------------+
|  Yan Gang Zhu               |                                  |
|  World Web ISP              |     Voice: (205) 942-4700        |
|  25 West Oxmoor; Suite 29   |       Fax: (205) 945-4040        |
|  Homewood, AL 35209         |http://www.wwisp.com/~yan/yan.html|
|-----------------------------|----------------------------------|
|           It is logically illogical to assume logic.           |
+-----------------------------+--------Oooo----------------------+
                                oooO   (   )
                               (   )    ) /
                                \ (    (_/
                                 \_)

<Prev in Thread] Current Thread [Next in Thread>