Solution for receiving winmail. dat attachments in an email in Ubuntu

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.