]> git.madduck.net Git - etc/mailfilter.git/blobdiff - procmail/tnef-filter

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

delay only until afternoon
[etc/mailfilter.git] / procmail / tnef-filter
index bce31999305b0ae65db0e45dff567153a57477d4..790a25c5687e80437ac213d783c85f106da21190 100644 (file)
@@ -1,8 +1,9 @@
-VERBOSE=yes
-
-:0 fw
-* ^X-MS-TNEF-Correlator:
-* B ?? winmail.dat
-|ytnef-filter
-
-VERBOSE=no
+:0
+* ^X-MS-TNEF-Correlator: <
+* B ?? ^Content-Type: application/ms-tnef
+{
+  :0 fw
+  |$MAILFILT/bin/killtnef | $FORMAIL -IX-MS-Has-Attach: -IX-MS-Tnef-Correlator: \
+    -IX-MimeOLE: -IContent-Class: -I'X-Tnef: killed'
+  LOG="tnef-filter: converted TNEF attachment$NL"
+}