Discussion:
Decoding winmail.dat attachments using tnef & Amavis.
Jim Rogers
2007-04-01 22:19:02 UTC
Permalink
We get a lot of emails that have winmail.dat attachments. This is all fine
and dandy if you are using outlook,
but for the ones who don't, you can't view them.

Looks like amavis has some built in code for tnef.

Is there a way to have amavis decode the files inside winmail.dat and
include them in the email as
a normal attachment?

If you run tnef on the winmail.dat files, it will extract any files that may
be inside. So, I'd think this would be
doable.

Can anybody help, or know of a way other than amavis to extract files from
winmail.dat and include them as an
attachment?

Thanks.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
AMaViS-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/
Mark Martinec
2007-04-03 12:43:02 UTC
Permalink
Jim,
Post by Jim Rogers
We get a lot of emails that have winmail.dat attachments.
This is all fine and dandy if you are using outlook,
but for the ones who don't, you can't view them.
Are sending clients out of your control?
Post by Jim Rogers
Looks like amavis has some built in code for tnef.
Indeed, it either uses Convert::TNEF or an external utility tnef.
Post by Jim Rogers
Is there a way to have amavis decode the files inside winmail.dat and
include them in the email as a normal attachment?
If you run tnef on the winmail.dat files, it will extract any files that
may be inside. So, I'd think this would be doable.
Can anybody help, or know of a way other than amavis to extract files
from winmail.dat and include them as an attachment?
This is currently not possible without a major hack.
There are no provisions in code to replace a MIME part
with a substitute, and reassemble the mail.

The closest thing is a new (2.5.0) support for external
mail modifying programs, like for adding disclaimers or
true defangers. See release notes of the 2.5.0-pre3.

Mark

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
AMaViS-user mailing list
AMaViS-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Loading...