import-export-tools-ng icon indicating copy to clipboard operation
import-export-tools-ng copied to clipboard

cannot import emails with linebreaks in Return-Path header

Open mabod opened this issue 2 years ago • 4 comments

I am using v14.0.1 to import an mbox file from evolution (created by selecting all emails in a folder and "save as file"). This file contains emails which have a line breaks in the Return-Path. E.g.

Return-Path:
 <incoming+verp-385eacba00e7b079bc7deb9cbf1e0c78@fedoraproject.discoursemail.com>

These emails can not be imported to thunderbird. They are just left out. The rest of the mbox file is imported fine.

mabod avatar Dec 15 '23 09:12 mabod

@mabod So after doing a complete rewrite of the mbox import for v14.0.0, I was a bit surprised about this. Alas, given the variety of deviations from RFC822 I should not be surprised. However, after some research and experimentation over the weekend, I think that it is valid, just a bit out of the norm. I handle line breaks in headers, what is happening here is the lack of a t least a single space after the colon.

I have working code against this, I just want to do some more experiments. I will then post this as the next v14.0.2 beta for you to try. @cleidigh

cleidigh avatar Dec 18 '23 16:12 cleidigh

@mabod I finally go v14.0.2-b6 beta with this patch for this. https://github.com/thunderbird/import-export-tools-ng/blob/v14.0.2/xpi/beta/import-export-tools-ng-14.0.2-b6-tb.xpi

Please let me know your results. @cleidigh

cleidigh avatar Jan 06 '24 20:01 cleidigh

@cleidigh : The new tool works fine. The mbox file in question is now imported with all 231 messages. The old import-export tool only imported 229 messages.

mabod avatar Jan 07 '24 07:01 mabod

@mabod Thanks for the timel response and for this catch. Great that everything imports correctly. @cleidigh

cleidigh avatar Jan 08 '24 17:01 cleidigh