Winmail dat чем открыть linux

Чем открыть файл winmail.dat ? Или админам на заметку. [Решено]

Допустим вас попросят открыть файл winmail.dat утверждая, что он пришел в письме и никакое это не видео, а чистой воды фотки или документы. При попытке открыть архиватором, причём любым — ни в какую не хочет открываться.

Что делать ? К сожалению, под кубунту я не знаю решения, если напишут, будет очень хорошо.

Но в принципе должен нормально работать «винный» костыль(проверил на дебиане-ленни и кубунту-8.04), есть такая программа winmail_opener

прекрасно ставится на стандартный wine и работает.

Програмку — fen_tun — аналог, мне так и не удалось запустить, не мудрено, она для 95-98-Ме.

В поиске, все очень плохо по теме: «чем открыть winmail.dat», такие глупые советы люди довали.

Так, что теперь есть действенное решение, которое порядком сэкономит время вам, правда не родное(нативное) для кубунту.

З.Ы. кто-посчитал полезным, не стесняемся в плюсах. Кого спасло и выручило, отписывайтесь. Ну и более лучший способ, если есть — пишите.

Ключевые фразы: чем открыть winmail.dat, что чем кто открывают winmail.dat, пришёл файл в формате winmail.dat, не могу открыть winmail.dat.

Эта же статья на моём сайте. Если будет время более доходчиво опишу это дело, размещу и там и там.

Поскольку я думаю не только о себе, то вот вам ещё варианты решения.

Под кубунтой есть программка Ktnef она способна (и предназначена) для открытия как раз этих файлов (в формате TNEF), правда как отзываются знатоки она далеко не все способна открыть, да и кроме того открывает с побитой русской кодировкой(по крайне мере у меня так вышло).

Так же есть подключаемый модуль к ThunderBird -у называется (вроде бы) «winmail.dat lookout» который позволяет тоже просматривать и вполне успешно этот файл. Но как понимаю, если он вам пришел в почте, а не был передан на флешке, по сети или открыт через вэб-морду почты.

Ещё один вариант кустарный (ИМХО, полумифический) это переименовать winmail.dat в файл с расширением .zip или .doc и открыть соответствующим приложением. Впрочем по заявлению авторов, такой способ работает только если winmail.dat содержит как вложение один файл *.zip или *.doc соответсвенно.

Тут http://www.mail.ru/pages/help/181.html
вроде написано как отключить создание таких писем в OutGluke outlook -e

Гость — 10 Июнь, 2010 — 13:41

Программа winmail_opener отлично работает. Огромное спасибо:)

Гость — 19 Октябрь, 2010 — 20:34

Из всей информации, найденной мной по теме «как и чем открыть winmail.dat», ваша — самая объективная и цельная) Огромное вам спасибо! Вы меня здорово выручили. Почту открыла без проблем) А до этого так долго мучилась! Еще раз спасибо)))

Гость — 18 Февраль, 2011 — 11:44

По жуткой иронии судьбы, каждый раз когда я сталкиваюсь с этой проблемой, в поиске нахожу это своё решение 🙂

Гость — 30 Март, 2011 — 15:37

Уважаемый balamutick очень признательна. Все просто и лаконично объяснили, и все работает. Вы чудный прогер!

спасибо огромное. очень помогло.

Источник

Opening winmail.dat attachments

After saving an attachment in a Thunderbird mail message to my Ubuntu 16.04 files, I was informed that a winmail.dat file can’t be opened. I am not tech-savvy. Is there an easy solution?

Читайте также:  Линукс лор от чего

I would query your system what type of file it is, ie. file /path/winmail.dat which should tell you what type of file it is (not from it’s name, but the file’s contents; sorry it’s a command as it’s where I’d do it)

I am not at all familiar with how the terminal works. I don’t know how to query the system about the file. I tried «file /path/winmail.dat» and got «no such file or directory». I also tried Graham’s suggestion of winmaildat.com and got the file there as a «docx», but was still unable to open it. I am apparently misunderstanding the directions and options I am given. I appreciate your taking time for me.

3 Answers 3

Microsoft Outlook can include attachments in email using a proprietary format. Email clients that do not support the Outlook format see that attachment as a file winmail.dat . You can still decode the attachment using a command line tool tnef .

Install the command line tool with the command

