Archived Forum Post

Index of archived forum posts

Question:

Can't parse attached file name in an eml file

Feb 03 '15 at 22:42

My work is parsing attached files in eml file.

When my program recived a eml file that have an attached file encoded in ISO-2022-JP, can't get file name correctly.

mime content about attaced file. Content-Type: application/octet-stream; name="=?ISO-2022-JP?B?RGFvdUphcGFuXxskQkJfPVA/PUBBPXEbKEIueGxzeA==?=" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename0=ISO-2022-JP''%44%61%6F%75%4A%61%70%61%6E%5F%1B%24%42%42%5F%3D; filename1=%50%3F%3D%40%41%3D%71%1B%28%42%2E%78%6C%73%78

parsed file name : "XXXJapan貸P=@A=q.xlsx"

file name in outlook : "XXXJapan_貸出申請書.xlsx"


Answer

I fixed this problem. Please tell me which version of VC++ you are using and I will provide a new build.