I\'m writing a Python script to process emails returned from Procmail. As suggested in this question, I\'m using the following Procmail config:
:0: |$HOME/pr
I answer to myself.
I found a bug in the code that builds the messages. It's appending linebreaks between some lines, preventing the parser from working properly.