Questions tagged [tnef]

Transport Neutral Encapsulation Format or TNEF is a proprietary E-mail attachment format used by Microsoft Outlook and Microsoft Exchange Server.

Some TNEF files contain information used by only Outlook to generate a richly formatted view of the message, such as embedded (OLE) documents or Outlook-specific features such as forms, voting buttons, and meeting requests. Other TNEF files may contain files which have been attached to an e-mail message.

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. When sending plain text or HTML format messages, some versions of Outlook prefer MIME, but may still use TNEF under some circumstances (for example, if an Outlook feature requires it).

See http://en.wikipedia.org/wiki/Transport_Neutral_Encapsulation_Format

20 questions
11
votes
1 answer

How to parse winmail.dat with python

I'm pulling emails with attachments off a server and placing them in folders based on certain criteria. This is no problem for emails that were sent with plain text encoding, but as we all know if they were sent with rich text then the attachments…
CCKx
  • 1,303
  • 10
  • 22
7
votes
1 answer

How to send Outlook tasks requests by mail without Outlook?

I need to replicate the Outlook feature/functionnality to send some tasks requests to someone (see here) but with mails sent from a webserver using ASP.NET C# and without Outlook installed on the webserver (thus using outlook automation is not…
tigrou
  • 4,236
  • 5
  • 33
  • 59
5
votes
6 answers

How can I parse the winmail.dat file?

Simple question. I have a C# application that access an IMAP server using the AE.Net.Mail library to retrieve messages and attached files. Sometimes, when a message is sent from Outlook the attachments are contained in a file named winmail.dat. That…
Mathieu Pagé
  • 10,764
  • 13
  • 48
  • 71
3
votes
3 answers

How to extract TNEF winmail.dat using a PHP script?

I am developing a functionality that will read all emails from a mailbox and will process the attachment files. When any mail is sent from Outlook, its attachment is saved as winmail.dat. [Please note that I already have code to download attachments…
PrincyV
  • 138
  • 1
  • 10
2
votes
1 answer

Odoo: How to process winmail.dat attached in conversations?

We have some customers who uses Microsoft Outlook to send attachments. However in odoo we see only winmail.dat files (while everything looks ok in mail client). Is there any way to force odoo to expose winmail.dat content?
L Kehiky
  • 106
  • 1
  • 8
2
votes
1 answer

Exchange 2010/2013 TransportAgent Content Conversion for Internal Recipients

I am trying to create a TransportAgent that reroutes an internal email to a remote server for further processing, but the email comes over in Microsoft's internal TNEF format (no content conversion is being applied). I would like it to be in the…
1
vote
0 answers

How to read Rich Text email in Gmail

I'm trying to receive rich text format email from outlook to my gmail (tnef formatted). Gmail is converting these emails. If anyone know about this please comment or answer. I need to view those emails in gmail.
Samith Basnayaka
  • 137
  • 2
  • 15
1
vote
1 answer

Outlook can't show body of TNEF email exported from Exchange transport agent

I'm exporting emails by Exchange 2016 transport agent and saving them to disk. Outlook successfully opens all the emails, resolve headers, but ts is not able to show body of messages sent from Outlook client. Type is: Content-Type:…
Miroslav Adamec
  • 1,060
  • 1
  • 15
  • 23
1
vote
0 answers

Need to generate file winmail.dat (Transport Neutral Encapsulation Format - TNEF) with attachment in Java

I want to generate file winmail.dat which in TNEF format with java. Is there any Open Source library which I can use to create TNEF file. I found one http://poi.apache.org/hmef/ but it is read only API for parse TNEF file. Please let me know if…
suyog patil
  • 412
  • 3
  • 13
1
vote
1 answer

Is it possible to create a TNEF file from java?

I would like to send a task to outlook from a java backend. I found this thread here which is not resolved (and from 2012): How to send Outlook tasks requests by mail without Outlook? Does it exist a library that can make a TNEF-file for java?
David Berg
  • 1,958
  • 1
  • 21
  • 37
1
vote
1 answer

Apache POI HMEF - How to get attachment size from MS TNEF message?

I have a HMEFMessage and iterating all attachments using for (Attachment tnefAttachment : hmef.getAttachments()) { Attachment size can be obtained using tnefAttachment.getMAPIAttribute(MAPIProperty.ATTACH_SIZE) . This method returns MAPIAttribute…
Xdg
  • 1,735
  • 2
  • 27
  • 42
1
vote
1 answer

TNEF embedded message format

In my scenario I need to read MAPI properties of exchange message to get information about attachments like name, size, etc. For embedded messages I need to get more information. So my question is how to read embedded message info? Can anyone give…
Oleksii
  • 311
  • 1
  • 3
  • 10
0
votes
0 answers

Is there a way to check the content of a winmail.dat for digital signature with tnefparse in python?

I have created a script on my Postfix server which basically adds a banner to incoming external emails. Currently I'm facing the problem that when the sender sends a digitally signed email from Outlook on prem and has the recipient in his address…
0
votes
0 answers

Identify TNEF attachment in MailBee

Q: I am using MailBee to gets attachemnt in winmail.data(TNEF), but I am got several other files which content type is application/octet-stream, I don't want to save this type as attachment. Currently, my solution is using content type to judge…
Dino Liu
  • 500
  • 4
  • 17
0
votes
1 answer

Setting properties while composing an Outlook Mail without forcing TNEF, and referring to those properties after sending

I am having a similar problem to the one described in this previously asked question, but I am looking for a bit more detail in the answer as my lack of experience in this area doesn't allow me to fill in some of the blanks: Tag Outlook MailItem…
user6499401
1
2