I wonder if many Ubuntuer have received an email with winmail. dat. I think I have received a lot of such troublesome emails when I use Ubuntu in my company. You do not know how to open the attachment, or even worse, the file of the original attachment in the email is unfortunately eaten by winmail. dat. You may ask the sender of this email. At this time, the recipient is mostly confused, because people use Outlook well and have never heard of this problem. It is straightforward, I don't know what you're talking about.
I wonder if many Ubuntuer have received an email with winmail. dat. I think I have received a lot of such troublesome emails when I use Ubuntu in my company. You do not know how to open the attachment, or even worse, the file of the original attachment in the email is unfortunately eaten by winmail. dat. You may ask the sender of this email. At this time, the recipient is mostly confused, because people use Outlook well and have never heard of this problem. It is straightforward, I don't know what you're talking about.
So what is winmail. dat? Is M $ when encoding and packaging your mail for sending, if according to the default specified RTF format, the format information will be stored in the mail body according to a set of MS standards (here, the strong bs m $ practice), resulting in non-Outlook clients do not know, cannot be correctly parsed.
Of course you can ask your sender not to use Outlook, or not to use the rtf format, either plain text or HTML. However, if you cannot do this, you still have a solution. Tnef is used.
Installation:
Code:
Sudo apt-get install tnef
Usage:
Code:
Tnef winmail. dat
You can also use tnef-t winmail. dat to check the contained files.
Since most senders use windows, the file name is garbled in the utf8 linux environment. Instead, use convmv to convert the file name encoding:
Code:
Convmv-f gbk-t utf8-notest *
This is a success.
Summarize the above process with another line:
Code:
Tnef winmail. dat & tnef-t winmail. dat | xargs convmv-f gbk-t utf8-notest