perl-Convert-TNEF - Perl module to read TNEF files

Property Value
Distribution openSUSE Leap 42.2
Repository openSUSE Oss all
Package name perl-Convert-TNEF
Package version 0.18
Package release 6.1
Package architecture noarch
Package type rpm
Installed size 37.77 KB
Download size 21.87 KB
Official Mirror
TNEF stands for Transport Neutral Encapsulation Format, and if you've
ever been unfortunate enough to receive one of these files as an email
attachment, you may want to use this module.
read() takes as its first argument any file handle open
for reading. The optional second argument is a hash reference
which contains one or more of the following keys:
output_dir - Path for storing TNEF attribute data kept in files
(default: current directory).
output_prefix - File prefix for TNEF attribute data kept in files
(default: 'tnef').
output_to_core - TNEF attribute data will be saved in core memory unless
it is greater than this many bytes (default: 4096). May also be set to
'NONE' to keep all data in files, or 'ALL' to keep all data in core.
buffer_size - Buffer size for reading in the TNEF file (default: 1024).
debug - If true, outputs all sorts of info about what the read() function
is reading, including the raw ascii data along with the data converted
to hex (default: false).
display_after_err - If debug is true and an error is encountered,
reads and displays this many bytes of data following the error
(default: 32).
debug_max_display - If debug is true then read and display at most
this many bytes of data for each TNEF attribute (default: 1024).
debug_max_line_size - If debug is true then at most this many bytes of
data will be displayed on each line for each TNEF attribute
(default: 64).
ignore_checksum - If true, will ignore checksum errors while parsing
data (default: false).
read() returns an object containing the TNEF 'attributes' read from the
file and the data for those attributes. If all you want are the
attachments, then this is mostly garbage, but if you're interested then
you can see all the garbage by turning on debugging. If the garbage
proves useful to you, then let me know how I can maybe make it more
If an error is encountered, an undefined value is returned and the
package variable $errstr is set to some helpful message.
read_in() is a convienient front end for read() which takes a filename
instead of a handle.
read_ent() is another convient front end for read() which can take a
MIME::Entity object (or any object with like methods, specifically
open("r"), read($buff,$num_bytes), and close ).
purge() deletes any on-disk data that may be in the attachments of
the TNEF object.
message() returns the message portion of the tnef object, if any.
The thing it returns is like an attachment, but its not an attachment.
For instance, it more than likely does not have a name or any
attachment data.
attachments() returns a list of the attachments that the given TNEF
object contains. Returns a list ref if not called in array context.
data() takes a TNEF attribute name, and returns a string value for that
attribute for that attachment. Its your own problem if the string is too
big for memory. If no argument is given, then the 'AttachData' attribute
is assumed, which is probably the attachment data you're looking for.
name() is the same as data(), except the attribute 'AttachTitle' is
the default, which returns the 8 character + 3 character extension name
of the attachment.
longname() returns the long filename and extension of an attachment. This
is embedded within a MAPI property of the 'Attachment' attribute data, so
we attempt to extract the name out of that.
size() takes an TNEF attribute name, and returns the size in bytes for
the data for that attachment attribute.
datahandle() is a method for attachments which takes a TNEF attribute
name, and returns the data for that attribute as a handle which is
the same as a MIME::Body handle.  See MIME::Body for all the applicable
methods. If no argument is given, then 'AttachData' is assumed.


Package Version Architecture Repository
perl-Convert-TNEF - - -


Name Value
perl(:MODULE_COMPAT_5.18.2) -
perl(IO::Wrap) -
perl(MIME::Body) >= 4.109
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsLzma) <= 4.4.6-1


Name Value
perl(Convert::TNEF) = 0.18
perl(Convert::TNEF::Data) -
perl-Convert-TNEF = 0.18-6.1


Type URL
Binary Package perl-Convert-TNEF-0.18-6.1.noarch.rpm
Source Package perl-Convert-TNEF-0.18-6.1.src.rpm

Install Howto

Install perl-Convert-TNEF rpm package:

# zypper install perl-Convert-TNEF

See Also

Package Description
perl-Convert-UUlib-1.4-18.2.x86_64.rpm Perl interface to the uulib library
perl-Cookie-Baker-0.06-1.1.noarch.rpm Cookie string generator / parser
perl-Crypt-Blowfish-2.14-8.2.x86_64.rpm Perl Blowfish encryption module
perl-Crypt-CBC-2.33-8.1.noarch.rpm Encrypt Data with Cipher Block Chaining Mode
perl-Crypt-DES-2.07-8.2.x86_64.rpm Perl DES encryption module
perl-Crypt-DH-GMP-0.00012-4.13.x86_64.rpm Crypt::DH Using GMP Directly
perl-Crypt-Eksblowfish-0.009-1.1.x86_64.rpm The Eksblowfish Block Cipher
perl-Crypt-MySQL-0.04-1.1.x86_64.rpm Emulate the MySQL PASSWORD() function
perl-Crypt-OpenSSL-Bignum-0.06-4.2.x86_64.rpm OpenSSL's multiprecision integer arithmetic
perl-Crypt-OpenSSL-RSA-0.28-11.2.x86_64.rpm RSA encoding and decoding, using the openSSL libraries
perl-Crypt-OpenSSL-Random-0.10-3.2.x86_64.rpm Routines for accessing the OpenSSL pseudo-random number generator
perl-Crypt-PasswdMD5-1.40-1.1.noarch.rpm Provide interoperable MD5-based crypt() functions
perl-Crypt-RC4-2.02-16.2.x86_64.rpm Perl implementation of the RC4 encryption algorithm
perl-Crypt-Rijndael-1.13-4.14.x86_64.rpm Crypt::CBC compliant Rijndael encryption module
perl-Crypt-Rot13-0.6-25.1.noarch.rpm Rot13 (Caesar) encryption for perl