When a patch created by `git format-patch` is attached to a bug, Bugzilla automatically sets its type to `application/mbox` (cf. bug #279999). This is somewhat understandable since the patch is an email, but it is not in fact an mbox file (which would begin with `"From "` rather than `"From: "`), and this prevents viewing the patch directly in the browser. Would it be possible to modify Bugzilla to always use `text/x-patch` (or otherwise mark the attachment as being a patch) when the file name ends in `.patch`?
(In reply to Dag-Erling Smørgrav from comment #0) I cannot find any code in Bugzilla that changes content to application/mbox. Please open a bug with such a patch on bugstest.FreeBSD.org so I can try to figure out what happens. Oh, and Cc: me personally on any email. mcl
I assume it uses either file(1) or libmagic(3)?
(In reply to Dag-Erling Smørgrav from comment #2) If it does, it's buried deep in a perl dependency somewhere.