You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
mailbox: Implement >From_ decoding on input from mbox #73239
Not easily. Making the feedparser more pluggable is on my wish list, but at this point someone would have to fund me for work on the email package before I'd be able to even clear the backlog to think about it :)
I'd say accepting this as a new feature is a no-brainer, if you want to work on a patch. Make enabling it a Policy option that defaults to the current behavior.
Activity
bpoaugust commentedon Dec 23, 2016
The email package implements mboxo From_ mangling on output by default.
However there is no provision to unmangle >From_ on input.
This means that it's not possible to import mboxo files correctly.
bpoaugust commentedon Dec 23, 2016
Is there any way to override the current behaviour?
bitdancer commentedon Dec 23, 2016
Not easily. Making the feedparser more pluggable is on my wish list, but at this point someone would have to fund me for work on the email package before I'd be able to even clear the backlog to think about it :)
I'd say accepting this as a new feature is a no-brainer, if you want to work on a patch. Make enabling it a Policy option that defaults to the current behavior.
bpoaugust commentedon Dec 24, 2016
Attached please find patch which works for me.
To use it independently of email, do something like:
where:
HTH
bpoaugust commentedon Jan 2, 2017
The patch can be simplified by just looking for b'\n' in the last 6 chars, and caching from b'\n' if found.
This would mean more file seeking in exchange for less buffer matching.
[-]Implement >From_ decoding on input from mbox[/-][+]mailbox: Implement >From_ decoding on input from mbox[/+]