Then you can easily decode the winmail.dat file into the original binary files with

Following is in case you are very unfamiliar with how the terminal works.

If you are not used to working with the terminal: the command above assumes that your current working directory (folder) is containing winmail.dat . You can easily open a terminal in the folder where your winmail.dat folder resides using the file manager.

Alternatively, you can open a terminal. By default, the current folder will be your home folder ( /home/ which can be indicated as ~ ). You can check in which folder you are with the pwd command. You can check what files are present in the current folder with the ls command. Otherwise, you need to first change to the directory where the file resides. There, you use the cd command. Suppose you downloaded the attachment in your «Downloads» folder, then you can in the terminal move to that directory with the command:

after which you will successfully be able to execute the command to decode the attachment.

Источник

Andrew Beacock’s Blog

UPDATE: I have an improved version of the script available here.

I’m not going to repeat the many, many websites taking (and complaining) about Microsoft’s proprietary e-mail attachment format called TNEF.

I’m assuming that if you are reading this then you have found that these fixes are not working for you (or not possible to enforce). I’ll also assume that the LookOut Thunderbird Add-on by Aron Rubin is also not working correctly for you (this was my experience on Ubuntu Edgy Eft).

The best solution I could come up with was getting Thunderbird to run a script to unpack the winmail.dat extension into a folder on your Ubuntu desktop.

It relies on the tnef command-line program, so make sure that is installed first (it’s bundled with Ubuntu):

sudo aptitude install tnef

Below is my little script, save it in a file called ‘tnef.sh’ somewhere and make sure it’s executable ( chmod +x tnef.sh ) — or just download it here.

#!/bin/bash

LOCATION=~/Desktop/winmail.dat

mkdir $LOCATION
/usr/bin/tnef -C $LOCATION --save-body -f $1

Now find an email in Thunderbird with a winmail.dat attachment. Double click it and select to open it with the newly saved tnef.sh file:

Читайте также:  Как сжать папку в linux

Look on your desktop — there should be a ‘winmail.dat’ directory with the full contents of the attachment.

Double-clicking on any future winmail.dat file will result in the contents of the attachment to also be added to that directory.

  • Get link
  • Facebook
  • Twitter
  • Pinterest
  • Email
  • Other Apps
  • Get link
  • Facebook
  • Twitter
  • Pinterest
  • Email
  • Other Apps

Comments

Please note that the version of LookOut on AMO is stale. The reviewers are taking quite some time to review version 1.1 while I have already released 1.2. Version 1.2 seems to fix all the bugs people were seeing both with install and behavior. You can a copy at the project’s web site — http://lookout.mozdev.org

Thanks Aron, and please note I wasn’t trying to put your excellent addon down just showing a different way after I couldn’t get it working correctly on Ubuntu.

Please keep up the excellent work on LookOut.

I took no exception to your comment. My real problem is with the AMO folks who have been sitting on the bug fix releases since July 7th. The reason BTW, it was not working on some Linux installs and OS X because I set the temporary file perms to 644 as if I was using chmod instead of 0644 which is the proper octal representation. There were a few other bugs too that I got much help in finding (the more eyes. ). Also it is worth mentioning that TNEF carries metadata, not just attachments. External programs cannot feed this metadata back into the mail/calendaring program. The real advantages will be realized when I integrate with Sunbird/Lightning.

Thanks for the update regarding your latest features, I’m very interested in what you said about Lightning and the TNEF metadata, I’ve posted today regarding Thunderbird and vCalendar events in Lightning.

Please keep me informed of any new releases of LookOut and I’ll give it another try on Ubuntu soon. 🙂

Hey, thanks for posting your solution to this. LookOut isn’t working for me either (LookOut 1.2 on Thunderbird 2.0.0.6 on Ubuntu 7.04) — it installs, but doesn’t seem to do anything with the winmail.dat files. So I extended your solution a bit:

#
# open_tnef.sh
#
# Creates a tmp dir, decodes the given TNEF file into that dir,
# and then launches nautilus for viewing.
#
# TODO: instead of letting random dirs accumulate, keep only
# N-most recent dirs, deleting older dirs
#

#
# Make sure given argument is a TNEF file
#
FILE_TEST=`file $1`
if [ «$FILE_TEST» != «$1: Transport Neutral Encapsulation Format» ]; then
echo «Given argument ‘$1’ is not a TNEF file»
exit 1
fi

