473,385 Members | 1,901 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Python TNEF (winmail.dat attachment access) library?

Hello,

has anyone seen such a beast? I tried googling, PyPI, Parnassus etc. but
could not find any pure-python code nor extensions to interface with any
of the existing implementations.

I am thinking about taking the Ruby code I found at

http://www.zweknu.org/technical/index.rhtml?s=p%7c15

and converting that to Python. I have no experience with Ruby so this
will be rather interesting...

I guess another option would be to use CTypes to plug into some tnef
shared library/DLL. I'd prefer a pure-python route though...

Any pointers/recommendations appreciated.

Thanks,

Petri

Oct 3 '05 #1
2 2924
Why not write Python class that uses CTypes and make it
available as a recipe? From a performance standpoint it
is unlikely you can do better than to call the .dll and
have it do the work for you. Just a suggestion.

-Larry Bates

Petri Savolainen wrote:
Hello,

has anyone seen such a beast? I tried googling, PyPI, Parnassus etc. but
could not find any pure-python code nor extensions to interface with any
of the existing implementations.

I am thinking about taking the Ruby code I found at

http://www.zweknu.org/technical/index.rhtml?s=p%7c15

and converting that to Python. I have no experience with Ruby so this
will be rather interesting...

I guess another option would be to use CTypes to plug into some tnef
shared library/DLL. I'd prefer a pure-python route though...

Any pointers/recommendations appreciated.

Thanks,

Petri

Oct 3 '05 #2
Larry Bates wrote:
Why not write Python class that uses CTypes and make it
available as a recipe? From a performance standpoint it
is unlikely you can do better than to call the .dll and
have it do the work for you. Just a suggestion.


A pure Python solution will be cross-platform, while
calling a Windows DLL will only work under Windows.

The optimal solution will be to call the DLL when it is
available, and fall back on pure Python if it is not.
--
Steven.

Oct 4 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Chris Hearson | last post by:
Hi All, I'm currently porting a VC++ app that generates SMTP messages to C#. Part of the generate message header is a TNEF stream that enables a custom form to be used when that email is...
0
by: CTDev Team | last post by:
Hi, We are using Exchange Server 5.5, and have applications written in VB6 and C# that read and process emails. We are experiencing intermittent errors similar to C# Application ...
2
by: Jason | last post by:
Hi all would appreciate any help on decoding winmail.dat files from within C# code? i am getting winmail.dat files in emails and would like to write something to decode the file and save the...
3
by: centur | last post by:
I have a service, which acquire IMessage (CDO Interop) object from datasource (binary restored eml (RFC822) message from SQL database). And due to ms-tnef format of message - i can't extract...
5
by: David Isaac | last post by:
I'm aware of http://cheeseshop.python.org/pypi/pytnef/ but it uses the tnef utility, and I'd like a pure Python solution (along the lines of http://www.freeutils.net/source/jtnef/ ). Is there...
0
by: Jack Diederich | last post by:
QOTW: "The best working hypothesis is that upgrading will break things." - Grant Edwards "Should I take this to mean: "Don't go near TNEF because your underwear will become carnivorous and...
1
by: William Connery | last post by:
Hi, I have a small python program with e-mail capabilities that I have pieced together from code snippets found on the internet. The program uses the smtplib module to successfully send an...
0
by: ARC | last post by:
Hello all, I have a question that I hope someone can help with. I have an Access 97 App, and I allow the user 2 options for e-mailing: MSMapi and MS Outlook 2000/XP. I have a user who is having...
2
by: ARC | last post by:
(sorry for the re-post, but I thought I would put the winmail.dat where it's visible in the subject...thanks!) Hello all, I have a question that I hope someone can help with. I have an Access...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.