我正在创建一个工具,用于解析传入的 MIME 流并将电子邮件正文和电子邮件附件作为单独的文件流返回。
I am using mime4j for this purpose.
Following are the problems that I am stuck on:
- How can I test whether the email body file or email attachment file that I parsed out via mime4j from MIME stream is correct?
I have a large corpus of emails available in raw mime form that I want to run my tests on and need some automated way to determine which ones might be breaking the mime parsing by mime4j and tweak the code for that.