procmail
[Top] [All Lists]

GetPage with wget instead of lynx :-)

1998-01-23 06:56:38
Last few days I saw something equivalent to this in the mailing list, and
the main problem of security was involved...

|
| :0
| * ^Subject:[  ]GetPage:()\/.*
| * ! X-Loop: luomat(_at_)peak(_dot_)org
| |( formail -rt -I"Precedence: junk" \
|                -I"Subject: Requested page: $MATCH" \
|                -I"X-Loop: luomat(_at_)peak(_dot_)org" ; \
|                lynx -dump http://$MATCH) | $SENDMAIL -oi -t
|

Also using lynx is not really usefull for this and not really made for
such ideas. Personally I'd prefer using wget for this and here is my
version of the pm rule :

:0
* ^Subject:[  ]GetPage:()\/.*
* ! X-Loop: luomat(_at_)peak(_dot_)org
|( formail -rt -I"Precedence: junk" \
               -I"Subject: Requested page: $MATCH" \
               -I"X-Loop: luomat(_at_)peak(_dot_)org" ; \
               wget -O- -Y on http://$MATCH) | $SENDMAIL -oi -t


The -Y on flag to wget is to add some proxy connection... ;-)

If you want, you try this to my email til 18H GMT ;-)

/Xavier


--
Xavier Beaudouin, kiwi(_at_)oav(_dot_)net, 
kiwi(_at_)internet-et-patrimoine(_dot_)com
Network Designer,  Security Consultant and  Roxen Alpha Tester.
Work Phone : +33 1 4260 6711       -       Fax : 33 1 4260 6673
Linux box and personal phone : +33 1 4734 3366
Home page : http://www.oav.net/

<Prev in Thread] Current Thread [Next in Thread>
  • GetPage with wget instead of lynx :-), Xavier Beaudouin <=