LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-16-2020, 06:54 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,618

Rep: Reputation: 180Reputation: 180
How do I use perl-Convert-TNEF


I've just downloaded and installed perl-Convert-TNEF. This was recommeded for reading winmail.dat files. I'm not a perl user. No man page was installed, nor a binary/command.

How do I use this module?

Later ...

Wow, this is turning into an unexpectedly complicated project. I've moved on from the perl module and I've downloaded tnef from github and built it. I've tried:
Code:
tnef [-t|-v] -f winmail.dat
and absolutely nothing happens. Any ideas? The winmail.dat files I'm using is: http://www.novatec-inc.com/pub/winmail.dat if you want to look at it, which is an attachment sent to my by a friend and Windows/Outlook user and does contain text (I've dumped) it. In fact, I can read it with lynx as it is essentially an html attachment of the actual message.

Why does tnef do nothing?

Last edited by mfoley; 01-16-2020 at 08:59 PM.
 
Old 01-17-2020, 08:09 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
The Perl module seems to be a library you can use in a Perl program, but not as a standalone program.

I can't tell why tnef does nothing, but if you add the --debug option, you get a lot of output, including some data that seems to come from the winmail.dat file:
Code:
Here’s the list:

  1.  Spyder    (part of Anaconda)
  2.  PyCharm
  3.  Thonny
  4.  Atom
  5.  Jupyter Notebook
  6.  Sublime Text

Thomas Maher, PE
GM Powertrain Headquarters
800 North Glenwood Avenue
Pontiac, MI  48340
EDIT: A strings winmail.dat reveals the HTML and more message content.

EDIT2: To communicate with the author of the tnef program, I suggest you create an issue at https://github.com/verdammelt/tnef. Looking at the timestamps in the Git repository, the project seems to be active. Perhaps the author would be grateful for TNEF files that don't get converted.

Last edited by berndbausch; 01-17-2020 at 08:17 PM.
 
Old 01-21-2020, 10:48 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,369

Rep: Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753
So the Perl thing is a module (like a library) & howto with examples is here https://metacpan.org/pod/Convert::TNEF .
If you need further assistance, try the gurus at perlmonks.org
 
Old 02-10-2020, 01:28 PM   #4
erik2282
Member
 
Registered: May 2011
Location: Texas
Distribution: Primarily Deb/Ubuntu, and some CentOS
Posts: 831

Rep: Reputation: 229Reputation: 229Reputation: 229
not sure if this would help in your scenario, but you can also just use the tnef command to extract the needed files.


Code:
erik@debian:~/Desktop$ ls
winmail.dat
erik@debian:~/Desktop$ tnef winmail.dat 
erik@debian:~/Desktop$ ls
89896abc.pdf   winmail.dat
 
  


Reply

Tags
perl



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Plain Old Documentation (pod) – write documentation for Perl, Perl software, and Perl modules LXer Syndicated Linux News 0 10-05-2018 09:12 AM
clamscan TNEF error caloss Linux - Software 2 02-10-2015 03:32 AM
Perl use prima; Prima(perl) (image processing software))error knockout_artist Linux - Software 2 09-11-2007 10:13 PM
[Suse] Replacing microsoft TNEF archives in email attachments loopy69 Linux - Enterprise 0 11-28-2004 08:29 PM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 08:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration