]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/plugins/filecheck/discussion.mdwn
po/todo: update
[git.ikiwiki.info.git] / doc / plugins / filecheck / discussion.mdwn
1 First, thanks again for making this plugin.
3 I don't know if this is a problem for [[plugins/attachment]], but there seems to
4 be no way to detect text/plain using File::MimeInfo::Magic::magic().
5 There is a heuristic ::default that decides between text/plain and application/octet-stream.  
7 Would you be receptive to a patch that e.g. called File::MimeInfo::Magic::default()
8 if ::magic() returns undef?  --[[DavidBremner]]
10 > Yes, that looks to be ok. --[[Joey]]
12 >> OK, here is such a patch. One modification of previous behaviour is that 
13 >> that if default returns undef, this is returned. As far as I understand
14 >> the code/doc for File::MimeInfo, under is used only as an error return
15 >> for ::default
17 >>> Applied