GitHub user sebbASF opened an issue:

    https://github.com/apache/incubator-ponymail/issues/251

    Bug: import-mbox.py and archiver.py create different source texts

    archiver.py populates the source field in mbox_source using:
    
    msg.as_string()
    
    However import-mbox.py uses
    
    message.as_bytes().decode('utf-8', errors='replace')
    
    These do not produce the same output; the header line-breaks are different.
    
    It looks like the as_string() method output is closer to the original input.
    
    The as_bytes/decode process seems to do line wrapping; it looks to be the 
cause of the line-wrap in the Return-Path: lines.
    
    The scripts should both use as_string().

----

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to