hanging with large mails

Stephen Finucane stephen at
Thu Sep 21 23:05:44 AEST 2017

On Thu, 2017-09-21 at 08:43 +0200, David Demelier wrote:
> Hello all,
> It looks like takes very long time to parse a large mail.
> I have a 20MB mail file and running on it takes forever
> and starts eating all the memory and CPU time.
> See after 3 minutes:
>   547 www           1 103    0   351M   239M CPU1    1   8:31 100.68%
> python2.7                                        
> What can I do to debug more?

The easiest thing to do here is probably read the main directly with the
' parsemail --debug <file>' command. There's not a whole of info
output by this so you will probably need to add your own additional logging
(printf debugging ftw) or start that with PDB.

Let me know how you get on.


More information about the Patchwork mailing list