<?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>S/MIME signed messages cannot be verified if body contains 8-bit characters</title> 
  <pubDate>Fri, 10 Apr 2026 18:48:10 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/11058</link> 
  <atom:link rel="self" type="application/rss+xml" title="S/MIME signed messages cannot be verified if body contains 8-bit characters" href="https://bugs.horde.org/ticket/11058/rss" /> 
  <description>S/MIME signed messages cannot be verified if body contains 8-bit characters</description> 
 
   
   
  <item> 
   <title>S/MIME signed messages cannot be verified if body contains 8</title> 
   <description>S/MIME signed messages cannot be verified if body contains 8-bit character.

It seems, that a &#039;Content-Transfer-Encoding: 8bit&#039; header is added after signing.</description> 
   <pubDate>Wed, 07 Mar 2012 14:45:46 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11058#t70620</link> 
  </item> 
   
  <item> 
   <title>&gt; S/MIME signed messages cannot be verified if body contains</title> 
   <description>&gt; S/MIME signed messages cannot be verified if body contains 8-bit character.
&gt;
&gt; It seems, that a &#039;Content-Transfer-Encoding: 8bit&#039; header is added 
&gt; after signing.

We don&#039;t add this.  Sounds like a MTA is adding this somewhere in transit.</description> 
   <pubDate>Wed, 07 Mar 2012 20:24:07 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11058#t70623</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; S/MIME signed messages cannot be verified if body contain</title> 
   <description>&gt;&gt; S/MIME signed messages cannot be verified if body contains 8-bit character.
&gt;&gt;
&gt;&gt; It seems, that a &#039;Content-Transfer-Encoding: 8bit&#039; header is added
&gt;&gt; after signing.
&gt;
&gt; We don&#039;t add this.  Sounds like a MTA is adding this somewhere in transit.
Hi Michael,
it&#039;s not so simple. I test this internally, so only one MTA(postfix) is involved.
I&#039;m also not sure, that this header is the reason for the verification failure.
However, if it is added by the MTA, shouldn&#039;t it be added by IMP before signing?
I&#039;ve attached 3 complete Messages.
mail-1 contains only the letter &#039;a&#039; (and my signature) and can be verified.
mail-2 contains only the letter &#039;ä&#039; (and my signature) and cannot be verified.
mail-3 is what imp appended to my Sent-folder(when sending mail-2), this one can be verified.
</description> 
   <pubDate>Thu, 08 Mar 2012 06:46:19 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11058#t70637</link> 
  </item> 
   
  <item> 
   <title>
</title> 
   <description>
</description> 
   <pubDate>Thu, 08 Mar 2012 06:48:05 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11058#t70638</link> 
  </item> 
   
  <item> 
   <title>The problem is not in postfix but in Horde/Mime/Part.php, fu</title> 
   <description>The problem is not in postfix but in Horde/Mime/Part.php, function send(), starting on line 1669.

There is code that detects if MTA supports 8BITMIME (RFC 1652) or BINARYMIME (RFC 3030) extensions and re-encodes the mimePart.

A S/MIME part cannot be reencoded from quoted-printable to anything else because it breaks the signature.

One of possible solutions would be to extend the send function by giving it a new boolean parameter to use only 7bit encoding (quoted-printable) for S/MIME signed messages and set this parameter on sign time.</description> 
   <pubDate>Thu, 15 Mar 2012 10:06:31 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11058#t70722</link> 
  </item> 
   
  <item> 
   <title>Until this is fixed you can use the attached workaround.</title> 
   <description>Until this is fixed you can use the attached workaround.</description> 
   <pubDate>Mon, 19 Mar 2012 11:06:17 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11058#t70749</link> 
  </item> 
   
  <item> 
   <title>&gt; Until this is fixed you can use the attached workaround.
</title> 
   <description>&gt; Until this is fixed you can use the attached workaround.
