Summary: | Incorrect inline-openpgp encrypted message is generated | ||
---|---|---|---|
Product: | [Applications] kmail2 | Reporter: | Stanislav Sidorenko <mail> |
Component: | crypto | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | arpad.kunszt, montel, quazgar, rdieter, sknauss |
Priority: | NOR | ||
Version: | 4.7 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kdepim/597f7a5f56061d0107b3264b6453cf7b09cbfc6a | Version Fixed In: | 4.10.2 |
Sentry Crash Report: |
Description
Stanislav Sidorenko
2011-12-24 11:05:54 UTC
*** Bug 289722 has been marked as a duplicate of this bug. *** *** Bug 289723 has been marked as a duplicate of this bug. *** I can confirm this with Kmail2 on KDE 4.7.3. Is there any progress on this? It's a very frustrating bug if you work in a non-English speaking country... I can confirm this with KMail 4.7.4 on KDE 4.7.4. I can confirm this with Kontact 4.8.0 (gpg 2.0.17), even when the body consists of just one single umlaut character. Still valid in 4.9 ? What is real bug ? Sorry I don't understand problem (In reply to comment #6) > Still valid in 4.9 ? This will have to be answered by somebody with 4.9. Still valid in 4.8.3, I just tested it again. > What is real bug ? > Sorry I don't understand problem As Stanislav wrote, create a message that sets the Content-Transfer-Encoding to base64 (so, not 7bit), e.g. by putting only a single non-ascii character into the message body ("ä" or "и" should be enough). Tell KMail to encrypt it, using Inline OpenPGP (may be required, since Thunderbird/Enigmail may have problems otherwise) and send the message to yourself. As shown in the example, the message composer seems remove all non-base64 characters, thus rendering the message unreadable by the receiving program. Example A: (working encryption) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" -----BEGIN PGP MESSAGE----- Version: GnuPG v2.0.19 (GNU/Linux) hQIOA2EOZthMz4KpEAgA6MjhMzsjgDQlmAXB39JgvoAE0v2+1qN7hztb8rSMVrkD GRislUNIedEW8htmiC1dOrm8GxOhuUTlcVeQhpz17uIFng377ZLbpER7FUma3hv9 .... Example B: (buggy mail composer) Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="iso-8859-1" BEGINPGPMESSAGEVersionGnuPGv2019GNU/LinuxhQIMAzReyxSL2tmNAQ//fM9gYpg/+Je96y4 qPkyb2jeFaQATSVy6yM1n0KZ/kZlttnHhe0joGFXNY7+gvvpjalj0wWSvVO7HfhYORpIir1qdPe6 (In reply to comment #6) > Still valid in 4.9 ? Yes, I can still reproduce this with 4.9.3. Actually the message source as written in comment #1 is not quite correct. The actual message is a correct gpg-encoded ascii text, BUT of this text only the characters which fit into the base64 encoding will be displayed within KMail's internal source code viewer. Real message: Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="utf-8" -----BEGIN PGP MESSAGE----- Version: GnuPG v2.0.19 (GNU/Linux) hQQOAwDFNNdvZQ1REA/+O8yMkDf1nYU63sCEpojF+L6tzLKBQnZL25PmFkYKrThQ F4PurybdjtLsCpim38hyANgGxJikgKUAXUJCHkNha213FasflyFqunbBtkfHJZZx flBpT19VnRICAApYn8yO1IVhVj4MxzOl8JIrC4VNjsZbAvfKkPWqR3wrTxCJH5bM PmecooZIBRtPN+CnylfQQMELTsAkiZIpYfwWQw3omPYKSEwl7hQB6tUCgiyr2zw+ p97UUzDgpo1hDcBXsz17NSEYwUjMSxfJ+M8qmJeasHaZrBp/C23tJqvRo621bWfv S1QdkU6Wb6TFR+aZefD8hQH8EFsIUCaLwUtf/D+xl1jWfBRlZq0HkYYcqEKGC1Zp ... Displayed in KMail's source viewer: Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="utf-8" BEGINPGPMESSAGEVersionGnuPGv2019GNU/LinuxhQQOAwDFNNdvZQ1REA/+O8yMkDf1nYU63sC EpojF+L6tzLKBQnZL25PmFkYKrThQF4PurybdjtLsCpim38hyANgGxJikgKUAXUJCHkNha213Fas flyFqunbBtkfHJZZxflBpT19VnRICAApYn8yO1IVhVj4MxzOl8JIrC4VNjsZbAvfKkPWqR3wrTxC JH5bMPmecooZIBRtPN+CnylfQQMELTsAkiZIpYfwWQw3omPYKSEwl7hQB6tUCgiyr2zw+p97UUzD gpo1hDcBXsz17NSEYwUjMSxfJ+M8qmJeasHaZrBp/C23tJqvRo621bWfvS1QdkU6Wb6TFR+aZefD 8hQH8EFsIUCaLwUtf/D+xl1jWfBRlZq0HkYYcqEKGC1Zp3dUGnqemEdsjXRK9B+EVPgPli71dbvl .... A Patch is now on reviewboard, that fixes this bug: https://git.reviewboard.kde.org/r/109272 Git commit 597f7a5f56061d0107b3264b6453cf7b09cbfc6a by Sandro Knauß. Committed on 03/03/2013 at 19:50. Pushed by knauss into branch 'KDE/4.10'. Fixing ContentTransferEncoding for signed&encrypted messages Related: bug 289722 REVIEW: 109272 FIXED-IN: 4.10.2 M +31 -7 messagecomposer/util.cpp http://commits.kde.org/kdepim/597f7a5f56061d0107b3264b6453cf7b09cbfc6a |