procmail
[Top] [All Lists]

Re: executing line by line through a message

1997-10-24 01:22:04
| Thu 97-10-23 "Matthew G. Saroff (Reply to the pobox address)" 
<saroff(_at_)vs(_dot_)lmco(_dot_)com> list.procmail
|
| The idea would be that I send an email to my self with the form:
| subject: (whatever code word I decide on)
| 
| http://www.blbl.edu
| http://www.zowie.com

Perl 5 does this easily with LWP lib.

        use         LWP::UserAgent;
        my $ua      = new LWP::UserAgent;
        my $request = new HTTP::Request('GET', $url);
        my $obj     = $ua->request($request);
                
And you can get the page from $obj->message. Test $obj->is_success
first.

jari