[9.01a x86] TC adds garbage to decoded EML attachments

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

[9.01a x86] TC adds garbage to decoded EML attachments

Post by *MVV »

Please try extracting the attached u8text.txt file using TC's decode function and by opening this EML with a mail client:

Code: Select all

Subject: decode bug
MIME-Version: 1.0
Content-Type: multipart/mixed;
 boundary="----------0C41AE0413CB31237"

------------0C41AE0413CB31237
Content-Type: multipart/alternative;
 boundary="----------0D70E220F374AA02A"


------------0D70E220F374AA02A
Content-Type: text/plain; charset=windows-1251
Content-Transfer-Encoding: quoted-printable

------------0D70E220F374AA02A
Content-Type: multipart/related;
 boundary="----------1191D11110CFCE55E"


------------1191D11110CFCE55E
Content-Type: text/html; charset=windows-1251
Content-Transfer-Encoding: quoted-printable

------------1191D11110CFCE55E--

------------0D70E220F374AA02A--

------------0C41AE0413CB31237
Content-Type: text/plain;
 name="u8text.txt"
Content-transfer-encoding: base64
Content-Disposition: attachment;
 filename="u8text.txt"

0KHRitC10YjRjCDQtdGJ0ZEg0Y3RgtC40YUg0LzRj9Cz0LrQuNGFINGE0YDQsNC90YbRg9C3
0YHQutC40YUg0LHRg9C70L7Rh9C10LosINC00LAg0LLRi9C/0LXQuSDRh9Cw0Y4u
------------0C41AE0413CB31237--
While email client extracts the file properly, TC adds extra garbage bytes to it. Pure file size is 102 bytes.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Please try with TC 9.10 beta. TC 9.0a does NOT support nested sections (sections within sections) in MIME encoded files. TC 9.10 now supports them.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Unfortunately it still doesn't work with TC 9.10b1 with this sample EML.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I can confirm the problem, it's happening due to an unusual triple nested sections. I will try to support that too.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Thanks!
As I see it, you can unpack it layer by layer, with respect to each multipart's boundary, it shouldn't be too hard...
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This should be fixed in TC 9.10 beta 2, please test it!
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Works fine in 9.10b2, thank you!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Great, thanks! Please let me know if you find a file where it doesn't work correctly.
Author of Total Commander
https://www.ghisler.com
lkelemen
New Member
New Member
Posts: 1
Joined: 2018-05-18, 08:10 UTC
Location: Tampere

eml decoding problem

Post by *lkelemen »

Hi,

I have an email with a jpg attachment. I saved it in eml format and when I decode it with TC I get 2 files. One is the text of the mail, it's OK.
The other one gets decoded to a file named as the original jpg but the content is not jpg format but base64 I suppose. It is a plain copy from the eml but if I rename it to have b64 extension and decode it with TC I get a "WARNING: nothing decoded!" message. Is this a bug of TC or an error in the eml file? The link to the eml file (zipped) is here.

w w w kotiposti dot net slash lkelemen slash jesse dot zip

I can not put it here as an URL as I'm new here.
I use TC 9.12 64bit

Thanks
Lajos
Post Reply