On 11:03 Thu 09 Dec , Andrew Haley wrote: > On 12/08/2010 08:02 PM, Ivan Maidanski wrote: > > > I remember you (or someone else) had pointed me about of > > inconvenience of reading my patches in the form they were attached > > and I had promised to use ".diff.txt" file extension but forgot > > about it after a long delay. (there is such problem in, say, hpl.com > > mailing list where I frequently send my patches to; besides, I have > > no problem in opening the attachment in the link below in Firefox > > which I use). I apologies for the inconvenience and I'll try to keep > > in my mind that it's better to use .txt extension when posting to > > this ML. > > This turns out to be a known Firefox bug: > https://bugzilla.mozilla.org/show_bug.cgi?id=327323 > > The bugzilla shows a way around this problem. I appended the > following line to my .mailcap: > > application/octet-stream;/usr/bin/emacs "%u" > > So, at least it is now possible to see the patches without first > saving them and then opening in an editor as a separate action. > > Note that I am not recommending that anyone use incorrect MIME-types > in future, just that there is at least a workaround. > It also only solves part of the problem. AFAICS, you still have to open the patch in an external application instead of reading it in the mail itself. > Andrew. > -- Andrew :) Free Java Software Engineer Red Hat, Inc. (http://www.redhat.com) Support Free Java! Contribute to GNU Classpath and IcedTea http://www.gnu.org/software/classpath http://icedtea.classpath.org PGP Key: 94EFD9D8 (http://subkeys.pgp.net) Fingerprint = F8EF F1EA 401E 2E60 15FA 7927 142C 2591 94EF D9D8