Problem with handling errors in POP3 message retrieval/deletion

cl at isbd.net cl at isbd.net
Fri Sep 11 19:13:06 CEST 2015


cl at isbd.net wrote:
> I have a (fairly) simple script that does 'catchall' processing on my
> POP3 mailbox.  It looks for messages To: strings that *might* be for
> me and then throws everything else away.
> 
[snip]

Sorry folks, I found the problem, it's a known 'bug' due to someone
trying to protect poplib from excessively long lines.  See:-

    https://bugs.python.org/issue16041

It's easy to work around by something like:-

    import poplib
    poplib._MAXLINE=20480


-- 
Chris Green
·


More information about the Python-list mailing list