#
# Set TMPDIR, if not already set
#
if [ «$TMPDIR» = «» ]; then
TMPDIR=/tmp
fi

#
# Create BASE_DIR, if not already created. All TNEF files will be
# decoded into random subdirs of this BASE_DIR.
#
BASE_DIR=$TMPDIR/open_tnef
if [ ! -d $BASE_DIR ]; then
mkdir $BASE_DIR
if [ «$?» != «0» ]; then
echo «Failed to create dir ‘$BASE_DIR'»
exit 1
fi
fi

#
# Name of given TNEF file will be used to create a random subdir
# to hold its contents
#
TNEF_FILE_NAME=`basename $1`

#
# Create a random subdir for contents of given TNEF file
#
CONTENT_DIR=`mktemp -d $BASE_DIR/$TNEF_FILE_NAME.XXXXXXXXXX`
if [ «$?» != «0» ]; then
echo «Failed to create dir ‘$BASE_DIR/$TNEF_FILE_NAME.XXXXXXXXXX'»
exit 1
fi

#
# Open the given TNEF file into the content dir
#
tnef —number-backups -C $CONTENT_DIR -f $1
if [ «$?» != «0» ]; then
echo «Failed to decode given TNEF file ‘$1′»
exit 1
fi

Читайте также:  Linux raid on ssd

#
# View the content dir
#
nautilus $CONTENT_DIR
if [ «$?» != «0» ]; then
echo «Failed to launch nautilus»
exit 1
fi

That looks like a very useful version of the script, I’ll try that out this week and post back once I have an opinion! 🙂

This comment isn’t for abeacock, but rather, for anyone else who finds this page via googlemagic.

I was convinced that LookOut wasn’t working for me on Fedora Core 6. If I «Save As» or «Detach», it would ask me where I wanted the file. After choosing a destination directory, I found no files. I did this over and over again, disabling various other Thunderbird Extensions along the way, to see if I could uncover the source of a conflict.

After a bit of searching, however, I found the attachments successfully detached into /tmp, all 17 copies of them (from the 17 times I tried it — oops!).

Status on June 22, 2009 (for anyone who finds this through Google and is wondering if LookOut still poses problems) — on my Ubuntu 9.04 (64 bit) installation using the latest Thunderbird from the standard repo’s, LookOut is working perfectly. So no need for any custom scripting.

Источник

winmail.dat – how to open in Thunderbird/Ubuntu

pssst …

pssst …

Once in a while you may receive an email with an attachment called “winmail.dat”. How do you open it?

Short answer: The LookOut addon for Thunderbird:

Microsoft wanted to offer “rich” text features in their emails. The approach they took was to send a plain text version of the message and a version coded into a form of Rich Text Format. If the mailer at the other end could handle the Rich Text Format version they would see that, otherwise they would see the plain text. To do this, they used their own method, called the MicroSoft Transport Neutral Encapsulation Format, or MS-TNEF. Essentially a file called WINMAIL.DAT, which is just a standard MIME encoding of a Rich Text Format version of the message, is included with outgoing mail. http://blog.myfenris.net/?p=181.

So to answer some questions:

Q. Why is this happening?
A. Microsoft likes to break standards in its pursuit of a monopoly. This has been a very profitable strategy.

Q. Can I stop the person sending the email doing it again?
A. They need to avoid Rich Text for their emails or their Microsoft email program will automatically violate email strandards. From Wikipedia: “Within the Outlook email client TNEF encoding cannot be explicitly enabled or disabled. Selecting RTF as the format for sending an e-mail implicitly enables TNEF encoding, using it in preference to the more common and widely compatible MIME standard.” (http://en.wikipedia.org/wiki/TNEF).

Q. How do I open the attachment?
A. If you are using Thunderbird the easy answer is the LookOut extension. Otherwise, see below (with big thanks to: http://blog.myfenris.net/?p=181):

Install tnef:
sudo apt-get install tnef ytnef libytnef0 libytnef0-dev
Save proprietary, standards-non-compliant attatchment to your desktop
tnef —file=Desktop/winmail.dat
Open home folder to see extracted attachment – which could be a jpg or anything that is an attachment really.

Источник

Оцените статью
Adblock
detector