Hi Mike, > If I type > > sb_filter < mail.eml > > I get [...] IOError: [Errno 9] Bad file descriptor Try this: python sb_filter.py < mail.eml Depending on how you have your file extensions set up, Windows can fail to do redirection properly with the sort of command line you have there. -- Richie Hindle richie at entrian.com