Popular recipes by anthony baxter http://code.activestate.com/recipes/users/98198/2004-08-26T07:33:07-07:00ActiveState Code RecipesStrip attachments from an email message (Python) 2004-08-26T06:08:02-07:00anthony baxterhttp://code.activestate.com/recipes/users/98198/http://code.activestate.com/recipes/302086-strip-attachments-from-an-email-message/ <p style="color: grey"> Python recipe 302086 by <a href="/recipes/users/98198/">anthony baxter</a> (<a href="/recipes/tags/network/">network</a>). </p> <p>This recipe shows a simple approach to using the Python email package to strip out attachments and file types from an email message that might be considered dangerous. This is particularly relevant in Python 2.4, as the email Parser is now much more robust in handling mal-formed messages (which are typical for virus and worm emails)</p> thread local storage in Python 2.4 (Python) 2004-08-26T07:33:07-07:00anthony baxterhttp://code.activestate.com/recipes/users/98198/http://code.activestate.com/recipes/302088-thread-local-storage-in-python-24/ <p style="color: grey"> Python recipe 302088 by <a href="/recipes/users/98198/">anthony baxter</a> (<a href="/recipes/tags/threads/">threads</a>). </p> <p>Python 2.4 introduces a new threading.local() type - a thread local storage. This is a simple demonstration of this.</p>