Bug 329597

Summary: PGP/MIME signed messages not accepted by Thunderbird's Enigmail
Product: [Applications] kmail2 Reporter: Martin Albrecht <martinralbrecht>
Component: cryptoAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED NOT A BUG    
Severity: minor CC: kdenis, kolAflash, sknauss
Priority: NOR    
Version: 4.11.3   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: automatic word-wrap enabled, rejected by Thunderbird's Enigmail
manual word-wrap, accepted by Thunderbird's Enigmail

Description Martin Albrecht 2014-01-04 14:00:52 UTC
If  the option "Word wrap at column: XX" (say 78) is set in the "General" tab of the "Composer" settings then the PGP/MIME signature generated by KMail is not accepted by Thunderbird's Enigmail.

If line breaks are added by hand and/or if "Word wrap at column: XX" is deselected, then the generated signature is reported as valid by Thunderbird's enigmail.


Reproducible: Always

Steps to Reproduce:
1. Select "Word wrap at column: 78" in the "General" tab of the "Composer" settings
2. Write an e-mail, say, with text longer than 78 characters (do not add any line breaks by hand)
3. Sign the message using PGP/MIME and send it
4. Open the mail in Thunderbird
Actual Results:  
Thunderbird's Enigmail reports: "Error - signature verification failed; click on 'Details' button for more information". Clicking on details reports: "OpenPGP Security Info; Error - signature verification failed"

Expected Results:  
Thunderbird's Enigmail reports: "Good signature from XXX" 

I don't know if this is a bug in Thunderbird's Enigmail or in KMail2. Note that the messages rejected by Thunderbird's Enigmail are accepted by KMail2, i.e. KMail2 is consistent.

Disabling automatic word wrapping makes the issue disappear.
Comment 1 Martin Albrecht 2014-01-04 14:03:29 UTC
Created attachment 84444 [details]
automatic word-wrap enabled, rejected by Thunderbird's Enigmail
Comment 2 Martin Albrecht 2014-01-04 14:04:30 UTC
Created attachment 84445 [details]
manual word-wrap, accepted by Thunderbird's Enigmail
Comment 3 Sandro Knauß 2014-03-29 23:46:49 UTC
Acctually it is a problem in enigmail. You can easily test if you use the cmd line tool gpg, that the signature is valid, but is is binary signature. The  problem is that thunderbird can't handle binary signatures correctly. The failing mail has a space as last letter at the line and thunderbird removes this, cause for textmode signatuers this is a allowed modification.
Comment 4 kolAflash 2014-11-17 18:29:16 UTC
I reported a similar problem to the Enigmail bug-system. It's fixed in the current nighties of Enigmail.
So maybe you can close this bug.

http://sourceforge.net/p/enigmail/bugs/332/

https://www.enigmail.net/download/nightly.php

@Martin Albrecht
Can you do a test with a current Enigmail nightly?
Comment 5 Martin Albrecht 2014-11-21 16:33:09 UTC
I can confirm that the bug is gone with a current Enigmail nightly.