From 51699f241883605b588609844f35d1e96c905330 Mon Sep 17 00:00:00 2001 From: uckelman Date: Thu, 15 Jul 2010 13:27:00 +0000 Subject: Added script which bridges postfix_local to apache. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6991 67b53d14-2c14-4ace-a08f-0dab2b34000c --- src/postfix_handoff.pl | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 src/postfix_handoff.pl (limited to 'src') diff --git a/src/postfix_handoff.pl b/src/postfix_handoff.pl new file mode 100755 index 0000000..88c6675 --- /dev/null +++ b/src/postfix_handoff.pl @@ -0,0 +1,18 @@ +#!/usr/bin/perl -w + +use LWP::UserAgent; +use HTTP::Request::Common qw(POST); + +local $/; +my $msg = ; + +my $url = 'http://www.test2.nomic.net/list_post_receive.php'; + +my $ua = LWP::UserAgent->new; +my $req = POST $url, [ message => $msg ]; + +my $res = $ua->request($req); + +unless ($res->is_success()) { + die 'POST failed: ' . $res->status_line . ' ' . $res->content; +} -- cgit v1.2.3