procmail
[Top] [All Lists]

Can procmail forward to web pages?

1997-03-28 05:04:18
Hi,

I'm wondering if it is possible to forward a mail to a web page.

Example:

I receive a mail from johndoe(_at_)domain(_dot_)com with the subject "TEST" and 
want to
send this automatically to a web page with the command
http://www.domain.com/test(_dot_)cgi?from=johndoe(_at_)domain(_dot_)com&subject=TEST.

The script is following:

:0 
* ^TOjanedoe(_at_)domain(_dot_)com
{

FROM=`formail -x From:`
SUBJ=`formail -x Subject`
:0 c
| "callwebpage.pl \"$FROM\" \"$SUBJ\"" 

}

But how should the perl script "callwebpage.pl" look like?
Can the result from the webpage be forwarded to another domain (i.e.
forward(_at_)domain(_dot_)com)

Or is this strictly impossible with procmail+perl?

Thank you so much!

     Costa

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