From: Ivan Boldyrev <boldyrev+nospam@cgitftp.uiggm.nsc.ru>
Subject: Yet another bug (was: PGP from evolution)
Date: Wed, 24 Dec 2003 17:54:33 +0600 [thread overview]
Message-ID: <3dbob1xbd9.ln2@ibhome.cgitftp.uiggm.nsc.ru> (raw)
In-Reply-To: <m3fzfckzrf.fsf@defun.localdomain>
-----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:
,----[ <ds9ob1x1o4.ln2@ibhome.cgitftp.uiggm.nsc.ru> ]
| 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
|
| =FB=C9=C6=D2=CF=D7=C1=CE=C9=C5 =D2=D5=D3=D3=CB=CF=C7=CF.
|
| he will not be pleased.
`----
Here is a patch: :)
- --- 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)))
- - (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)))
- --
Ivan Boldyrev
Is 'morning' a gerund?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.3.4 (GNU/Linux)
iD8DBQE/6X6Cpb3RmFYJhnMRAocQAJ9joo7QmgKFfEtBXQRhG6whYx52uwCgsFiO
1oev0ZCG/Qk1T5cYEFlqAr0=
=B3FV
-----END PGP SIGNATURE-----
prev parent reply other threads:[~2003-12-24 11:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87r7z77wso.fsf@hades.kotnet.org>
2003-12-17 5:54 ` PGP from evolution Ivan Boldyrev
[not found] ` <87hdzzaxio.fsf@oz.fapse.ulg.ac.be>
[not found] ` <871xr32gto.fsf@virgil.koldfront.dk>
2003-12-17 23:24 ` Arnaud Vandyck
[not found] ` <1m9db1x3r7.ln2@ibhome.cgitftp.uiggm.nsc.ru>
2003-12-20 11:46 ` Arnaud Vandyck
[not found] ` <m3smjensyq.fsf@home.tcob1.net>
2003-12-21 14:44 ` Sean Rima
2003-12-21 17:18 ` Simon Josefsson
[not found] ` <m3fzfckzrf.fsf@defun.localdomain>
2003-12-24 11:54 ` Ivan Boldyrev [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3dbob1xbd9.ln2@ibhome.cgitftp.uiggm.nsc.ru \
--to=boldyrev+nospam@cgitftp.uiggm.nsc.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).