From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/3323 Path: news.gmane.org!not-for-mail From: Ivan Boldyrev Newsgroups: gmane.emacs.gnus.user Subject: Yet another bug (was: PGP from evolution) Date: Wed, 24 Dec 2003 17:54:33 +0600 Organization: this field is intentionally left blank Message-ID: <3dbob1xbd9.ln2@ibhome.cgitftp.uiggm.nsc.ru> References: <87r7z77wso.fsf@hades.kotnet.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1138669483 18536 80.91.229.2 (31 Jan 2006 01:04:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 01:04:43 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:32:02 2006 Original-Path: quimby.gnus.org!newsfeed.gazeta.pl!fu-berlin.de!uni-berlin.de!p147.tc1.snt.RU!not-for-mail Original-Newsgroups: gnu.emacs.gnus Original-NNTP-Posting-Host: p147.tc1.snt.ru (217.70.126.147) Original-X-Trace: news.uni-berlin.de 1072267105 11672396 217.70.126.147 ([186134]) X-Orig-Path: ibhome.cgitftp.uiggm.nsc.ru!not-for-mail X-Comment-To: Jesper Harder X-Request-PGP: hkp://subkeys.pgp.net:11371 X-PGP-KeyID: 0xA5BDD19856098673 (1024D) X-PGP-Fingerprint: 3640 E637 EE3D AA51 A59F 3306 A5BD D198 5609 8673 X-Mantra: OM MANI PADME HUM X-Greenpeace: No animals were harmed in this message X-Face: N\I# =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 My previous post displayed yet another bug in mml1991-pgg-sign: quoted-printable-decode-region is called always even if region was not actually encoded. Peace of text about quoted-printable shoul look like: ,----[ ] | Gnus encrypts Cyrillic (8-bit) messages incorrectly: it encodes it | with quoted-printable. It is correct for PGP/MIME but wrong for Plain | PGP. For example, when someone with PGP-incapable client (Outgluk, | for example) will decode it manually and see something like |=20 | =3DFB=3DC9=3DC6=3DD2=3DCF=3DD7=3DC1=3DCE=3DC9=3DC5 =3DD2=3DD5=3DD3=3DD3= =3DCB=3DCF=3DC7=3DCF. |=20 | he will not be pleased. `---- Here is a patch: :) =2D --- mml1991.el~ 2003-12-24 17:50:16.000000000 +0600 +++ mml1991.el 2003-12-24 17:49:16.000000000 +0600 @@ -232,7 +232,9 @@ (setq headers (buffer-substring (point-min) (point))) (forward-line) ;; skip header/body separator (delete-region (point-min) (point))) =2D - (quoted-printable-decode-region (point-min) (point-max)) + (when (string-match "^Content-Transfer-Encoding: quoted-printable" + headers) + (quoted-printable-decode-region (point-min) (point-max))) (unless (let ((pgg-default-user-id (or (message-options-get 'mml-sender) pgg-default-user-id))) =2D --=20 Ivan Boldyrev Is 'morning' a gerund? =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.3.4 (GNU/Linux) iD8DBQE/6X6Cpb3RmFYJhnMRAocQAJ9joo7QmgKFfEtBXQRhG6whYx52uwCgsFiO 1oev0ZCG/Qk1T5cYEFlqAr0=3D =3DB3FV =2D----END PGP SIGNATURE-----