<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>PGP/MIME signed message with user signature fails in thunderbird</title> 
  <pubDate>Fri, 10 Apr 2026 17:02:22 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/12952</link> 
  <atom:link rel="self" type="application/rss+xml" title="PGP/MIME signed message with user signature fails in thunderbird" href="https://bugs.horde.org/ticket/12952/rss" /> 
  <description>PGP/MIME signed message with user signature fails in thunderbird</description> 
 
   
   
  <item> 
   <title>A mail with IMP standard mechanism to append a user defined </title> 
   <description>A mail with IMP standard mechanism to append a user defined signature (delimited with &quot;-- \n&quot;) is sent addionally signed with PGP. The verification of the signature is successful in IMP and mutt,  but fails in thunderbird/enigmail.

The problem is reported to enigmail (see also for details https://sourceforge.net/p/enigmail/bugs/248) but meanwhile i got stuck in the discussion if the trailing blank in the signature delimiter is correct or not. Although i tend to the opinon that this is not a problem of Horde/Imp i have to admit that my level of competence is exceeded. 

Please continue the discussion with enigmail by a Horde developer to achieve a mutually agreed pragmatic solution. </description> 
   <pubDate>Sat, 01 Feb 2014 15:46:55 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12952#t82229</link> 
  </item> 
   
  <item> 
   <title>http://tools.ietf.org/html/rfc3676#section-4.3

   There i</title> 
   <description>http://tools.ietf.org/html/rfc3676#section-4.3

   There is a long-standing convention in Usenet news which also
   commonly appears in Internet mail of using &quot;-- &quot; as the separator
   line between the body and the signature of a message.  When
   generating a Format=Flowed message containing a Usenet-style
   separator before the signature, the separator line is sent as-is.
   This is a special case; an (optionally quoted or quoted and stuffed)
   line consisting of DASH DASH SP is neither fixed nor flowed.

IMP correctly sends this separator (i.e. in flowed mode, we do NOT add an additional space at the end of the line).</description> 
   <pubDate>Tue, 04 Feb 2014 05:36:20 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12952#t82245</link> 
  </item> 
   
  <item> 
   <title>&gt; IMP correctly sends this separator (i.e. in flowed mode, w</title> 
   <description>&gt; IMP correctly sends this separator (i.e. in flowed mode, we do NOT 
&gt; add an additional space at the end of the line).

Meaning IMP sends &quot;--[SP]&quot;, not &quot;--[SP][SP]&quot; as would be expected under the other flowed rules.</description> 
   <pubDate>Tue, 04 Feb 2014 05:37:43 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12952#t82246</link> 
  </item> 
   
  <item> 
   <title>&quot;--[SP]&quot; is just the problem. To make thunderbird/enigmail r</title> 
   <description>&quot;--[SP]&quot; is just the problem. To make thunderbird/enigmail run pgp validation successfully you have to deselecet the usenet style signature tag. For the user this dependency is not obvious and causes mistrust to the horde/pgp-functions.

Thunderbird/Enigmal refers to RFC3156 and Horde quotes from RFC3676 and the problem persists.</description> 
   <pubDate>Sat, 08 Feb 2014 12:38:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12952#t82292</link> 
  </item> 
   
  <item> 
   <title>&gt; &quot;--[SP]&quot; is just the problem. To make thunderbird/enigmail</title> 
   <description>&gt; &quot;--[SP]&quot; is just the problem. To make thunderbird/enigmail run pgp 
&gt; validation successfully you have to deselecet the usenet style 
&gt; signature tag. For the user this dependency is not obvious and causes 
&gt; mistrust to the horde/pgp-functions.

Why do you have to do this?  There&#039;s no reason to.  In fact, we could send signature separators as &quot;--[SP][SP][SP][SP][SP][SP][SP]&quot; if we wanted to.  It&#039;s totally irrelevant.  There is no limitation on trailing spaces within the actual PGP-MIME data itself.  (There&#039;s a limitation on trailing spaces **AFTER** content-transfer encoding has been employed.  But that&#039;s a totally different topic, and not an issue here since we protect trailing spaces by using q-p encoding.)

&gt; Thunderbird/Enigmal refers to RFC3156 and Horde quotes from RFC3676 
&gt; and the problem persists.

Please read 3676.  It refers to precisely this issue, while directly referencing 3156.  In short, there is nothing wrong with trailing spaces for ANY data (let alone signature separators) as long as you are using OpenPGP-MIME (instead of raw OpenPGP format).</description> 
   <pubDate>Mon, 10 Feb 2014 05:50:59 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12952#t82294</link> 
  </item> 
   
  <item> 
   <title>This is a good time to move the logic ensuring the text part</title> 
   <description>This is a good time to move the logic ensuring the text parts are Q-P encoded from the MUA into the library itself, if just for abstraction purposes and for cleaner code.

But the point remains that trailing spaces remain perfectly legal and expected in OpenPGP-MIME signed data.</description> 
   <pubDate>Mon, 10 Feb 2014 06:30:14 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12952#t82295</link> 
  </item> 
   
  <item> 
   <title>After some tests with plain text mail encoding and PGP it sh</title> 
   <description>After some tests with plain text mail encoding and PGP it shows that automatically flowtext inserted line breaks will also destroy signature detection in thunderbird.

E.g. the phrase &quot;[SP]gestern[SP]bei[SP]&quot; got broken to  &quot;[SP]geste=[LF][SP][SP][LF]rn[LF]bei[SP]&quot; (hex: 20 67 65 73  74 65 3d 0a 72 6e 20 20 0a 62 65 69 20 )

For me the problem became more serious because plain text encoding with pgp seems to be not usable in combination with thunderbird reception.  My workaround is to use html encoding.</description> 
   <pubDate>Sat, 15 Feb 2014 15:46:33 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12952#t82383</link> 
  </item> 
   
  <item> 
   <title>&gt; E.g. the phrase &quot;[SP]gestern[SP]bei[SP]&quot; got broken to  
</title> 
   <description>&gt; E.g. the phrase &quot;[SP]gestern[SP]bei[SP]&quot; got broken to  
&gt; &quot;[SP]geste=[LF][SP][SP][LF]rn[LF]bei[SP]&quot; (hex: 20 67 65 73  74 65 3d 
&gt; 0a 72 6e 20 20 0a 62 65 69 20 )

What version of PHP?  The PHP quoted-stream stream filter was broken until recently - I provided a stream of patches upstream to PHP to fix the issue.

i.e. this sounds exactly like this issue:

commit 600d6deef9c8983eb8023171c6c5ae90ca60b6c1
Author: Michael M Slusarz &lt;slusarz@curecanti.org&gt;
Date:   Thu Feb 7 12:37:52 2013 -0700

    Fix #64166: quoted-printable-encode stream filter incorrectly discarding whitespace

    If trailing whitespace on a line is detected, mark the linebreak as a
    soft linebreak.

You should be using at least PHP 5.4.25 when testing.</description> 
   <pubDate>Tue, 25 Feb 2014 06:53:27 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12952#t82451</link> 
  </item> 
   
  <item> 
   <title>You need at least PHP 5.4.17/5.5.0 (Bug #64166):
http://www</title> 
   <description>You need at least PHP 5.4.17/5.5.0 (Bug #64166):
http://www.php.net/ChangeLog-5.php#5.4.17
https://bugs.php.net/bug.php?id=64166

And due to partial regression introduced with original fix, you really need at least 5.4.20/5.5.4 to work properly:
http://www.php.net/ChangeLog-5.php#5.4.20
https://bugs.php.net/bug.php?id=65483</description> 
   <pubDate>Tue, 25 Feb 2014 06:58:48 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12952#t82452</link> 
  </item> 
   
  <item> 
   <title>My php version is 5.4.4 (Debian 7) - looks like the problem </title> 
   <description>My php version is 5.4.4 (Debian 7) - looks like the problem is related to this version.</description> 
   <pubDate>Tue, 25 Feb 2014 18:08:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12952#t82462</link> 
  </item> 
   
  <item> 
   <title>&gt; My php version is 5.4.4 (Debian 7) - looks like the proble</title> 
   <description>&gt; My php version is 5.4.4 (Debian 7) - looks like the problem is 
&gt; related to this version.

Are you going to be able to upgrade to test?  Otherwise, I will close this ticket.</description> 
   <pubDate>Thu, 27 Feb 2014 06:23:43 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12952#t82474</link> 
  </item> 
   
  <item> 
   <title>Currently i have no test system available to run an upgraded</title> 
   <description>Currently i have no test system available to run an upgraded php. Please close the ticket and thanks for your support.  </description> 
   <pubDate>Thu, 27 Feb 2014 18:28:22 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12952#t82490</link> 
  </item> 
   
  <item> 
   <title>This issue persists.
Could you please check the most recent</title> 
   <description>This issue persists.
Could you please check the most recent comments on
http://sourceforge.net/p/enigmail/bugs/248/
and consider reopening this issue?</description> 
   <pubDate>Wed, 24 Sep 2014 18:20:20 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12952#t85900</link> 
  </item> 
   
  <item> 
   <title>What is there to reopen?  As this ticket history indicates, </title> 
   <description>What is there to reopen?  As this ticket history indicates, the only issue would be that you are using a broken version of PHP.

I can verify there are no issues with sending messages with a current version of IMP using a non-broken PHP version.</description> 
   <pubDate>Wed, 24 Sep 2014 18:27:25 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12952#t85901</link> 
  </item> 
   
  <item> 
   <title>Sorry, I read the ticket from top to bottom, so I thought th</title> 
   <description>Sorry, I read the ticket from top to bottom, so I thought that the php version was not the solution. This is really a strange order for the comments. I will check the php version.

Anyway, I still think that this should be fixed in Horde. Sometimes it is not possible to update php on managed servers. In my humble opinion, Horde should not create broken signatures then. It should either say that creating signatures is not supported with this version of php, or there should be a workaround which e.g. removes spaces before signing or whatever. However, creating broken signatures is really a bad thing to do.</description> 
   <pubDate>Wed, 24 Sep 2014 21:31:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12952#t85912</link> 
  </item> 
   
  <item> 
   <title>&gt; Anyway, I still think that this should be fixed in Horde. </title> 
   <description>&gt; Anyway, I still think that this should be fixed in Horde. Sometimes 
&gt; it is not possible to update php on managed servers

There are two alternatives:

1.) Update PHP.  The issue has been fixed.  This requires no further development work.

2.) Write a new quoted-printable encoding backend.  Not only would this be *many* times less efficient than the PHP C-based version, but it is unneeded (see #1), but it would require significant developer resources to do something that has already been fixed.

If someone wants to pay me to do option 2, I would gladly do it.  I don&#039;t see how it is my (or anybody else&#039;s) responsibility to do this though when the issue has already been fixed the correct way (option 1).  (see, e.g., the current releases of PHP, which have totally broken SSL behavior.  The correct resolution is to fix PHP, not for us to try to workaround this behavior)</description> 
   <pubDate>Thu, 25 Sep 2014 00:23:22 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12952#t85915</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
