procmail
[Top] [All Lists]

Re: piping to a web directory

1996-12-21 03:28:20
At 02:16 AM 12/21/96 -0500, you wrote:
I am still not get the piping to a web directory to work. Here is the
relavent script:

:0
* ^TOtest
* !^FROM_DAEMON
{ :0 fhw
   | formail -i "Reply-To: 
charles+test(_at_)yakko(_dot_)cs(_dot_)wmich(_dot_)edu"
  :0:
   www/philos/
}

Messages not froma daemon and sent to 
charles+test(_at_)yakko(_dot_)cs(_dot_)wmich(_dot_)edu
are being processed by this recipe. The message still shows up in my
mailbox, but the reply-to is changed. I look in www/philos/ (point your
browser at yakko.cs.wmich.edu/~charles/philos) and I find nothing. Even
when I am logged onto my account and do a ls -a, i get nothing there.

So, how do I get these messages piped to www/philos/ ?

Try sticking an "a" flag on the end of the last recipe, so the recipe looks
like this:

        :0
        * ^TOtest
        * !^FROM_DAEMON
        { :0 fhw
        | formail -i "Reply-To: 
charles+test(_at_)yakko(_dot_)cs(_dot_)wmich(_dot_)edu"
        :0a:
        www/philos/
        }


And you may want to direct your email to a the exact path.  Also...

From the PROCMAILRC MAN page:

[...]

a       Has the same meaning as the `A' flag,  with  the  addi-
        tional  condition that the immediately preceding recipe
        must  have  been  successfully  completed  before  this
        recipe is executed.

[...]
Lates!
------------------------------------
Tim <bodysurf(_at_)pobox(_dot_)com>
*PGP ENCRYPTED EMAIL PREFERRED*
"Finger" for PGP v2.6.3ia Public Key

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