how to get size of email attachment

Anthony Baxter anthonybaxter at gmail.com
Tue Aug 31 03:04:21 EDT 2004


On Mon, 30 Aug 2004 22:08:42 +0100, Tim Williams (gmail)
<tdwdotnet at gmail.com> wrote:
> On 30 Aug 2004 12:05:18 -0700, Joh <joh12005 at yahoo.fr> wrote:
> > hello,
> >
> > i'm looking for a way to get total size of an email (with its attached
> > files) using library such as poplib, or ?
> >
> > can someone help me or give me an url from where to start ?
> 
> thinking aloud and off the top of my head , you could try the email
> module (python docs)

I put a recipe up on the Python cookbook for stripping out attachments
from an email message - you could adapt that to measure the sizes of
the attachments pretty easily.

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/302086



More information about the Python-list mailing list