Determine MIME type of attachments automatically
Add cross-platform, multibyte-safe pathinfo replacement and use it