piping a stream to a python script

Matt Price matt.price at utoronto.ca
Wed Oct 27 21:35:55 CEST 2004

Hi folks,

I'm writing a python script which I plan to use in a macro for mutt,
the mailer.  The script is supposed to generate and send an email
based on a mailto: url pulled out of an email header.  The header will
be passed to the script in the following form, using a pipe:  

        <mailto:python-list-request at python.org?subject=unsubscribe>

(the mutt macro looks like this:
| formail -x List-Unsubscribe: | /usr/local/scripts/mailout.py )

I'd like to capture the stream in a string object.  Is there a simle
way to do this?  

Thanks much,


Matt Price	    matt.price at utoronto.ca
History Department, University of Toronto
(416) 978-2094

please don't use the following addresses:  zeus at derailleur.org
aardvark at derailleur.org

More information about the Python-list mailing list