Created attachment 87741 [details] [review] patch v1 I made a mistake in 2c3438c. As all weights are currently equal for *.asc files, we now recognize unrelated files as OpenPGP stuff. The attached patch fixed the issue in my tests.
We tested this patch and it works as expected when used in the context of GNOME Seahorse.
Any news?
commit 4f33cfd52a4a794f9dfeb2e53b788780d5d3f1c5 Author: Jérémy Bobbio <lunar@debian.org> Date: Wed Oct 16 11:12:28 2013 +0200 Do not recognize all .asc files as application/pgp-encrypted The change introduced in 2c3438c had the unfortunate effect of having all .asc be identified as application/pgp-encrypted. As this should only happen when we can identify armor headers, we now give a lower weight than text/plain to the *.asc glob for OpenPGP MIME types. https://bugs.freedesktop.org/show_bug.cgi?id=70539
Created attachment 115788 [details] Example encrypted message .asc file detected as plain text
I have a *.asc encrypted message that is detected as plain-text. I was told to file a bug report here from the KDE bug tracker. https://bugs.kde.org/show_bug.cgi?id=346754#c5 To summarise, the file that I have attached is opened as a plain text file by default. I removed *.asc association with plain-text files to get it recognised as a GPG-encrypted message. Re-adding *.asc as a recognised filetype for plain-text documents returns the erroneous recognition.
Sorry. I am going to file a new bug report instead.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.