Open employee opened 10 years ago
The TNEF.framework is used for extracting any files from winmail.dat files, it does not contain any specific file viewers. You would have to solve this by integrating a custom viewer which handles your .vcf or .ics files or open them (e.g. to improt them) using the iOS.
I am talking about when .vcf and .ics files are email attachment in winmail.dat file. Then TNEF.framework not extract .vcf and .ics file in winmail.dat file.
Hi, could you please send me a sample winmail.dat file to github (at) kida (dot) io so I can reproduce this behaviour?
Hi, I've had a look into your winmail.dat and tried to open it with other third party tools (propably also using the same tnef library) and no other tool was able to open it, looks like the tnef library does not detect thos attachments.
Yes Kimar, I know that the tnef library does not detect .ics and .vcf files contained inside winmail.dat attachments. But I know that it is possible. Please have a look at the software here - http://www.creativeinaustria.com/ This Letter Opener software is able to not only extract calendar appointments (.ics) and outlook contacts (.vcf) from inside winmail.dat attachments received via email, but it also can sync appointments with iCal and export contacts to Address book.
So if Letter Opener can do this, I believe it is possible to view and sync .ics & .vcf file contained inside winmail.dat attachments. I just don't know how to do it in my software.
All suggestions are welcome. :)
I agree with above.
I know .vcf and .ics files are not supported by TNEF.framework natively but there are many apps on app store which can extract/parse those file formats correctly.
Here is an app that displays .ics files correctly: https://itunes.apple.com/us/app/winmail-reader-lite-for-ios/id880620365?mt=8&at=1l3uZR4 .
If you want to test with a winmail.dat file containing .ics files, here is one: https://dl.dropboxusercontent.com/u/2696404/winmail_ics.dat
You should see the below result if TNEF.framework parses .ics files correctly:
Ok, looks legit. If I find some time (can't make an estimate on that right now), I'd have a look into that. Otherwise, if anyone else is interested in looking into this topic and creating a PR, that's more than welcome.
@kimar Any chance you had a look at this? :)
Nah, and I'm pretty sure I won't in the near (and probably far) future due to lack of time. If anyone implement's this I'd be keen to review and merge a PR. Sorry guys :-/
How to read .vcf and .ics file in tnef.?