Bug 322932

Summary: Pipe Though filter breaks PGP signature
Product: [Applications] kmail2 Reporter: Axel Braun <axel.braun>
Component: cryptoAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: andrius, sknauss
Priority: NOR    
Version: 4.10.5   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Axel Braun 2013-07-29 07:06:47 UTC
I noticed that when I have a mail, signed from a trusted person (means I have his PGP-key imported and signed), the signature is *never* shown as valid. An encrypted mail can be decrypted, so this works.
My assumption is that the spam-filtering via Bogofilter breaks the signature - possible?

Reproducible: Always

Steps to Reproduce:
1. receive signed message
2. signature not shown as valid, although key is signed
3.
Comment 1 Axel Braun 2013-07-29 09:22:58 UTC
Easy x-check: If the mail is first read on my Android phone (while KDE is not active), the spam-filter does not grab it and attach the 'bogofilter score' later on when KDE is started. In this case the signature is displayed as 'green' ( valid).
...and I noticed that due to spam filtering the mail is always fetched twice from the mail server (the android always rings twice....)
Comment 2 Andrius Štikonas 2013-10-25 09:26:24 UTC
I can confirm that this is still happening with KMail 4.11.1.

The signature is actually broken by any mail filter with Pipe Trough action. E.g. mail filtering replaces

Content-Type: text/plain;
	charset=iso-8859-1

with

Content-Type: text/plain; charset="iso-8859-1"

thus breaking the GPG signature.
Comment 3 Sandro Knauß 2015-03-15 20:02:30 UTC

*** This bug has been marked as a duplicate of bug 331991 ***