way to extract only the message from pop3

flit superflit at gmail.com
Wed Apr 4 19:30:03 EDT 2007


Yep you are right..
I made an filter to get the data in the message I want..
So it´s not the most beatiful code, but works. :)

On Apr 4, 4:11 am, Tim Roberts <t... at probo.com> wrote:
> "flit" <superf... at gmail.com> wrote:
>
> >Using poplib in python I can extract only the headers using the .top,
> >there is a way to extract only the message text without the headers?
>
> Only by using Python code.  The other responses gave you good pointers
> toward that path, but I thought I would point out the reason why.
>
> The POP3 protocol is surprisingly primitive.  There are only two commands
> to fetch a message: RETR, which fetches the headers and the entire message,
> and TOP, which fetches the headers and the first N lines of the message.
> The key point is that both commands fetch the headers.
> --
> Tim Roberts, t... at probo.com
> Providenza & Boekelheide, Inc.





More information about the Python-list mailing list