The Artima Developer Community
Sponsored Link

Python Buzz Forum
Handling Mailboxes in Python

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Aaron Brady

Posts: 576
Nickname: insommeuk
Registered: Aug, 2003

Aaron Brady is lead developer for Crestsource
Handling Mailboxes in Python Posted: Aug 30, 2003 9:09 AM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Aaron Brady.
Original Post: Handling Mailboxes in Python
Feed Title: insom.me.uk
Feed URL: http://feeds2.feedburner.com/insommeuk
Feed Description: Posts related to using Python. Some tricks and tips, observations, hacks, and the Brand New Things.
Latest Python Buzz Posts
Latest Python Buzz Posts by Aaron Brady
Latest Posts From insom.me.uk

Advertisement

I've added two new snippets to the hacks section; save.py & strip.py - used to save attachments from a whole mailbox, or strip them, respectively.

Python comes with really nice mailbox classes, including QMail maildirs, which is what we use on our servers - but unfortunately these are read only - so strip.py cops out and write mbox files to stdout.

You could always use an mbox2maildir tool when you're finished I guess. Alternatively, you could parse the maildir yourself, and edit the files in place. But I don't need to - so I didn't.

Read: Handling Mailboxes in Python

Topic: Flash adventure game -- lost URL Previous Topic   Next Topic Topic: May pre house the seamy side violation!!!

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use