question about recognizing text/plain
authorbremner <bremner@web>
Fri, 29 Aug 2008 00:02:55 +0000 (20:02 -0400)
committerJoey Hess <joey@kitenet.net>
Fri, 29 Aug 2008 00:02:55 +0000 (20:02 -0400)
doc/plugins/filecheck/discussion.mdwn [new file with mode: 0644]

diff --git a/doc/plugins/filecheck/discussion.mdwn b/doc/plugins/filecheck/discussion.mdwn
new file mode 100644 (file)
index 0000000..6f01a5c
--- /dev/null
@@ -0,0 +1,8 @@
+First, thanks again for making this plugin.
+
+I don't know if this is a problem for [[plugins/attachment]], but there seems to
+be no way to detect text/plain using File::MimeInfo::Magic::magic().
+There is a heuristic ::default that decides between text/plain and application/octet-stream.  
+
+Would you be receptive to a patch that e.g. called File::MimeInfo::Magic::default()
+if ::magic() returns undef?  --[[DavidBremner]]