Thank you, after your last comment,i set &#039;encode&#039; =&gt; self::ENCODE_7BIT;
in the following toString call as a workarround, which is essentially the same (changes a single line only :-))</description> 
   <pubDate>Mon, 19 Mar 2012 12:10:07 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11058#t70750</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

commit 86d6dec3184a</title> 
   <description>Changes have been made in Git (master):

commit 86d6dec3184a2bd470f165f5aebbf9751fefee58
Author: Michael M Slusarz &lt;slusarz@horde.org&gt;
Date:   Tue Mar 27 23:43:16 2012 -0600

    [mms] Add option to allow encoding options to be defined for Horde_Mime_Part#send() (Bug #11058).

 framework/Mime/lib/Horde/Mime/Part.php |   40 ++++++++++++++++++++------------
 framework/Mime/package.xml             |   12 ++++----
 2 files changed, 31 insertions(+), 21 deletions(-)

http://git.horde.org/horde-git/-/commit/86d6dec3184a2bd470f165f5aebbf9751fefee58</description> 
   <pubDate>Wed, 28 Mar 2012 05:48:15 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11058#t70927</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

commit 53f124c40670</title> 
   <description>Changes have been made in Git (master):

commit 53f124c40670b6a1b25b7bf06fe9c904bbe1e263
Author: Michael M Slusarz &lt;slusarz@horde.org&gt;
Date:   Tue Mar 27 23:48:02 2012 -0600

    [mms] Ensure that PGP &amp; S/MIME signed message bodies are not altered after the signature is calculated (Bug #11058).

 imp/docs/CHANGES    |    2 ++
 imp/lib/Compose.php |   18 +++++++++++++++---
 imp/package.xml     |    4 +++-
 3 files changed, 20 insertions(+), 4 deletions(-)

http://git.horde.org/horde-git/-/commit/53f124c40670b6a1b25b7bf06fe9c904bbe1e263</description> 
   <pubDate>Wed, 28 Mar 2012 05:48:19 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11058#t70928</link> 
  </item> 
   
  <item> 
   <title>Do these commits fix things?</title> 
   <description>Do these commits fix things?</description> 
   <pubDate>Wed, 28 Mar 2012 05:48:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11058#t70929</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

commit 054d6c36fd45</title> 
   <description>Changes have been made in Git (master):

commit 054d6c36fd451c0711c2eb45a1653f0b7e48c018
Author: Michael M Slusarz &lt;slusarz@horde.org&gt;
Date:   Tue Mar 27 23:56:19 2012 -0600

    Bug #11058: Encrypted messages will be base64 encoded, so ok to send 8bit/binary, even if signed.

 imp/lib/Compose.php |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

http://git.horde.org/horde-git/-/commit/054d6c36fd451c0711c2eb45a1653f0b7e48c018</description> 
   <pubDate>Wed, 28 Mar 2012 05:56:27 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11058#t70931</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (develop):

commit 86d6dec3184</title> 
   <description>Changes have been made in Git (develop):

commit 86d6dec3184a2bd470f165f5aebbf9751fefee58
Author: Michael M Slusarz &lt;slusarz@horde.org&gt;
Date:   Tue Mar 27 23:43:16 2012 -0600

    [mms] Add option to allow encoding options to be defined for Horde_Mime_Part#send() (Bug #11058).

 framework/Mime/lib/Horde/Mime/Part.php |   40 ++++++++++++++++++++------------
 framework/Mime/package.xml             |   12 ++++----
 2 files changed, 31 insertions(+), 21 deletions(-)

http://git.horde.org/horde-git/-/commit/86d6dec3184a2bd470f165f5aebbf9751fefee58</description> 
   <pubDate>Wed, 28 Mar 2012 05:57:33 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11058#t70932</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (develop):

commit 53f124c4067</title> 
   <description>Changes have been made in Git (develop):

commit 53f124c40670b6a1b25b7bf06fe9c904bbe1e263
Author: Michael M Slusarz &lt;slusarz@horde.org&gt;
Date:   Tue Mar 27 23:48:02 2012 -0600

    [mms] Ensure that PGP &amp; S/MIME signed message bodies are not altered after the signature is calculated (Bug #11058).

 imp/docs/CHANGES    |    2 ++
 imp/lib/Compose.php |   18 +++++++++++++++---
 imp/package.xml     |    4 +++-
 3 files changed, 20 insertions(+), 4 deletions(-)

http://git.horde.org/horde-git/-/commit/53f124c40670b6a1b25b7bf06fe9c904bbe1e263</description> 
   <pubDate>Wed, 28 Mar 2012 05:57:37 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11058#t70933</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (develop):

commit 054d6c36fd4</title> 
   <description>Changes have been made in Git (develop):

commit 054d6c36fd451c0711c2eb45a1653f0b7e48c018
Author: Michael M Slusarz &lt;slusarz@horde.org&gt;
Date:   Tue Mar 27 23:56:19 2012 -0600

    Bug #11058: Encrypted messages will be base64 encoded, so ok to send 8bit/binary, even if signed.

 imp/lib/Compose.php |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

http://git.horde.org/horde-git/-/commit/054d6c36fd451c0711c2eb45a1653f0b7e48c018</description> 
   <pubDate>Wed, 28 Mar 2012 05:57:40 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11058#t70934</link> 
  </item> 
   
  <item> 
   <title>

&quot;array_key_exists($opts[&#039;encode&#039;])&quot; should be &quot;array_key</title> 
   <description>

&quot;array_key_exists($opts[&#039;encode&#039;])&quot; should be &quot;array_key_exists(&#039;encode&#039;,$opts)&quot;

beside this it seems ok</description> 
   <pubDate>Wed, 28 Mar 2012 07:33:44 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11058#t70941</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

commit d9f98a4b9fed</title> 
   <description>Changes have been made in Git (master):

commit d9f98a4b9feddf1f89c1f2439295563a1d8a453a
Author: Michael M Slusarz &lt;slusarz@horde.org&gt;
Date:   Wed Mar 28 01:40:03 2012 -0600

    Bug #11058: Fix bad method call

 framework/Mime/lib/Horde/Mime/Part.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

http://git.horde.org/horde-git/-/commit/d9f98a4b9feddf1f89c1f2439295563a1d8a453a</description> 
   <pubDate>Wed, 28 Mar 2012 07:40:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11058#t70942</link> 
  </item> 
   
  <item> 
   <title>&gt; &quot;array_key_exists($opts[&#039;encode&#039;])&quot; should be 
&gt; &quot;array_k</title> 
   <description>&gt; &quot;array_key_exists($opts[&#039;encode&#039;])&quot; should be 
&gt; &quot;array_key_exists(&#039;encode&#039;,$opts)&quot;

Yeah, my fault.  I switched the method of sanity checking halfway through and forgot to change this back.

Reopen this ticket if you see any further issues.</description> 
   <pubDate>Wed, 28 Mar 2012 07:43:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11058#t70943</link> 
  </item> 
   
  <item> 
   <title>I can confirm this working, too.</title> 
   <description>I can confirm this working, too.</description> 
   <pubDate>Wed, 28 Mar 2012 07:56:18 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11058#t70944</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (develop):

commit d9f98a4b9fe</title> 
   <description>Changes have been made in Git (develop):

commit d9f98a4b9feddf1f89c1f2439295563a1d8a453a
Author: Michael M Slusarz &lt;slusarz@horde.org&gt;
Date:   Wed Mar 28 01:40:03 2012 -0600

    Bug #11058: Fix bad method call

 framework/Mime/lib/Horde/Mime/Part.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

http://git.horde.org/horde-git/-/commit/d9f98a4b9feddf1f89c1f2439295563a1d8a453a</description> 
   <pubDate>Wed, 28 Mar 2012 17:33:55 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11058#t70953</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
