[Bug 289722] New: Incorrect Content-Transfer-Encoding header value is set for pgp/mime encrypted mails
Stanislav Sidorenko
mail at stanislavsidorenko.com
Sat Dec 24 09:49:38 GMT 2011
https://bugs.kde.org/show_bug.cgi?id=289722
Summary: Incorrect Content-Transfer-Encoding header value is
set for pgp/mime encrypted mails
Product: kmail2
Version: 4.7
Platform: Ubuntu Packages
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: crypto
AssignedTo: kdepim-bugs at kde.org
ReportedBy: mail at stanislavsidorenko.com
Version: 4.7 (using KDE 4.7.3)
OS: Linux
If you try to send encrypted pgp/mime email that contain 8bit characters then
main Content-Transfer-Encoding header will be set to base64, but it shoud
contain 7Bit in this case.
Here is a part of problematic message:
----------------------------------
MIME-Version: 1.0
Content-Type: multipart/encrypted; boundary="nextPart5141910.e6Y767UtIz";
protocol="application/pgp-encrypted"
Content-Transfer-Encoding: base64
--nextPart5141910.e6Y767UtIz
Content-Type: application/pgp-encrypted
Content-Disposition: attachment
Version: 1
--nextPart5141910.e6Y767UtIz
Content-Type: application/octet-stream
Content-Disposition: inline; filename="msg.asc"
-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.4.11 (GNU/Linux)
hQEMA5XFb/XflcUEAQf/XJ8D5zLDrTTXaE3MtlW4//pMc6ZH8S1bKMeQqKg8LM0U
8KnzFCoy5smyWZrMFqNmoK7CwVnfDS1AgYamVwDNPJLcYlTTqs1YCEJ2Fv/t6EtA
----------------------------------
As a result other mail client fail to decrypt and verify such mail - they try
to decode base64 stream which is actually absent here.
Reproducible: Always
Steps to Reproduce:
1) Create a new message with some non 7bit characters, e.g. "Тестовое
сообщение".
2) Enable PGP/MIME encryption for message.
3) Put it to queue or send it.
Actual Results:
Content-Transfer-Encoding: base64
Expected Results:
Content-Transfer-Encoding: 7Bit
Note, that only main(external) Content-Transfer-Encoding header should contain
7Bit, some headers are also included into encrypted stream - they are to be
defined depending on actual message data.
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Kdepim-bugs
mailing list