]> 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:

add tasker list to ignore lists
[etc/mailfilter.git] / procmail / tnef-filter
index b1d52dadd2a65e5aae038681ab92815a2514d990..790a25c5687e80437ac213d783c85f106da21190 100644 (file)
@@ -1,4 +1,9 @@
-:0 fw
-* ^X-MS-TNEF-Correlator:
-* B ?? winmail.dat
-|ytnef-filter
+: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"
+}