Popular recipes tagged "meta:requires=mailbox"http://code.activestate.com/recipes/tags/meta:requires=mailbox/2013-04-29T14:04:20-07:00ActiveState Code RecipesCreate a temporary mailbox (Python)
2013-04-29T14:04:20-07:00Noufal Ibrahimhttp://code.activestate.com/recipes/users/4173873/http://code.activestate.com/recipes/578514-create-a-temporary-mailbox/
<p style="color: grey">
Python
recipe 578514
by <a href="/recipes/users/4173873/">Noufal Ibrahim</a>
(<a href="/recipes/tags/mail/">mail</a>, <a href="/recipes/tags/mbox/">mbox</a>).
</p>
<p>Generates a mailbox with lots of messages.</p>
Build a white list of email address from "Sent Items" mailbox. (Python)
2003-04-16T17:48:52-07:00Noah Spurrierhttp://code.activestate.com/recipes/users/103276/http://code.activestate.com/recipes/194372-build-a-white-list-of-email-address-from-sent-item/
<p style="color: grey">
Python
recipe 194372
by <a href="/recipes/users/103276/">Noah Spurrier</a>
(<a href="/recipes/tags/files/">files</a>).
</p>
<p>This extracts all of the To addresses from a file in standard mbox format.
It is used on a "Sent Items" mailbox to build an address white list.
Presumably everyone you send email to is a candidate for an email white list.</p>
Reading and writing mbox style mailbox files. (Python)
2002-10-18T12:06:30-07:00Noah Spurrierhttp://code.activestate.com/recipes/users/103276/http://code.activestate.com/recipes/157437-reading-and-writing-mbox-style-mailbox-files/
<p style="color: grey">
Python
recipe 157437
by <a href="/recipes/users/103276/">Noah Spurrier</a>
(<a href="/recipes/tags/sysadmin/">sysadmin</a>).
</p>
<p>This script demonstrates reading and writing an mbox style mailbox. This script is an mbox filter. It scans through an entire mbox and writes the messages to a new file. Each message is passed through a filter function which may modify the document or ignore it.</p>