python, mbox files and forwarding messages

Jorgen Grahn jgrahn-nntq at
Thu Oct 28 20:16:43 CEST 2004

On Tue, 26 Oct 2004 13:08:36 -0400, Brad Tilley <bradtilley at> wrote:
> Can Python parse a mbox file and forward each individual message within 
> that file to someone else?
> [...] Also, how might I handle messages that have an 
> attachment associated with them during the forward process?

By ignoring them. You don't have to be MIME-aware to forward a message, and
the mbox format(s) aren't MIME-aware either.


  // Jorgen Grahn <jgrahn@       Ph'nglui mglw'nafh Cthulhu
\X/      >   R'lyeh wgah'nagl fhtagn!

More information about the Python-list mailing list