<?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>Don&#039;t override sticky OPTIONS values with default values.</title> 
  <pubDate>Wed, 08 Apr 2026 03:27:15 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/12970</link> 
  <atom:link rel="self" type="application/rss+xml" title="Don&#039;t override sticky OPTIONS values with default values." href="https://bugs.horde.org/ticket/12970/rss" /> 
  <description>Don&#039;t override sticky OPTIONS values with default values.</description> 
 
   
   
  <item> 
   <title>With the latest release of all the core modules, I did 4 tes</title> 
   <description>With the latest release of all the core modules, I did 4 tests:
#1 Send a S/MIME signed message from Thunderbird
#2 Send a S/MIME encrypted message from Thunderbird
#3 Send a S/MIME signed message from a BlackBerry 10 device
#4 Send a S/MIME encrypted message from a BlackBerry 10 device

I then used Thunderbird, IMP and a BlackBerry 10 device to check the messages.

On Thunderbird
No problem with any of the messages. They are identified as signed or encrypted and are successfully verified/decrypted.

On IMP
- Signed message #1 shows this error message: &quot;Message verified successfully but the signer&#039;s certificate could not be verified&quot;. The certificate is in the addressbook and the public key is stored in IMP though.
- Encrypted message #2 is successfully decrypted.
- Signed message #3 shows this error message: &quot;Verification failed - an unknown error has occurred.&quot;. The public key is not in the keyring and IMP doesn&#039;t offer to install it (but that could be because of a problem with Turba&#039;s default addressbook)
- Encrypted message #4 shows: &quot;Could not decrypt S/MIME data.&quot;. No error in the logs.

On BlackBerry 10 device via ActiveSync
- None of the messages are identified as SMIME as far as I can tell
- Encrypted message contains an attachment which is detected as a  &quot;MIME Encrypted Message&quot; and there is a green &quot;tick&quot; indicating it&#039;s valid, but when tapping on it, the device indicates that there is no viewer for it on the device.
</description> 
   <pubDate>Wed, 12 Feb 2014 14:15:44 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t82361</link> 
  </item> 
   
  <item> 
   <title>I&#039;ll try to add some debug messages from the logs later on a</title> 
   <description>I&#039;ll try to add some debug messages from the logs later on and will compare raw messages to see if I can find differences.</description> 
   <pubDate>Wed, 12 Feb 2014 14:18:04 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t82362</link> 
  </item> 
   
  <item> 
   <title>&gt; On BlackBerry 10 device via ActiveSync
&gt; - None of the me</title> 
   <description>&gt; On BlackBerry 10 device via ActiveSync
&gt; - None of the messages are identified as SMIME as far as I can tell
&gt; - Encrypted message contains an attachment which is detected as a  
&gt; &quot;MIME Encrypted Message&quot; and there is a green &quot;tick&quot; indicating it&#039;s 
&gt; valid, but when tapping on it, the device indicates that there is no 
&gt; viewer for it on the device.

Is the BB10 managed through a BDS profile, or just pure ActiveSync connected to Horde? If the latter, SMIME is not available, as it is only available, as SMIME is only available when it&#039;s a managed device through BES, AFAIK. If the former, I really don&#039;t know, as I don&#039;t have access to BES to test.</description> 
   <pubDate>Wed, 12 Feb 2014 15:47:53 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t82363</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; On BlackBerry 10 device via ActiveSync
&gt;&gt; - None of the </title> 
   <description>&gt;&gt; On BlackBerry 10 device via ActiveSync
&gt;&gt; - None of the messages are identified as SMIME as far as I can tell
&gt;&gt; - Encrypted message contains an attachment which is detected as a
&gt;&gt; &quot;MIME Encrypted Message&quot; and there is a green &quot;tick&quot; indicating it&#039;s
&gt;&gt; valid, but when tapping on it, the device indicates that there is no
&gt;&gt; viewer for it on the device.
&gt;
&gt; Is the BB10 managed through a BDS profile, or just pure ActiveSync 
&gt; connected to Horde? If the latter, SMIME is not available, as it is 
&gt; only available, as SMIME is only available when it&#039;s a managed device 
&gt; through BES, AFAIK. If the former, I really don&#039;t know, as I don&#039;t 
&gt; have access to BES to test.
The device is managed through BlackBerry&#039;s new BES Cloud solution which supports SMIME.

I could provide a test account which works with clients on BlackBerry, Android and iOS or you could try registering for a trial since you&#039;re developing software which BES can connect to.
</description> 
   <pubDate>Wed, 12 Feb 2014 16:59:00 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t82365</link> 
  </item> 
   
  <item> 
   <title>Headers from TB
Content-Type: application/pkcs7-mime; name=</title> 
   <description>Headers from TB
Content-Type: application/pkcs7-mime; name=&quot;smime.p7m&quot;; smime-type=enveloped-data
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=&quot;smime.p7m&quot;
Content-Description: S/MIME Encrypted Message

Headers from BB
Content-Type: application/x-pkcs7-mime; name=smime.p7m;
 smime-type=enveloped-data
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=smime.p7m

I notice a different content type, the lack of quotes and the carriage return in the middle of the Content-Type header in the BB version

Messages themselves are presented differently. It&#039;s a block in the TB message, it&#039;s one line in the BB message.</description> 
   <pubDate>Wed, 12 Feb 2014 17:12:00 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t82366</link> 
  </item> 
   
  <item> 
   <title>I&#039;ve looked at the debug logs

The problems with signature</title> 
   <description>I&#039;ve looked at the debug logs

The problems with signature verification were due to an open_basedir restriction since the OpenSSL CA certs were not in the path.

When IMP fails to decrypt a message, there is nothing at all in the logs.</description> 
   <pubDate>Wed, 12 Feb 2014 18:13:31 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t82367</link> 
  </item> 
   
  <item> 
   <title>I did a bunch of new tests using the latest version of the l</title> 
   <description>I did a bunch of new tests using the latest version of the libraries.
All accounts are using Horde&#039;s activesync v2.12.4
&quot;Sent message&quot; is the one in the Sent box

Sending from Thunderbird
--------------------------------------------------
Sent message can be decrypted by IMP

Received message can be decrypted by IMP

Sent message CANNOT be decrypted by the phone

* NEW* Received message can now be decrypted by the phone

Sending from IMP
----------------------------------------
Sent message can by decrypted by IMP

Received message can be decrypted by IMP

Sent message CANNOT by decrypted by the phone: &quot;The S/MIME message can&#039;t be opened because it isn&#039;t valid&quot;

Received message CANNOT be decrypted by phone. I get the MIME Encrypted message attachment which can&#039;t be viewed

Sending from Phone
---------------------------------------
Sent message CANNOT by decrypted by IMP: Here is what&#039;s shown in IMP:
&quot;smime.p7m (10 KB) 
The data in this part has been encrypted via S/MIME.
application/x-pkcs7-mime X-pkcs7-mime (4 KB) 
The data in this part has been encrypted via S/MIME.
Could not decrypt S/MIME data.&quot;

Received message CANNOT be decrypted by IMP: &quot;Could not decrypt S/MIME data.&quot;

Sent message CANNOT by decrypted by the phone: The attachment is named smime.p7m and there is no viewer for it on the device.

Received message CANNOT be decrypted by phone: The attachment is named smime.p7m and there is no viewer for it on the device.


All messages can be decrypted by Thunderbird, so it seems the messages are correctly assembled. Some are just not properly retrieved by either IMP or the phone.

The changelog for IMP 6.1.7 mentions &quot; Improved support for broken S/MIME messages.&quot;. If you feel BlackBerry&#039;s implementation is breaking RFCs or common practice, let me know and I&#039;ll pass along any feedback you have.
</description> 
   <pubDate>Fri, 07 Mar 2014 16:00:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t82641</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

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

commit 1082153498149b1653ab4f2af67eff0d86c62de8
Author: Michael J Rubinsky &lt;mrubinsk@horde.org&gt;
Date:   Mon Apr 7 11:55:50 2014 -0400

    Parse x-pkcs7-mime as well.
    
    Possible fix for Bug: 12970

 .../lib/Horde/ActiveSync/Imap/Message.php          |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

http://github.com/horde/horde/commit/1082153498149b1653ab4f2af67eff0d86c62de8</description> 
   <pubDate>Mon, 07 Apr 2014 15:57:25 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t83221</link> 
  </item> 
   
  <item> 
   <title>Does this fix at least the ActiveSync client related problem</title> 
   <description>Does this fix at least the ActiveSync client related problems with verifying?</description> 
   <pubDate>Mon, 07 Apr 2014 15:58:43 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t83222</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

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

commit 71ffec6a7d5d9a1bd626febdb3bec09e9d955451
Author: Michael J Rubinsky &lt;mrubinsk@horde.org&gt;
Date:   Mon Apr 7 12:01:48 2014 -0400

    One more place to accept the deprecated x-pkcs7-* subtypes.
    
    Bug: 12970

 .../lib/Horde/ActiveSync/Imap/Message.php          |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

http://github.com/horde/horde/commit/71ffec6a7d5d9a1bd626febdb3bec09e9d955451</description> 
   <pubDate>Mon, 07 Apr 2014 16:02:54 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t83223</link> 
  </item> 
   
  <item> 
   <title>&gt; Does this fix at least the ActiveSync client related probl</title> 
   <description>&gt; Does this fix at least the ActiveSync client related problems with verifying?

This seems to fix one use case.
Messages sent from the phone which are placed in the sent folder can now be decrypted by the phone.</description> 
   <pubDate>Mon, 07 Apr 2014 16:51:34 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t83226</link> 
  </item> 
   
  <item> 
   <title>In Summary:
- Messages sent from Thunderbird or the phone c</title> 
   <description>In Summary:
- Messages sent from Thunderbird or the phone can be decrypted from the phone (Yeah! :))
- Messages sent from IMP can&#039;t be decrypted by the phone
- Messages sent from the phone can&#039;t be decrypted by IMP</description> 
   <pubDate>Mon, 07 Apr 2014 17:10:03 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t83227</link> 
  </item> 
   
  <item> 
   <title>&gt; In Summary:
&gt; - Messages sent from Thunderbird or the pho</title> 
   <description>&gt; In Summary:
&gt; - Messages sent from Thunderbird or the phone can be decrypted from 
&gt; the phone (Yeah! :))
&gt; - Messages sent from IMP can&#039;t be decrypted by the phone
&gt; - Messages sent from the phone can&#039;t be decrypted by IMP

Can you send me an encrypted email from both IMP and from your device?

I still don&#039;t have access to a BB that supports s/mime, but I&#039;ll at least try to look at the messages and see what I can figure out. FWIW though, we pass the raw mime data directly when it&#039;s signed/encrypted so I&#039;m not sure what can be done...</description> 
   <pubDate>Mon, 07 Apr 2014 17:27:02 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t83228</link> 
  </item> 
   
  <item> 
   <title>&gt; Can you send me an encrypted email from both IMP and from </title> 
   <description>&gt; Can you send me an encrypted email from both IMP and from your device?
&gt;
&gt; I still don&#039;t have access to a BB that supports s/mime, but I&#039;ll at 
&gt; least try to look at the messages and see what I can figure out. FWIW 
&gt; though, we pass the raw mime data directly when it&#039;s signed/encrypted 
&gt; so I&#039;m not sure what can be done...

I need your public key in order to send you an encrypted message. Where do I find it?</description> 
   <pubDate>Wed, 28 May 2014 18:13:17 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t83925</link> 
  </item> 
   
  <item> 
   <title>&gt; I need your public key in order to send you an encrypted m</title> 
   <description>&gt; I need your public key in order to send you an encrypted message. 
&gt; Where do I find it?

Sorry. Must have missed this comment. I&#039;ll send you a signed email directly and you can import it from that.</description> 
   <pubDate>Mon, 16 Jun 2014 15:01:03 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t84160</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; I need your public key in order to send you an encrypted </title> 
   <description>&gt;&gt; I need your public key in order to send you an encrypted message.
&gt;&gt; Where do I find it?
&gt;
&gt; Sorry. Must have missed this comment. I&#039;ll send you a signed email 
&gt; directly and you can import it from that.

OK, I&#039;ve just sent you an encrypted message from a .co.uk domain.</description> 
   <pubDate>Mon, 16 Jun 2014 18:14:36 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t84162</link> 
  </item> 
   
  <item> 
   <title>Can you also send me one not sent from a BB client?</title> 
   <description>Can you also send me one not sent from a BB client?</description> 
   <pubDate>Mon, 16 Jun 2014 19:08:58 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t84163</link> 
  </item> 
   
  <item> 
   <title>I&#039;ve just checked 
framework/ActiveSync/lib/Horde/ActiveSyn</title> 
   <description>I&#039;ve just checked 
framework/ActiveSync/lib/Horde/ActiveSync/Imap/Adapter.php

The default MessageClass is IPM.Note
If the message is signed, then it&#039;s set to IPM.Note.SMIME.MultipartSigned
but it&#039;s never set to IPM.Note.SMIME which I think is how encrypted messages are identified.

iOS probably ignores that element, but I think BlackBerry 10 is using it in order to determine how to parse the message.</description> 
   <pubDate>Thu, 23 Oct 2014 23:39:50 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86159</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

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

commit 5a29cb2215a357c9674147615399da22f05b260c
Author: Michael J Rubinsky &lt;mrubinsk@horde.org&gt;
Date:   Fri Oct 24 16:49:16 2014 -0400

    Bug: 12970 Differentiate between signed and encrypted messages.

 .../lib/Horde/ActiveSync/Imap/Adapter.php          |    6 ++-
 .../lib/Horde/ActiveSync/Imap/Message.php          |   26 ++++++++++--
 framework/ActiveSync/lib/Horde/ActiveSync/Mime.php |   41 +++++++++++++++----
 3 files changed, 58 insertions(+), 15 deletions(-)

http://github.com/horde/horde/commit/5a29cb2215a357c9674147615399da22f05b260c</description> 
   <pubDate>Fri, 24 Oct 2014 20:52:42 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86161</link> 
  </item> 
   
  <item> 
   <title>Does this fix it for you then?</title> 
   <description>Does this fix it for you then?</description> 
   <pubDate>Fri, 24 Oct 2014 20:53:27 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86162</link> 
  </item> 
   
  <item> 
   <title>No, not yet.
I&#039;ve sent an encrypted message from Horde and </title> 
   <description>No, not yet.
I&#039;ve sent an encrypted message from Horde and the MessageClass is still IPM.Note

INFO: [8022] Horde_Core_ActiveSync_Driver::getMessage(INBOX, 3301)
INFO: [8022] Sending HTML Message.
INFO: FETCHING VERB
INFO: RETURNING VERB
DEBUG: [8022] O     &lt;Commands&gt;
DEBUG: [8022] O      &lt;Add&gt;
DEBUG: [8022] O       &lt;ServerEntryId&gt;
DEBUG: [8022] O        3301
DEBUG: [8022] O       &lt;/ServerEntryId&gt;
DEBUG: [8022] O       &lt;Data&gt;
DEBUG: [8022] O        &lt;POOMMAIL:To&gt;
DEBUG: [8022] O         recipient@domain.tld
DEBUG: [8022] O        &lt;/POOMMAIL:To&gt;
DEBUG: [8022] O        &lt;POOMMAIL:From&gt;
DEBUG: [8022] O         sender@domain.tld
DEBUG: [8022] O        &lt;/POOMMAIL:From&gt;
DEBUG: [8022] O        &lt;POOMMAIL:Subject&gt;
DEBUG: [8022] O         hordesmimepatch
DEBUG: [8022] O        &lt;/POOMMAIL:Subject&gt;
DEBUG: [8022] O        &lt;POOMMAIL:Reply-To&gt;
DEBUG: [8022] O         recipient@domain.tld
DEBUG: [8022] O        &lt;/POOMMAIL:Reply-To&gt;
DEBUG: [8022] O        &lt;POOMMAIL:DateReceived&gt;
DEBUG: [8022] O         2014-10-24T22:54:17.000Z
DEBUG: [8022] O        &lt;/POOMMAIL:DateReceived&gt;
DEBUG: [8022] O        &lt;POOMMAIL:DisplayTo&gt;
DEBUG: [8022] O         recipient@domain.tld
DEBUG: [8022] O        &lt;/POOMMAIL:DisplayTo&gt;
DEBUG: [8022] O        &lt;POOMMAIL:ThreadTopic&gt;
DEBUG: [8022] O         hordesmimepatch
DEBUG: [8022] O        &lt;/POOMMAIL:ThreadTopic&gt;
DEBUG: [8022] O        &lt;POOMMAIL:Importance&gt;
DEBUG: [8022] O         1
DEBUG: [8022] O        &lt;/POOMMAIL:Importance&gt;
DEBUG: [8022] O        &lt;POOMMAIL:Read&gt;
DEBUG: [8022] O         0
DEBUG: [8022] O        &lt;/POOMMAIL:Read&gt;
DEBUG: [8022] O        &lt;POOMMAIL:MessageClass&gt;
DEBUG: [8022] O         IPM.Note
DEBUG: [8022] O        &lt;/POOMMAIL:MessageClass&gt;
DEBUG: [8022] O        &lt;POOMMAIL:InternetCPID&gt;
DEBUG: [8022] O         65001
DEBUG: [8022] O        &lt;/POOMMAIL:InternetCPID&gt;
DEBUG: [8022] O        &lt;AirSyncBase:NativeBodyType&gt;
DEBUG: [8022] O         1
DEBUG: [8022] O        &lt;/AirSyncBase:NativeBodyType&gt;
DEBUG: [8022] O        &lt;AirSyncBase:Attachments&gt;
DEBUG: [8022] O         &lt;AirSyncBase:Attachment&gt;
DEBUG: [8022] O          &lt;AirSyncBase:DisplayName&gt;
DEBUG: [8022] O           S/MIME Encrypted Message
DEBUG: [8022] O          &lt;/AirSyncBase:DisplayName&gt;
DEBUG: [8022] O          &lt;AirSyncBase:FileReference&gt;
DEBUG: [8022] O           INBOX:3301:1
DEBUG: [8022] O          &lt;/AirSyncBase:FileReference&gt;
DEBUG: [8022] O          &lt;AirSyncBase:Method&gt;
DEBUG: [8022] O           1
DEBUG: [8022] O          &lt;/AirSyncBase:Method&gt;
DEBUG: [8022] O          &lt;AirSyncBase:EstimatedDataSize&gt;
DEBUG: [8022] O           15351
DEBUG: [8022] O          &lt;/AirSyncBase:EstimatedDataSize&gt;
DEBUG: [8022] O          &lt;AirSyncBase:IsInline&gt;
DEBUG: [8022] O           1
DEBUG: [8022] O          &lt;/AirSyncBase:IsInline&gt;
DEBUG: [8022] O         &lt;/AirSyncBase:Attachment&gt;
DEBUG: [8022] O        &lt;/AirSyncBase:Attachments&gt;
DEBUG: [8022] O        &lt;POOMMAIL:Flag/&gt;
DEBUG: [8022] O        &lt;POOMMAIL:ContentClass&gt;
DEBUG: [8022] O         urn:content-classes:message
DEBUG: [8022] O        &lt;/POOMMAIL:ContentClass&gt;
DEBUG: [8022] O        &lt;POOMMAIL:Categories/&gt;
DEBUG: [8022] O       &lt;/Data&gt;
DEBUG: [8022] O      &lt;/Add&gt;
INFO: [8022] Updating state during change
DEBUG: [8022] O     &lt;/Commands&gt;

&gt; Does this fix it for you then?
</description> 
   <pubDate>Fri, 24 Oct 2014 23:09:59 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86163</link> 
  </item> 
   
  <item> 
   <title>Same MessageClass for a signed message: IPM.Note</title> 
   <description>Same MessageClass for a signed message: IPM.Note</description> 
   <pubDate>Sat, 25 Oct 2014 11:53:25 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86164</link> 
  </item> 
   
  <item> 
   <title>And that&#039;s the header for the encrypted message:

User-Age</title> 
   <description>And that&#039;s the header for the encrypted message:

User-Agent: Internet Messaging Program (IMP) H5 (6.2.2)
Content-Type: application/pkcs7-mime; smime-type=enveloped-data
Content-Description: S/MIME Encrypted Message
MIME-Version: 1.0
Content-Disposition: inline
Content-Transfer-Encoding: base64</description> 
   <pubDate>Sat, 25 Oct 2014 12:20:53 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86165</link> 
  </item> 
   
  <item> 
   <title>Can you post or email me directly both a signed and an encry</title> 
   <description>Can you post or email me directly both a signed and an encrypted message? All of my test emails work here, and the unit tests that detect if they are signed or encrypted currently pass.</description> 
   <pubDate>Sat, 25 Oct 2014 14:42:17 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86166</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

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

commit 9118988317a9e9b08bbd8b512df5c6e8da562ec2
Author: Michael J Rubinsky &lt;mrubinsk@horde.org&gt;
Date:   Sat Oct 25 10:47:01 2014 -0400

    Bug: 12970 More fixes for S/MIME handling in EAS.

 .../lib/Horde/ActiveSync/Imap/Adapter.php          |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

http://github.com/horde/horde/commit/9118988317a9e9b08bbd8b512df5c6e8da562ec2</description> 
   <pubDate>Sat, 25 Oct 2014 14:48:18 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86167</link> 
  </item> 
   
  <item> 
   <title>Nevermind. Can you see if THIS fixes it?</title> 
   <description>Nevermind. Can you see if THIS fixes it?</description> 
   <pubDate>Sat, 25 Oct 2014 14:48:42 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86168</link> 
  </item> 
   
  <item> 
   <title>Both signed and encrypted send from either Horde or the devi</title> 
   <description>Both signed and encrypted send from either Horde or the device have the same &quot;plain text&quot; MessageClass of IMP.Note, so it seems the ActiveSync &quot;parser&quot; is not detecting the message as being encrypted or signed.

Since my certs expired today, I need to see if this plays a role, but I doubt it. The next step would be for me to be able to trace which mime types are detected.

I&#039;m going to send you test emails as soon as I&#039;ve renewed the certs

&gt; Nevermind. Can you see if THIS fixes it?
</description> 
   <pubDate>Sat, 25 Oct 2014 15:13:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86169</link> 
  </item> 
   
  <item> 
   <title>Are you sure that the client is actually asking for a MIME m</title> 
   <description>Are you sure that the client is actually asking for a MIME message and not plaintext or html? </description> 
   <pubDate>Sat, 25 Oct 2014 17:19:16 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86171</link> 
  </item> 
   
  <item> 
   <title>Well, based on the logs posted below, the client gets an att</title> 
   <description>Well, based on the logs posted below, the client gets an attachment, so I&#039;m guessing it&#039;s asking for a MIME message?

Horde creates a S/MIME Encrypted Message attachement
The device creates a smime.p7m attach


&gt; Are you sure that the client is actually asking for a MIME message 
&gt; and not plaintext or html?
</description> 
   <pubDate>Sat, 25 Oct 2014 18:53:44 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86173</link> 
  </item> 
   
  <item> 
   <title>That&#039;s why I&#039;m asking. The logs below show an HTML message b</title> 
   <description>That&#039;s why I&#039;m asking. The logs below show an HTML message being sent, which doesn&#039;t support SMIME. The device must explicitly request a MIME message. E.g., this is the OPTIONS portion of a SYNC request the is NOT requesting a MIME message:

2014-10-25T14:48:23-04:00 DEBUG: [281] I     &lt;Options&gt;
2014-10-25T14:48:23-04:00 DEBUG: [281] I      &lt;FilterType&gt;
2014-10-25T14:48:23-04:00 DEBUG: [281] I        5
2014-10-25T14:48:23-04:00 DEBUG: [281] I      &lt;/FilterType&gt;
2014-10-25T14:48:23-04:00 DEBUG: [281] I      &lt;MIMETruncation&gt;
2014-10-25T14:48:23-04:00 DEBUG: [281] I        1
2014-10-25T14:48:23-04:00 DEBUG: [281] I      &lt;/MIMETruncation&gt;
2014-10-25T14:48:23-04:00 DEBUG: [281] I      &lt;MIMESupport&gt;
2014-10-25T14:48:23-04:00 DEBUG: [281] I        0
2014-10-25T14:48:23-04:00 DEBUG: [281] I      &lt;/MIMESupport&gt;
2014-10-25T14:48:23-04:00 DEBUG: [281] I      &lt;AirSyncBase:BodyPreference&gt;
2014-10-25T14:48:23-04:00 DEBUG: [281] I       &lt;AirSyncBase:Type&gt;
2014-10-25T14:48:23-04:00 DEBUG: [281] I         1
2014-10-25T14:48:23-04:00 DEBUG: [281] I       &lt;/AirSyncBase:Type&gt;
2014-10-25T14:48:23-04:00 DEBUG: [281] I       &lt;AirSyncBase:TruncationSize&gt;
2014-10-25T14:48:23-04:00 DEBUG: [281] I         500
2014-10-25T14:48:23-04:00 DEBUG: [281] I       &lt;/AirSyncBase:TruncationSize&gt;
2014-10-25T14:48:23-04:00 DEBUG: [281] I      &lt;/AirSyncBase:BodyPreference&gt;
2014-10-25T14:48:23-04:00 DEBUG: [281] I     &lt;/Options&gt;

The MIMESupport element is set to &#039;0&#039; - which means no mime support. The BodyPreference Type is set to &#039;1&#039;, which indicates plaintext. So the client is requesting only a plaintext representation of the message. No MIME and no S/MIME. This results in the following log snippits:

2014-10-25T14:48:23-04:00 INFO: [281] Horde_Core_ActiveSync_Driver::getMessage(INBOX, 255000)
2014-10-25T14:48:23-04:00 INFO: [281] Sending PLAINTEXT Message.
.
.
.
2014-10-25T14:48:23-04:00 DEBUG: [281] O        &lt;POOMMAIL:MessageClass&gt;
2014-10-25T14:48:23-04:00 DEBUG: [281] O         IPM.Note
2014-10-25T14:48:23-04:00 DEBUG: [281] O        &lt;/POOMMAIL:MessageClass&gt;
.
.
2014-10-25T14:48:23-04:00 DEBUG: [281] O        &lt;POOMMAIL:MessageClass&gt;
2014-10-25T14:48:23-04:00 DEBUG: [281] O         IPM.Note
2014-10-25T14:48:23-04:00 DEBUG: [281] O        &lt;/POOMMAIL:MessageClass&gt;
2014-10-25T14:48:23-04:00 DEBUG: [281] O        &lt;POOMMAIL:InternetCPID&gt;
2014-10-25T14:48:23-04:00 DEBUG: [281] O         65001
2014-10-25T14:48:23-04:00 DEBUG: [281] O        &lt;/POOMMAIL:InternetCPID&gt;
2014-10-25T14:48:23-04:00 DEBUG: [281] O        &lt;AirSyncBase:NativeBodyType&gt;
2014-10-25T14:48:23-04:00 DEBUG: [281] O         1
2014-10-25T14:48:23-04:00 DEBUG: [281] O        &lt;/AirSyncBase:NativeBodyType&gt;
2014-10-25T14:48:23-04:00 DEBUG: [281] O        &lt;AirSyncBase:Body&gt;
2014-10-25T14:48:23-04:00 DEBUG: [281] O         &lt;AirSyncBase:Type&gt;
2014-10-25T14:48:23-04:00 DEBUG: [281] O          1
2014-10-25T14:48:23-04:00 DEBUG: [281] O         &lt;/AirSyncBase:Type&gt;
2014-10-25T14:48:23-04:00 DEBUG: [281] O         &lt;AirSyncBase:EstimatedDataSize&gt;
2014-10-25T14:48:23-04:00 DEBUG: [281] O          139
2014-10-25T14:48:23-04:00 DEBUG: [281] O         &lt;/AirSyncBase:EstimatedDataSize&gt;
2014-10-25T14:48:23-04:00 DEBUG: [281] O         &lt;AirSyncBase:Data&gt;
2014-10-25T14:48:23-04:00 DEBUG: [281] O          [STREAM]
2014-10-25T14:48:23-04:00 DEBUG: [281] O         &lt;/AirSyncBase:Data&gt;
2014-10-25T14:48:23-04:00 DEBUG: [281] O        &lt;/AirSyncBase:Body&gt;

 The following is the OPTIONS request from the same client, but asking for the MIME data:

2014-10-25T14:48:23-04:00 DEBUG: [282] I     &lt;Options&gt;
2014-10-25T14:48:23-04:00 DEBUG: [282] I      &lt;FilterType&gt;
2014-10-25T14:48:23-04:00 DEBUG: [282] I        5
2014-10-25T14:48:23-04:00 DEBUG: [282] I      &lt;/FilterType&gt;
2014-10-25T14:48:23-04:00 DEBUG: [282] I      &lt;MIMESupport&gt;
2014-10-25T14:48:23-04:00 DEBUG: [282] I        2
2014-10-25T14:48:23-04:00 DEBUG: [282] I      &lt;/MIMESupport&gt;
2014-10-25T14:48:23-04:00 DEBUG: [282] I      &lt;AirSyncBase:BodyPreference&gt;
2014-10-25T14:48:23-04:00 DEBUG: [282] I       &lt;AirSyncBase:Type&gt;
2014-10-25T14:48:23-04:00 DEBUG: [282] I         4
2014-10-25T14:48:23-04:00 DEBUG: [282] I       &lt;/AirSyncBase:Type&gt;
2014-10-25T14:48:23-04:00 DEBUG: [282] I       &lt;AirSyncBase:TruncationSize&gt;
2014-10-25T14:48:23-04:00 DEBUG: [282] I         32768
2014-10-25T14:48:23-04:00 DEBUG: [282] I       &lt;/AirSyncBase:TruncationSize&gt;
2014-10-25T14:48:23-04:00 DEBUG: [282] I      &lt;/AirSyncBase:BodyPreference&gt;
2014-10-25T14:48:23-04:00 DEBUG: [282] I     &lt;/Options&gt;

This time, MIMESupport is &#039;2&#039;, which means the client can support any MIME messages (including S/MIME). It could also be set to &#039;1&#039;, which means only S/MIME data is allowed. This results in the following output (same message as in previous example):

2014-10-25T14:48:23-04:00 INFO: [282] Horde_Core_ActiveSync_Driver::getMessage(INBOX, 255000)
2014-10-25T14:48:24-04:00 INFO: [282] Sending MIME Message.
2014-10-25T14:48:24-04:00 INFO: [282] Checking MIMETRUNCATION: , ServerData: 10353
.
.
.
2014-10-25T14:48:24-04:00 DEBUG: [282] O        &lt;POOMMAIL:MessageClass&gt;
2014-10-25T14:48:24-04:00 DEBUG: [282] O         IPM.Note.SMIME.MultipartSigned
2014-10-25T14:48:24-04:00 DEBUG: [282] O        &lt;/POOMMAIL:MessageClass&gt;
2014-10-25T14:48:24-04:00 DEBUG: [282] O        &lt;POOMMAIL:InternetCPID&gt;
2014-10-25T14:48:24-04:00 DEBUG: [282] O         65001
2014-10-25T14:48:24-04:00 DEBUG: [282] O        &lt;/POOMMAIL:InternetCPID&gt;
2014-10-25T14:48:24-04:00 DEBUG: [282] O        &lt;AirSyncBase:NativeBodyType&gt;
2014-10-25T14:48:24-04:00 DEBUG: [282] O         1
2014-10-25T14:48:24-04:00 DEBUG: [282] O        &lt;/AirSyncBase:NativeBodyType&gt;
2014-10-25T14:48:24-04:00 DEBUG: [282] O        &lt;AirSyncBase:Body&gt;
2014-10-25T14:48:24-04:00 DEBUG: [282] O         &lt;AirSyncBase:Type&gt;
2014-10-25T14:48:24-04:00 DEBUG: [282] O          4
2014-10-25T14:48:24-04:00 DEBUG: [282] O         &lt;/AirSyncBase:Type&gt;
2014-10-25T14:48:24-04:00 DEBUG: [282] O         &lt;AirSyncBase:EstimatedDataSize&gt;
2014-10-25T14:48:24-04:00 DEBUG: [282] O          10353
2014-10-25T14:48:24-04:00 DEBUG: [282] O         &lt;/AirSyncBase:EstimatedDataSize&gt;
2014-10-25T14:48:24-04:00 DEBUG: [282] O         &lt;AirSyncBase:Truncated&gt;
2014-10-25T14:48:24-04:00 DEBUG: [282] O          0
2014-10-25T14:48:24-04:00 DEBUG: [282] O         &lt;/AirSyncBase:Truncated&gt;
2014-10-25T14:48:24-04:00 DEBUG: [282] O         &lt;AirSyncBase:Data&gt;
2014-10-25T14:48:24-04:00 DEBUG: [282] O          [STREAM]
2014-10-25T14:48:24-04:00 DEBUG: [282] O         &lt;/AirSyncBase:Data&gt;
2014-10-25T14:48:24-04:00 DEBUG: [282] O        &lt;/AirSyncBase:Body&gt;

The BodyType of &#039;4&#039; indicates it is a MIME message, and the MessageClass indicates it&#039;s S/MIME Signed. I have similar tests with just encrypted and signed/encrypted.</description> 
   <pubDate>Sat, 25 Oct 2014 19:12:11 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86175</link> 
  </item> 
   
  <item> 
   <title>&gt; Well, based on the logs posted below, the client gets an a</title> 
   <description>&gt; Well, based on the logs posted below, the client gets an attachment, 
&gt; so I&#039;m guessing it&#039;s asking for a MIME message?

Also, attachments are still sent even if the client is not requesting the MIME message. Horde just has to do extra work to parse out the attachment from the message and send it separately.

&gt; Horde creates a S/MIME Encrypted Message attachement
&gt; The device creates a smime.p7m attach

Still occurs when not sending the actual MIME message. The signature, in this case, is just another attachment. Though I thought we were filtering out signatures in this case, I&#039;ll have to double check. Either way, not an indication the device is requesting a MIME message.
</description> 
   <pubDate>Sat, 25 Oct 2014 19:18:31 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86176</link> 
  </item> 
   
  <item> 
   <title>Thank for the detailed example.
So there is no MIMESupport </title> 
   <description>Thank for the detailed example.
So there is no MIMESupport options being sent before the message itself is being sent in HTML.
Is there another tag to look for?

I&#039;ve added a new folder to sync to see what would be asked and it seems it&#039;s expecting type 1,2 or 4 (text,html,mime).

Also any message sent by the device can&#039;t be decoded by Horde, even though it recognises that it&#039;s a S/MIME message.

Here is the log when adding the folder:
DEBUG: [91873] I    &lt;Folder&gt;
DEBUG: [91873] I     &lt;SyncKey&gt;
DEBUG: [91873] I       {544c0366-24f4-4ee2-841b-66e1904cae96}1
DEBUG: [91873] I     &lt;/SyncKey&gt;
DEBUG: [91873] I     &lt;FolderId&gt;
DEBUG: [91873] I       Fc767dd23
DEBUG: [91873] I     &lt;/FolderId&gt;
DEBUG: [91873] I     &lt;GetChanges /&gt;
DEBUG: [91873] I     &lt;WindowSize&gt;
DEBUG: [91873] I       25
DEBUG: [91873] I     &lt;/WindowSize&gt;
DEBUG: [91873] I     &lt;Options&gt;
DEBUG: [91873] I      &lt;FolderType&gt;
DEBUG: [91873] I        Email
DEBUG: [91873] I      &lt;/FolderType&gt;
DEBUG: [91873] I      &lt;FilterType&gt;
DEBUG: [91873] I        0
DEBUG: [91873] I      &lt;/FilterType&gt;
DEBUG: [91873] I      &lt;MIMESupport&gt;
DEBUG: [91873] I        1
DEBUG: [91873] I      &lt;/MIMESupport&gt;
DEBUG: [91873] I      &lt;MIMETruncation&gt;
DEBUG: [91873] I        7
DEBUG: [91873] I      &lt;/MIMETruncation&gt;
DEBUG: [91873] I      &lt;AirSyncBase:BodyPreference&gt;
DEBUG: [91873] I       &lt;AirSyncBase:Type&gt;
DEBUG: [91873] I         2
DEBUG: [91873] I       &lt;/AirSyncBase:Type&gt;
DEBUG: [91873] I      &lt;/AirSyncBase:BodyPreference&gt;
DEBUG: [91873] I      &lt;AirSyncBase:BodyPreference&gt;
DEBUG: [91873] I       &lt;AirSyncBase:Type&gt;
DEBUG: [91873] I         1
DEBUG: [91873] I       &lt;/AirSyncBase:Type&gt;
DEBUG: [91873] I      &lt;/AirSyncBase:BodyPreference&gt;
DEBUG: [91873] I      &lt;AirSyncBase:BodyPreference&gt;
DEBUG: [91873] I       &lt;AirSyncBase:Type&gt;
DEBUG: [91873] I         4
DEBUG: [91873] I       &lt;/AirSyncBase:Type&gt;
DEBUG: [91873] I       &lt;AirSyncBase:TruncationSize&gt;
DEBUG: [91873] I         200000
DEBUG: [91873] I       &lt;/AirSyncBase:TruncationSize&gt;
DEBUG: [91873] I      &lt;/AirSyncBase:BodyPreference&gt;
DEBUG: [91873] I     &lt;/Options&gt;
DEBUG: [91873] I    &lt;/Folder&gt;




&gt; That&#039;s why I&#039;m asking. The logs below show an HTML message being 
&gt; sent, which doesn&#039;t support SMIME. The device must explicitly request 
&gt; a MIME message. </description> 
   <pubDate>Sat, 25 Oct 2014 20:25:04 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86177</link> 
  </item> 
   
  <item> 
   <title>
&gt; Also any message sent by the device can&#039;t be decoded by </title> 
   <description>
&gt; Also any message sent by the device can&#039;t be decoded by Horde, even 
&gt; though it recognises that it&#039;s a S/MIME message.

Yeah, I noticed that. I can read the encrypted email you sent me on my iPhone, but not in Horde.

What do you need from me to attempt to add my simulator to your BES?</description> 
   <pubDate>Sat, 25 Oct 2014 20:31:05 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86178</link> 
  </item> 
   
  <item> 
   <title>I need the email address you want to add and the IP or hostn</title> 
   <description>I need the email address you want to add and the IP or hostname of the server.
I&#039;ll configure it to sync everything for 1 month and will enable S/MIME, with forced signatures.
All this can be changed at will if you need to be able to sync data for a shorter period of time per example.

&gt;
&gt; What do you need from me to attempt to add my simulator to your BES?
</description> 
   <pubDate>Sat, 25 Oct 2014 20:44:28 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86179</link> 
  </item> 
   
  <item> 
   <title>Great. Sent details privately.</title> 
   <description>Great. Sent details privately.</description> 
   <pubDate>Sat, 25 Oct 2014 21:04:54 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86180</link> 
  </item> 
   
  <item> 
   <title>For the record, simulator does not support enterprise featur</title> 
   <description>For the record, simulator does not support enterprise features.

So, to continue debugging try adding:

Horde::debug($options);
Horde::debug($imap_message-&gt;isSigned());
Horde::debug($imap_message-&gt;isEncrypted());

in Horde_ActiveSync_Imap_Adapter::_buildMailMessage() right before the if statement on line 988. The output will be put into a file name horde_debug.txt in your system&#039;s tmp directory.</description> 
   <pubDate>Sat, 25 Oct 2014 22:19:46 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86183</link> 
  </item> 
   
  <item> 
   <title>OK, here is what I get when the message is being received by</title> 
   <description>OK, here is what I get when the message is being received by the device. Seems like Horde is sending the plain text and the S/MIME parts.

2014-10-26T00:34:00+02:00 DEBUG: Variable information:
array(4) {
  [&quot;protocolversion&quot;]=&gt;
  string(4) &quot;14.1&quot;
  [&quot;truncation&quot;]=&gt;
  bool(false)
  [&quot;bodyprefs&quot;]=&gt;
  array(3) {
    [2]=&gt;
    array(2) {
      [&quot;type&quot;]=&gt;
      string(1) &quot;2&quot;
      [&quot;truncationsize&quot;]=&gt;
      int(1048576)
    }
    [1]=&gt;
    array(2) {
      [&quot;type&quot;]=&gt;
      string(1) &quot;1&quot;
      [&quot;truncationsize&quot;]=&gt;
      int(1048576)
    }
    [4]=&gt;
    array(2) {
      [&quot;type&quot;]=&gt;
      string(1) &quot;4&quot;
      [&quot;truncationsize&quot;]=&gt;
      string(6) &quot;200000&quot;
    }
  }
  [&quot;mimesupport&quot;]=&gt;
  int(0)
}

Backtrace:
1. Horde_Rpc_ActiveSync-&gt;getResponse() /var/www/html/webmail/rpc.php:159
2. Horde_ActiveSync-&gt;handleRequest() /usr/local/php54/lib/php/Horde/Rpc/ActiveSync.php:143
3. Horde_ActiveSync_Request_Base-&gt;handle() /usr/local/php54/lib/php/Horde/ActiveSync.php:880
4. Horde_ActiveSync_Request_Sync-&gt;_handle() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Base.php:253
5. Horde_ActiveSync_Connector_Exporter-&gt;sendNextChange() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Sync.php:613
6. Horde_Core_ActiveSync_Driver-&gt;getMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Connector/Exporter.php:215
7. Horde_ActiveSync_Imap_Adapter-&gt;getMessages() /usr/local/php54/lib/php/Horde/Core/ActiveSync/Driver.php:1274
8. Horde_ActiveSync_Imap_Adapter-&gt;_buildMailMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:535
9. Horde::debug() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:988

2014-10-26T00:34:01+02:00 DEBUG: Variable information:
array(4) {
  [&quot;protocolversion&quot;]=&gt;
  string(4) &quot;14.1&quot;
  [&quot;truncation&quot;]=&gt;
  int(4096)
  [&quot;bodyprefs&quot;]=&gt;
  array(1) {
    [1]=&gt;
    array(2) {
      [&quot;type&quot;]=&gt;
      string(1) &quot;1&quot;
      [&quot;truncationsize&quot;]=&gt;
      string(3) &quot;500&quot;
    }
  }
  [&quot;mimesupport&quot;]=&gt;
  string(1) &quot;0&quot;
}

Backtrace:
1. Horde_Rpc_ActiveSync-&gt;getResponse() /var/www/html/webmail/rpc.php:159
2. Horde_ActiveSync-&gt;handleRequest() /usr/local/php54/lib/php/Horde/Rpc/ActiveSync.php:143
3. Horde_ActiveSync_Request_Base-&gt;handle() /usr/local/php54/lib/php/Horde/ActiveSync.php:880
4. Horde_ActiveSync_Request_Sync-&gt;_handle() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Base.php:253
5. Horde_ActiveSync_Connector_Exporter-&gt;sendNextChange() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Sync.php:613
6. Horde_Core_ActiveSync_Driver-&gt;getMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Connector/Exporter.php:215
7. Horde_ActiveSync_Imap_Adapter-&gt;getMessages() /usr/local/php54/lib/php/Horde/Core/ActiveSync/Driver.php:1274
8. Horde_ActiveSync_Imap_Adapter-&gt;_buildMailMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:535
9. Horde::debug() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:988

2014-10-26T00:34:02+02:00 DEBUG: Variable information:
array(4) {
  [&quot;protocolversion&quot;]=&gt;
  string(4) &quot;14.1&quot;
  [&quot;truncation&quot;]=&gt;
  bool(false)
  [&quot;bodyprefs&quot;]=&gt;
  array(1) {
    [4]=&gt;
    &amp;array(2) {
      [&quot;type&quot;]=&gt;
      string(1) &quot;4&quot;
      [&quot;truncationsize&quot;]=&gt;
      int(1048576)
    }
  }
  [&quot;mimesupport&quot;]=&gt;
  string(1) &quot;2&quot;
}

Backtrace:
1. Horde_Rpc_ActiveSync-&gt;getResponse() /var/www/html/webmail/rpc.php:159
2. Horde_ActiveSync-&gt;handleRequest() /usr/local/php54/lib/php/Horde/Rpc/ActiveSync.php:143
3. Horde_ActiveSync_Request_Base-&gt;handle() /usr/local/php54/lib/php/Horde/ActiveSync.php:880
4. Horde_ActiveSync_Request_Sync-&gt;_handle() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Base.php:253
5. Horde_ActiveSync_Driver_Base-&gt;fetch() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Sync.php:559
6. Horde_Core_ActiveSync_Driver-&gt;getMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Driver/Base.php:254
7. Horde_ActiveSync_Imap_Adapter-&gt;getMessages() /usr/local/php54/lib/php/Horde/Core/ActiveSync/Driver.php:1274
8. Horde_ActiveSync_Imap_Adapter-&gt;_buildMailMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:535
9. Horde::debug() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:988

&gt; For the record, simulator does not support enterprise features.
&gt;
&gt; So, to continue debugging try adding:
&gt;
&gt; Horde::debug($options);
&gt; Horde::debug($imap_message-&gt;isSigned());
&gt; Horde::debug($imap_message-&gt;isEncrypted());
&gt;
&gt; in Horde_ActiveSync_Imap_Adapter::_buildMailMessage() right before 
&gt; the if statement on line 988. The output will be put into a file name 
&gt; horde_debug.txt in your system&#039;s tmp directory.
</description> 
   <pubDate>Sat, 25 Oct 2014 22:40:31 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86184</link> 
  </item> 
   
  <item> 
   <title>Some information was missing due to the fact that I didn&#039;t c</title> 
   <description>Some information was missing due to the fact that I didn&#039;t configure a global debug log file. Here is the proper output for a meesage which is both signed and encrypted

2014-10-26T00:57:01+02:00 DEBUG: Variable information:
array(4) {
  [&quot;protocolversion&quot;]=&gt;
  string(4) &quot;14.1&quot;
  [&quot;truncation&quot;]=&gt;
  int(4096)
  [&quot;bodyprefs&quot;]=&gt;
  array(1) {
    [1]=&gt;
    array(2) {
      [&quot;type&quot;]=&gt;
      string(1) &quot;1&quot;
      [&quot;truncationsize&quot;]=&gt;
      string(3) &quot;500&quot;
    }
  }
  [&quot;mimesupport&quot;]=&gt;
  string(1) &quot;0&quot;
}

Backtrace:
1. Horde_Rpc_ActiveSync-&gt;getResponse() /var/www/html/webmail/rpc.php:159
2. Horde_ActiveSync-&gt;handleRequest() /usr/local/php54/lib/php/Horde/Rpc/ActiveSync.php:143
3. Horde_ActiveSync_Request_Base-&gt;handle() /usr/local/php54/lib/php/Horde/ActiveSync.php:880
4. Horde_ActiveSync_Request_Sync-&gt;_handle() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Base.php:253
5. Horde_ActiveSync_Connector_Exporter-&gt;sendNextChange() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Sync.php:613
6. Horde_Core_ActiveSync_Driver-&gt;getMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Connector/Exporter.php:215
7. Horde_ActiveSync_Imap_Adapter-&gt;getMessages() /usr/local/php54/lib/php/Horde/Core/ActiveSync/Driver.php:1274
8. Horde_ActiveSync_Imap_Adapter-&gt;_buildMailMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:535
9. Horde::debug() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:988

2014-10-26T00:57:01+02:00 DEBUG: Variable information:
bool(false)

Backtrace:
1. Horde_Rpc_ActiveSync-&gt;getResponse() /var/www/html/webmail/rpc.php:159
2. Horde_ActiveSync-&gt;handleRequest() /usr/local/php54/lib/php/Horde/Rpc/ActiveSync.php:143
3. Horde_ActiveSync_Request_Base-&gt;handle() /usr/local/php54/lib/php/Horde/ActiveSync.php:880
4. Horde_ActiveSync_Request_Sync-&gt;_handle() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Base.php:253
5. Horde_ActiveSync_Connector_Exporter-&gt;sendNextChange() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Sync.php:613
6. Horde_Core_ActiveSync_Driver-&gt;getMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Connector/Exporter.php:215
7. Horde_ActiveSync_Imap_Adapter-&gt;getMessages() /usr/local/php54/lib/php/Horde/Core/ActiveSync/Driver.php:1274
8. Horde_ActiveSync_Imap_Adapter-&gt;_buildMailMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:535
9. Horde::debug() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:989

2014-10-26T00:57:01+02:00 DEBUG: Variable information:
bool(true)

Backtrace:
1. Horde_Rpc_ActiveSync-&gt;getResponse() /var/www/html/webmail/rpc.php:159
2. Horde_ActiveSync-&gt;handleRequest() /usr/local/php54/lib/php/Horde/Rpc/ActiveSync.php:143
3. Horde_ActiveSync_Request_Base-&gt;handle() /usr/local/php54/lib/php/Horde/ActiveSync.php:880
4. Horde_ActiveSync_Request_Sync-&gt;_handle() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Base.php:253
5. Horde_ActiveSync_Connector_Exporter-&gt;sendNextChange() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Sync.php:613
6. Horde_Core_ActiveSync_Driver-&gt;getMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Connector/Exporter.php:215
7. Horde_ActiveSync_Imap_Adapter-&gt;getMessages() /usr/local/php54/lib/php/Horde/Core/ActiveSync/Driver.php:1274
8. Horde_ActiveSync_Imap_Adapter-&gt;_buildMailMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:535
9. Horde::debug() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:990

2014-10-26T00:57:01+02:00 DEBUG: Variable information:
array(4) {
  [&quot;protocolversion&quot;]=&gt;
  string(4) &quot;14.1&quot;
  [&quot;truncation&quot;]=&gt;
  bool(false)
  [&quot;bodyprefs&quot;]=&gt;
  array(3) {
    [2]=&gt;
    array(2) {
      [&quot;type&quot;]=&gt;
      string(1) &quot;2&quot;
      [&quot;truncationsize&quot;]=&gt;
      int(1048576)
    }
    [1]=&gt;
    array(2) {
      [&quot;type&quot;]=&gt;
      string(1) &quot;1&quot;
      [&quot;truncationsize&quot;]=&gt;
      int(1048576)
    }
    [4]=&gt;
    array(2) {
      [&quot;type&quot;]=&gt;
      string(1) &quot;4&quot;
      [&quot;truncationsize&quot;]=&gt;
      string(6) &quot;200000&quot;
    }
  }
  [&quot;mimesupport&quot;]=&gt;
  int(0)
}

Backtrace:
1. Horde_Rpc_ActiveSync-&gt;getResponse() /var/www/html/webmail/rpc.php:159
2. Horde_ActiveSync-&gt;handleRequest() /usr/local/php54/lib/php/Horde/Rpc/ActiveSync.php:143
3. Horde_ActiveSync_Request_Base-&gt;handle() /usr/local/php54/lib/php/Horde/ActiveSync.php:880
4. Horde_ActiveSync_Request_Sync-&gt;_handle() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Base.php:253
5. Horde_ActiveSync_Connector_Exporter-&gt;sendNextChange() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Sync.php:613
6. Horde_Core_ActiveSync_Driver-&gt;getMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Connector/Exporter.php:215
7. Horde_ActiveSync_Imap_Adapter-&gt;getMessages() /usr/local/php54/lib/php/Horde/Core/ActiveSync/Driver.php:1274
8. Horde_ActiveSync_Imap_Adapter-&gt;_buildMailMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:535
9. Horde::debug() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:988

2014-10-26T00:57:01+02:00 DEBUG: Variable information:
array(4) {
  [&quot;protocolversion&quot;]=&gt;
  string(4) &quot;14.1&quot;
  [&quot;truncation&quot;]=&gt;
  bool(false)
  [&quot;bodyprefs&quot;]=&gt;
  array(1) {
    [4]=&gt;
    &amp;array(2) {
      [&quot;type&quot;]=&gt;
      string(1) &quot;4&quot;
      [&quot;truncationsize&quot;]=&gt;
      int(1048576)
    }
  }
  [&quot;mimesupport&quot;]=&gt;
  string(1) &quot;2&quot;
}

Backtrace:
1. Horde_Rpc_ActiveSync-&gt;getResponse() /var/www/html/webmail/rpc.php:159
2. Horde_ActiveSync-&gt;handleRequest() /usr/local/php54/lib/php/Horde/Rpc/ActiveSync.php:143
3. Horde_ActiveSync_Request_Base-&gt;handle() /usr/local/php54/lib/php/Horde/ActiveSync.php:880
4. Horde_ActiveSync_Request_Sync-&gt;_handle() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Base.php:253
5. Horde_ActiveSync_Driver_Base-&gt;fetch() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Sync.php:559
6. Horde_Core_ActiveSync_Driver-&gt;getMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Driver/Base.php:254
7. Horde_ActiveSync_Imap_Adapter-&gt;getMessages() /usr/local/php54/lib/php/Horde/Core/ActiveSync/Driver.php:1274
8. Horde_ActiveSync_Imap_Adapter-&gt;_buildMailMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:535
9. Horde::debug() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:988

2014-10-26T00:57:01+02:00 DEBUG: Variable information:
bool(false)

Backtrace:
1. Horde_Rpc_ActiveSync-&gt;getResponse() /var/www/html/webmail/rpc.php:159
2. Horde_ActiveSync-&gt;handleRequest() /usr/local/php54/lib/php/Horde/Rpc/ActiveSync.php:143
3. Horde_ActiveSync_Request_Base-&gt;handle() /usr/local/php54/lib/php/Horde/ActiveSync.php:880
4. Horde_ActiveSync_Request_Sync-&gt;_handle() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Base.php:253
5. Horde_ActiveSync_Driver_Base-&gt;fetch() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Sync.php:559
6. Horde_Core_ActiveSync_Driver-&gt;getMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Driver/Base.php:254
7. Horde_ActiveSync_Imap_Adapter-&gt;getMessages() /usr/local/php54/lib/php/Horde/Core/ActiveSync/Driver.php:1274
8. Horde_ActiveSync_Imap_Adapter-&gt;_buildMailMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:535
9. Horde::debug() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:989

2014-10-26T00:57:01+02:00 DEBUG: Variable information:
bool(true)

Backtrace:
1. Horde_Rpc_ActiveSync-&gt;getResponse() /var/www/html/webmail/rpc.php:159
2. Horde_ActiveSync-&gt;handleRequest() /usr/local/php54/lib/php/Horde/Rpc/ActiveSync.php:143
3. Horde_ActiveSync_Request_Base-&gt;handle() /usr/local/php54/lib/php/Horde/ActiveSync.php:880
4. Horde_ActiveSync_Request_Sync-&gt;_handle() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Base.php:253
5. Horde_ActiveSync_Driver_Base-&gt;fetch() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Sync.php:559
6. Horde_Core_ActiveSync_Driver-&gt;getMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Driver/Base.php:254
7. Horde_ActiveSync_Imap_Adapter-&gt;getMessages() /usr/local/php54/lib/php/Horde/Core/ActiveSync/Driver.php:1274
8. Horde_ActiveSync_Imap_Adapter-&gt;_buildMailMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:535
9. Horde::debug() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:990

</description> 
   <pubDate>Sat, 25 Oct 2014 23:02:00 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86185</link> 
  </item> 
   
  <item> 
   <title>That&#039;s for a signed message. It seems isEncrypted() is faili</title> 
   <description>That&#039;s for a signed message. It seems isEncrypted() is failing


2014-10-26T01:14:14+02:00 DEBUG: Variable information:
array(4) {
  [&quot;protocolversion&quot;]=&gt;
  string(4) &quot;14.1&quot;
  [&quot;truncation&quot;]=&gt;
  bool(false)
  [&quot;bodyprefs&quot;]=&gt;
  array(3) {
    [2]=&gt;
    array(2) {
      [&quot;type&quot;]=&gt;
      string(1) &quot;2&quot;
      [&quot;truncationsize&quot;]=&gt;
      int(1048576)
    }
    [1]=&gt;
    array(2) {
      [&quot;type&quot;]=&gt;
      string(1) &quot;1&quot;
      [&quot;truncationsize&quot;]=&gt;
      int(1048576)
    }
    [4]=&gt;
    array(2) {
      [&quot;type&quot;]=&gt;
      string(1) &quot;4&quot;
      [&quot;truncationsize&quot;]=&gt;
      string(6) &quot;200000&quot;
    }
  }
  [&quot;mimesupport&quot;]=&gt;
  int(0)
}

Backtrace:
1. Horde_Rpc_ActiveSync-&gt;getResponse() /var/www/html/webmail/rpc.php:159
2. Horde_ActiveSync-&gt;handleRequest() /usr/local/php54/lib/php/Horde/Rpc/ActiveSync.php:143
3. Horde_ActiveSync_Request_Base-&gt;handle() /usr/local/php54/lib/php/Horde/ActiveSync.php:880
4. Horde_ActiveSync_Request_Sync-&gt;_handle() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Base.php:253
5. Horde_ActiveSync_Connector_Exporter-&gt;sendNextChange() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Sync.php:613
6. Horde_Core_ActiveSync_Driver-&gt;getMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Connector/Exporter.php:215
7. Horde_ActiveSync_Imap_Adapter-&gt;getMessages() /usr/local/php54/lib/php/Horde/Core/ActiveSync/Driver.php:1274
8. Horde_ActiveSync_Imap_Adapter-&gt;_buildMailMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:535
9. Horde::debug() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:988

2014-10-26T01:14:14+02:00 DEBUG: Variable information:
bool(true)

Backtrace:
1. Horde_Rpc_ActiveSync-&gt;getResponse() /var/www/html/webmail/rpc.php:159
2. Horde_ActiveSync-&gt;handleRequest() /usr/local/php54/lib/php/Horde/Rpc/ActiveSync.php:143
3. Horde_ActiveSync_Request_Base-&gt;handle() /usr/local/php54/lib/php/Horde/ActiveSync.php:880
4. Horde_ActiveSync_Request_Sync-&gt;_handle() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Base.php:253
5. Horde_ActiveSync_Connector_Exporter-&gt;sendNextChange() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Sync.php:613
6. Horde_Core_ActiveSync_Driver-&gt;getMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Connector/Exporter.php:215
7. Horde_ActiveSync_Imap_Adapter-&gt;getMessages() /usr/local/php54/lib/php/Horde/Core/ActiveSync/Driver.php:1274
8. Horde_ActiveSync_Imap_Adapter-&gt;_buildMailMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:535
9. Horde::debug() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:989

2014-10-26T01:14:14+02:00 DEBUG: Backtrace:
1. Horde_Rpc_ActiveSync-&gt;getResponse() /var/www/html/webmail/rpc.php:159
2. Horde_ActiveSync-&gt;handleRequest() /usr/local/php54/lib/php/Horde/Rpc/ActiveSync.php:143
3. Horde_ActiveSync_Request_Base-&gt;handle() /usr/local/php54/lib/php/Horde/ActiveSync.php:880
4. Horde_ActiveSync_Request_Sync-&gt;_handle() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Base.php:253
5. Horde_ActiveSync_Connector_Exporter-&gt;sendNextChange() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Sync.php:613
6. Horde_Core_ActiveSync_Driver-&gt;getMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Connector/Exporter.php:215
7. Horde_ActiveSync_Imap_Adapter-&gt;getMessages() /usr/local/php54/lib/php/Horde/Core/ActiveSync/Driver.php:1274
8. Horde_ActiveSync_Imap_Adapter-&gt;_buildMailMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:535
9. Horde::debug() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:990

2014-10-26T01:14:15+02:00 DEBUG: Variable information:
array(4) {
  [&quot;protocolversion&quot;]=&gt;
  string(4) &quot;14.1&quot;
  [&quot;truncation&quot;]=&gt;
  int(4096)
  [&quot;bodyprefs&quot;]=&gt;
  array(1) {
    [1]=&gt;
    array(2) {
      [&quot;type&quot;]=&gt;
      string(1) &quot;1&quot;
      [&quot;truncationsize&quot;]=&gt;
      string(3) &quot;500&quot;
    }
  }
  [&quot;mimesupport&quot;]=&gt;
  string(1) &quot;0&quot;
}

Backtrace:
1. Horde_Rpc_ActiveSync-&gt;getResponse() /var/www/html/webmail/rpc.php:159
2. Horde_ActiveSync-&gt;handleRequest() /usr/local/php54/lib/php/Horde/Rpc/ActiveSync.php:143
3. Horde_ActiveSync_Request_Base-&gt;handle() /usr/local/php54/lib/php/Horde/ActiveSync.php:880
4. Horde_ActiveSync_Request_Sync-&gt;_handle() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Base.php:253
5. Horde_ActiveSync_Connector_Exporter-&gt;sendNextChange() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Sync.php:613
6. Horde_Core_ActiveSync_Driver-&gt;getMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Connector/Exporter.php:215
7. Horde_ActiveSync_Imap_Adapter-&gt;getMessages() /usr/local/php54/lib/php/Horde/Core/ActiveSync/Driver.php:1274
8. Horde_ActiveSync_Imap_Adapter-&gt;_buildMailMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:535
9. Horde::debug() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:988

2014-10-26T01:14:15+02:00 DEBUG: Variable information:
bool(true)

Backtrace:
1. Horde_Rpc_ActiveSync-&gt;getResponse() /var/www/html/webmail/rpc.php:159
2. Horde_ActiveSync-&gt;handleRequest() /usr/local/php54/lib/php/Horde/Rpc/ActiveSync.php:143
3. Horde_ActiveSync_Request_Base-&gt;handle() /usr/local/php54/lib/php/Horde/ActiveSync.php:880
4. Horde_ActiveSync_Request_Sync-&gt;_handle() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Base.php:253
5. Horde_ActiveSync_Connector_Exporter-&gt;sendNextChange() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Sync.php:613
6. Horde_Core_ActiveSync_Driver-&gt;getMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Connector/Exporter.php:215
7. Horde_ActiveSync_Imap_Adapter-&gt;getMessages() /usr/local/php54/lib/php/Horde/Core/ActiveSync/Driver.php:1274
8. Horde_ActiveSync_Imap_Adapter-&gt;_buildMailMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:535
9. Horde::debug() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:989

2014-10-26T01:14:15+02:00 DEBUG: Backtrace:
1. Horde_Rpc_ActiveSync-&gt;getResponse() /var/www/html/webmail/rpc.php:159
2. Horde_ActiveSync-&gt;handleRequest() /usr/local/php54/lib/php/Horde/Rpc/ActiveSync.php:143
3. Horde_ActiveSync_Request_Base-&gt;handle() /usr/local/php54/lib/php/Horde/ActiveSync.php:880
4. Horde_ActiveSync_Request_Sync-&gt;_handle() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Base.php:253
5. Horde_ActiveSync_Connector_Exporter-&gt;sendNextChange() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Sync.php:613
6. Horde_Core_ActiveSync_Driver-&gt;getMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Connector/Exporter.php:215
7. Horde_ActiveSync_Imap_Adapter-&gt;getMessages() /usr/local/php54/lib/php/Horde/Core/ActiveSync/Driver.php:1274
8. Horde_ActiveSync_Imap_Adapter-&gt;_buildMailMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:535
9. Horde::debug() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:990

2014-10-26T01:14:15+02:00 DEBUG: Variable information:
array(4) {
  [&quot;protocolversion&quot;]=&gt;
  string(4) &quot;14.1&quot;
  [&quot;truncation&quot;]=&gt;
  bool(false)
  [&quot;bodyprefs&quot;]=&gt;
  array(1) {
    [4]=&gt;
    &amp;array(2) {
      [&quot;type&quot;]=&gt;
      string(1) &quot;4&quot;
      [&quot;truncationsize&quot;]=&gt;
      int(1048576)
    }
  }
  [&quot;mimesupport&quot;]=&gt;
  string(1) &quot;2&quot;
}

Backtrace:
1. Horde_Rpc_ActiveSync-&gt;getResponse() /var/www/html/webmail/rpc.php:159
2. Horde_ActiveSync-&gt;handleRequest() /usr/local/php54/lib/php/Horde/Rpc/ActiveSync.php:143
3. Horde_ActiveSync_Request_Base-&gt;handle() /usr/local/php54/lib/php/Horde/ActiveSync.php:880
4. Horde_ActiveSync_Request_Sync-&gt;_handle() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Base.php:253
5. Horde_ActiveSync_Driver_Base-&gt;fetch() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Sync.php:559
6. Horde_Core_ActiveSync_Driver-&gt;getMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Driver/Base.php:254
7. Horde_ActiveSync_Imap_Adapter-&gt;getMessages() /usr/local/php54/lib/php/Horde/Core/ActiveSync/Driver.php:1274
8. Horde_ActiveSync_Imap_Adapter-&gt;_buildMailMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:535
9. Horde::debug() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:988

2014-10-26T01:14:15+02:00 DEBUG: Variable information:
bool(true)

Backtrace:
1. Horde_Rpc_ActiveSync-&gt;getResponse() /var/www/html/webmail/rpc.php:159
2. Horde_ActiveSync-&gt;handleRequest() /usr/local/php54/lib/php/Horde/Rpc/ActiveSync.php:143
3. Horde_ActiveSync_Request_Base-&gt;handle() /usr/local/php54/lib/php/Horde/ActiveSync.php:880
4. Horde_ActiveSync_Request_Sync-&gt;_handle() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Base.php:253
5. Horde_ActiveSync_Driver_Base-&gt;fetch() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Sync.php:559
6. Horde_Core_ActiveSync_Driver-&gt;getMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Driver/Base.php:254
7. Horde_ActiveSync_Imap_Adapter-&gt;getMessages() /usr/local/php54/lib/php/Horde/Core/ActiveSync/Driver.php:1274
8. Horde_ActiveSync_Imap_Adapter-&gt;_buildMailMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:535
9. Horde::debug() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:989

2014-10-26T01:14:15+02:00 DEBUG: Backtrace:
1. Horde_Rpc_ActiveSync-&gt;getResponse() /var/www/html/webmail/rpc.php:159
2. Horde_ActiveSync-&gt;handleRequest() /usr/local/php54/lib/php/Horde/Rpc/ActiveSync.php:143
3. Horde_ActiveSync_Request_Base-&gt;handle() /usr/local/php54/lib/php/Horde/ActiveSync.php:880
4. Horde_ActiveSync_Request_Sync-&gt;_handle() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Base.php:253
5. Horde_ActiveSync_Driver_Base-&gt;fetch() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Sync.php:559
6. Horde_Core_ActiveSync_Driver-&gt;getMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Driver/Base.php:254
7. Horde_ActiveSync_Imap_Adapter-&gt;getMessages() /usr/local/php54/lib/php/Horde/Core/ActiveSync/Driver.php:1274
8. Horde_ActiveSync_Imap_Adapter-&gt;_buildMailMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:535
9. Horde::debug() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:990</description> 
   <pubDate>Sat, 25 Oct 2014 23:17:06 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86188</link> 
  </item> 
   
  <item> 
   <title>I had forgotten there were other devices connected...
So th</title> 
   <description>I had forgotten there were other devices connected...
So this is the log when only the BlackBerry gets the message.
mimesupport is set at 0 (int versus string for the other device)

2014-10-26T02:26:59+02:00 DEBUG: Variable information:
array(4) {
  [&quot;protocolversion&quot;]=&gt;
  string(4) &quot;14.1&quot;
  [&quot;truncation&quot;]=&gt;
  bool(false)
  [&quot;bodyprefs&quot;]=&gt;
  array(3) {
    [2]=&gt;
    array(2) {
      [&quot;type&quot;]=&gt;
      string(1) &quot;2&quot;
      [&quot;truncationsize&quot;]=&gt;
      int(1048576)
    }
    [1]=&gt;
    array(2) {
      [&quot;type&quot;]=&gt;
      string(1) &quot;1&quot;
      [&quot;truncationsize&quot;]=&gt;
      int(1048576)
    }
    [4]=&gt;
    array(2) {
      [&quot;type&quot;]=&gt;
      string(1) &quot;4&quot;
      [&quot;truncationsize&quot;]=&gt;
      string(6) &quot;200000&quot;
    }
  }
  [&quot;mimesupport&quot;]=&gt;
  int(0)
}

Backtrace:
1. Horde_Rpc_ActiveSync-&gt;getResponse() /var/www/html/webmail/rpc.php:159
2. Horde_ActiveSync-&gt;handleRequest() /usr/local/php54/lib/php/Horde/Rpc/ActiveSync.php:143
3. Horde_ActiveSync_Request_Base-&gt;handle() /usr/local/php54/lib/php/Horde/ActiveSync.php:880
4. Horde_ActiveSync_Request_Sync-&gt;_handle() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Base.php:253
5. Horde_ActiveSync_Connector_Exporter-&gt;sendNextChange() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Sync.php:613
6. Horde_Core_ActiveSync_Driver-&gt;getMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Connector/Exporter.php:215
7. Horde_ActiveSync_Imap_Adapter-&gt;getMessages() /usr/local/php54/lib/php/Horde/Core/ActiveSync/Driver.php:1274
8. Horde_ActiveSync_Imap_Adapter-&gt;_buildMailMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:535
9. Horde::debug() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:988

2014-10-26T02:26:59+02:00 DEBUG: Variable information:
bool(false)

Backtrace:
1. Horde_Rpc_ActiveSync-&gt;getResponse() /var/www/html/webmail/rpc.php:159
2. Horde_ActiveSync-&gt;handleRequest() /usr/local/php54/lib/php/Horde/Rpc/ActiveSync.php:143
3. Horde_ActiveSync_Request_Base-&gt;handle() /usr/local/php54/lib/php/Horde/ActiveSync.php:880
4. Horde_ActiveSync_Request_Sync-&gt;_handle() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Base.php:253
5. Horde_ActiveSync_Connector_Exporter-&gt;sendNextChange() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Sync.php:613
6. Horde_Core_ActiveSync_Driver-&gt;getMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Connector/Exporter.php:215
7. Horde_ActiveSync_Imap_Adapter-&gt;getMessages() /usr/local/php54/lib/php/Horde/Core/ActiveSync/Driver.php:1274
8. Horde_ActiveSync_Imap_Adapter-&gt;_buildMailMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:535
9. Horde::debug() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:989

2014-10-26T02:26:59+02:00 DEBUG: Variable information:
bool(true)

Backtrace:
1. Horde_Rpc_ActiveSync-&gt;getResponse() /var/www/html/webmail/rpc.php:159
2. Horde_ActiveSync-&gt;handleRequest() /usr/local/php54/lib/php/Horde/Rpc/ActiveSync.php:143
3. Horde_ActiveSync_Request_Base-&gt;handle() /usr/local/php54/lib/php/Horde/ActiveSync.php:880
4. Horde_ActiveSync_Request_Sync-&gt;_handle() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Base.php:253
5. Horde_ActiveSync_Connector_Exporter-&gt;sendNextChange() /usr/local/php54/lib/php/Horde/ActiveSync/Request/Sync.php:613
6. Horde_Core_ActiveSync_Driver-&gt;getMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Connector/Exporter.php:215
7. Horde_ActiveSync_Imap_Adapter-&gt;getMessages() /usr/local/php54/lib/php/Horde/Core/ActiveSync/Driver.php:1274
8. Horde_ActiveSync_Imap_Adapter-&gt;_buildMailMessage() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:535
9. Horde::debug() /usr/local/php54/lib/php/Horde/ActiveSync/Imap/Adapter.php:990
</description> 
   <pubDate>Sun, 26 Oct 2014 00:31:21 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86189</link> 
  </item> 
   
  <item> 
   <title>I did a quick test with mimesupport set at 1 or 2.

Any me</title> 
   <description>I did a quick test with mimesupport set at 1 or 2.

Any message sent from outside is detected as being encrypted, but the device says the message isn&#039;t valid.

The reverse is true as well, the device can send encrypted messages and read them, but Horde doesn&#039;t understand them.

Thunderbird can read everything.</description> 
   <pubDate>Sun, 26 Oct 2014 01:07:43 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86190</link> 
  </item> 
   
  <item> 
   <title>And that&#039;s what the logs look like with a message sent from </title> 
   <description>And that&#039;s what the logs look like with a message sent from Horde which can&#039;t be read on the other side.

2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;POOMMAIL:Importance&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O         1
2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;/POOMMAIL:Importance&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;POOMMAIL:Read&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O         0
2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;/POOMMAIL:Read&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;POOMMAIL:MessageClass&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O         IPM.Note.SMIME
2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;/POOMMAIL:MessageClass&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;POOMMAIL:InternetCPID&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O         65001
2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;/POOMMAIL:InternetCPID&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;AirSyncBase:NativeBodyType&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O         1
2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;/AirSyncBase:NativeBodyType&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;AirSyncBase:Body&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O         &lt;AirSyncBase:Type&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O          4
2014-10-26T02:04:10+01:00 DEBUG: [18622] O         &lt;/AirSyncBase:Type&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O         &lt;AirSyncBase:EstimatedDataSize&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O          17314
2014-10-26T02:04:10+01:00 DEBUG: [18622] O         &lt;/AirSyncBase:EstimatedDataSize&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O         &lt;AirSyncBase:Truncated&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O          0
2014-10-26T02:04:10+01:00 DEBUG: [18622] O         &lt;/AirSyncBase:Truncated&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O         &lt;AirSyncBase:Data&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O          [STREAM]
2014-10-26T02:04:10+01:00 DEBUG: [18622] O         &lt;/AirSyncBase:Data&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;/AirSyncBase:Body&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;AirSyncBase:Attachments&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O         &lt;AirSyncBase:Attachment&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O          &lt;AirSyncBase:DisplayName&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O           S/MIME Encrypted Message
2014-10-26T02:04:10+01:00 DEBUG: [18622] O          &lt;/AirSyncBase:DisplayName&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O          &lt;AirSyncBase:FileReference&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O           INBOX:3336:1
2014-10-26T02:04:10+01:00 DEBUG: [18622] O          &lt;/AirSyncBase:FileReference&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O          &lt;AirSyncBase:Method&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O           1
2014-10-26T02:04:10+01:00 DEBUG: [18622] O          &lt;/AirSyncBase:Method&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O          &lt;AirSyncBase:EstimatedDataSize&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O           8826
2014-10-26T02:04:10+01:00 DEBUG: [18622] O          &lt;/AirSyncBase:EstimatedDataSize&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O          &lt;AirSyncBase:IsInline&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O           1
2014-10-26T02:04:10+01:00 DEBUG: [18622] O          &lt;/AirSyncBase:IsInline&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O         &lt;/AirSyncBase:Attachment&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;/AirSyncBase:Attachments&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;POOMMAIL:Flag/&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;POOMMAIL:ContentClass&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O         urn:content-classes:message
2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;/POOMMAIL:ContentClass&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;POOMMAIL:Categories/&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O       &lt;/Data&gt;
2014-10-26T02:04:10+01:00 DEBUG: [18622] O      &lt;/Add&gt;
</description> 
   <pubDate>Sun, 26 Oct 2014 01:16:28 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86191</link> 
  </item> 
   
  <item> 
   <title>&gt; I had forgotten there were other devices connected...
&gt; S</title> 
   <description>&gt; I had forgotten there were other devices connected...
&gt; So this is the log when only the BlackBerry gets the message.
&gt; mimesupport is set at 0 (int versus string for the other device)

This means that the client is NOT requesting the MIME data. You will never get the full MIME message as long as the client is sending MIMESUPPORT of 0.

</description> 
   <pubDate>Sun, 26 Oct 2014 02:26:53 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86192</link> 
  </item> 
   
  <item> 
   <title>&gt; And that&#039;s what the logs look like with a message sent fro</title> 
   <description>&gt; And that&#039;s what the logs look like with a message sent from Horde 
&gt; which can&#039;t be read on the other side.

Wait, I&#039;m confused now. You said earlier that the MessageClass was always being set to IPM.Note, and NOT IPM.Note.SMIME. Below, it clearly shows that it IS set correctly.

&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;POOMMAIL:Importance&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O         1
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;/POOMMAIL:Importance&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;POOMMAIL:Read&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O         0
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;/POOMMAIL:Read&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;POOMMAIL:MessageClass&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O         IPM.Note.SMIME
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;/POOMMAIL:MessageClass&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;POOMMAIL:InternetCPID&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O         65001
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;/POOMMAIL:InternetCPID&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O        
&gt; &lt;AirSyncBase:NativeBodyType&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O         1
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O        
&gt; &lt;/AirSyncBase:NativeBodyType&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;AirSyncBase:Body&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O         &lt;AirSyncBase:Type&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O          4
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O         &lt;/AirSyncBase:Type&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O         
&gt; &lt;AirSyncBase:EstimatedDataSize&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O          17314
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O         
&gt; &lt;/AirSyncBase:EstimatedDataSize&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O         &lt;AirSyncBase:Truncated&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O          0
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O         &lt;/AirSyncBase:Truncated&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O         &lt;AirSyncBase:Data&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O          [STREAM]
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O         &lt;/AirSyncBase:Data&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;/AirSyncBase:Body&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;AirSyncBase:Attachments&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O         &lt;AirSyncBase:Attachment&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O          &lt;AirSyncBase:DisplayName&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O           S/MIME Encrypted Message
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O          
&gt; &lt;/AirSyncBase:DisplayName&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O          
&gt; &lt;AirSyncBase:FileReference&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O           INBOX:3336:1
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O          
&gt; &lt;/AirSyncBase:FileReference&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O          &lt;AirSyncBase:Method&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O           1
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O          &lt;/AirSyncBase:Method&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O          
&gt; &lt;AirSyncBase:EstimatedDataSize&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O           8826
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O          
&gt; &lt;/AirSyncBase:EstimatedDataSize&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O          &lt;AirSyncBase:IsInline&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O           1
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O          &lt;/AirSyncBase:IsInline&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O         &lt;/AirSyncBase:Attachment&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;/AirSyncBase:Attachments&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;POOMMAIL:Flag/&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;POOMMAIL:ContentClass&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O         
&gt; urn:content-classes:message
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;/POOMMAIL:ContentClass&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O        &lt;POOMMAIL:Categories/&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O       &lt;/Data&gt;
&gt; 2014-10-26T02:04:10+01:00 DEBUG: [18622] O      &lt;/Add&gt;
&gt;
</description> 
   <pubDate>Sun, 26 Oct 2014 02:28:49 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86193</link> 
  </item> 
   
  <item> 
   <title>&gt; I did a quick test with mimesupport set at 1 or 2.

What</title> 
   <description>&gt; I did a quick test with mimesupport set at 1 or 2.

What do you mean &quot;with mimesupport set at 1 or 2&quot;? This is not a configurable value. It comes from the client and it indicates what the client is able to understand, or what it is expecting to be returned. Changing it on the server side after the client sends it leads to undefined behavior because the device is not longer receiving what it is expecting in return.
</description> 
   <pubDate>Sun, 26 Oct 2014 02:30:39 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86194</link> 
  </item> 
   
  <item> 
   <title>&gt; What do you mean &quot;with mimesupport set at 1 or 2&quot;? This is</title> 
   <description>&gt; What do you mean &quot;with mimesupport set at 1 or 2&quot;? This is not a 
&gt; configurable value. It comes from the client and it indicates what 
&gt; the client is able to understand, or what it is expecting to be 
&gt; returned. Changing it on the server side after the client sends it 
&gt; leads to undefined behavior because the device is not longer 
&gt; receiving what it is expecting in return.
&gt;

I set it manually to see what the client would say. Based on my comment #32, the client supports type 1. It&#039;s defined at provisioning time or when adding a collection.
I&#039;ve verified that the client never sets it in itemoperations for unencrypted messages and I think it&#039;s normal, as it&#039;s an optional element, unless the client is fetching a S/MIME message. For an encrypted message, there is no itemoperations command being sent when receiving the message

&gt; Wait, I&#039;m confused now. You said earlier that the MessageClass was  
&gt; always being set to IPM.Note, and NOT IPM.Note.SMIME. Below, it  
&gt; clearly shows that it IS set correctly.

That&#039;s when I manually enable a mimetype. I did it to check what would happen later on in the chain if given the mimetype I think it expects.

&gt; This means that the client is NOT requesting the MIME data. You will  
&gt; never get the full MIME message as long as the client is sending  
&gt; MIMESUPPORT of 0.

The client is not sending mimesupport of 0. Horde is using the default value because it could not find it in the request, but a value of 1 has been sent when adding the collection via a sync command and I think that it&#039;s the value which should be used since the client is not sending an updated value of 0 per example.


</description> 
   <pubDate>Sun, 26 Oct 2014 15:22:16 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86195</link> 
  </item> 
   
  <item> 
   <title>&gt; I set it manually to see what the client would say. Based </title> 
   <description>&gt; I set it manually to see what the client would say. Based on my 
&gt; comment #32, the client supports type 1. It&#039;s defined at provisioning 
&gt; time or when adding a collection.

That doesn&#039;t matter. It&#039;s supposed to be set for each fetch/sync/itemoperation to tell the server the client can accept the MIME blob. If it&#039;s missing, it&#039;s assumed to be zero. See MS-ASCMD section 2.2.3.100.3.

&gt; I&#039;ve verified that the client never sets it in itemoperations for 
&gt; unencrypted messages and I think it&#039;s normal, as it&#039;s an optional 
&gt; element, unless the client is fetching a S/MIME message. 

Exactly. This is what the problem is. The client is fetching a S/MIME message, but fails to tell the server that it can support it.

&gt; For an 
&gt; encrypted message, there is no itemoperations command being sent when 
&gt; receiving the message

Doesn&#039;t matter. It can be requested via a SYNC FETCH, though that method is deprecated.

&gt;&gt; Wait, I&#039;m confused now. You said earlier that the MessageClass was
&gt;&gt; always being set to IPM.Note, and NOT IPM.Note.SMIME. Below, it
&gt;&gt; clearly shows that it IS set correctly.
&gt;
&gt; That&#039;s when I manually enable a mimetype. I did it to check what 
&gt; would happen later on in the chain if given the mimetype I think it 
&gt; expects.

If it&#039;s not sending non-empty MIMESupport tag, that it&#039;s not expecting anything related to MIME.

&gt;&gt; This means that the client is NOT requesting the MIME data. You will
&gt;&gt; never get the full MIME message as long as the client is sending
&gt;&gt; MIMESUPPORT of 0.
&gt;
&gt; The client is not sending mimesupport of 0. 

As per the specs, if MimeSupport is missing in any request, the default value of 0 should be used. See the reference I posted earlier in this message.

&gt; Horde is using the 
&gt; default value because it could not find it in the request, but a 
&gt; value of 1 has been sent when adding the collection via a sync 
&gt; command and I think that it&#039;s the value which should be used since 
&gt; the client is not sending an updated value of 0 per example.

There is no mechanism or expectation in the EAS protocol to use an earlier value of just one OPTION field. The client can omit the entire collection in a SYNC request, and flag it as a PARTIAL, in which case the server falls back to the last SYNC information for that collection in it&#039;s entirety. If this is what BB is expecting, it&#039;s a bug in their implementation.</description> 
   <pubDate>Sun, 26 Oct 2014 17:26:59 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86196</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

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

commit 6ed73e0edab15b6132a7ef7918fdbfd2c362fa81
Author: Michael J Rubinsky &lt;mrubinsk@horde.org&gt;
Date:   Sun Oct 26 13:43:14 2014 -0400

    Set the SMIME message class regardless of MIME support value.
    
    Another attempt at Bug: 12970

 .../lib/Horde/ActiveSync/Imap/Adapter.php          |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

http://github.com/horde/horde/commit/6ed73e0edab15b6132a7ef7918fdbfd2c362fa81</description> 
   <pubDate>Sun, 26 Oct 2014 17:44:10 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86197</link> 
  </item> 
   
  <item> 
   <title>Does this change anything for you?

I changed it so that w</title> 
   <description>Does this change anything for you?

I changed it so that we always at least set the message class value for S/MIME messages, even if we are not sending the MIME part.</description> 
   <pubDate>Sun, 26 Oct 2014 17:45:09 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86198</link> 
  </item> 
   
  <item> 
   <title>&gt; That doesn&#039;t matter. It&#039;s supposed to be set for each 
&gt; </title> 
   <description>&gt; That doesn&#039;t matter. It&#039;s supposed to be set for each 
&gt; fetch/sync/itemoperation to tell the server the client can accept the 
&gt; MIME blob. If it&#039;s missing, it&#039;s assumed to be zero. See MS-ASCMD 
&gt; section 2.2.3.100.3.

I don&#039;t think so. 2.2.3.100.3 says that it has to be part of every Sync&gt;Options request and it is when the collection is being defined.</description> 
   <pubDate>Sun, 26 Oct 2014 17:45:30 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86199</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; That doesn&#039;t matter. It&#039;s supposed to be set for each
&gt;&gt;</title> 
   <description>&gt;&gt; That doesn&#039;t matter. It&#039;s supposed to be set for each
&gt;&gt; fetch/sync/itemoperation to tell the server the client can accept the
&gt;&gt; MIME blob. If it&#039;s missing, it&#039;s assumed to be zero. See MS-ASCMD
&gt;&gt; section 2.2.3.100.3.
&gt;
&gt; I don&#039;t think so. 2.2.3.100.3 says that it has to be part of every 
&gt; Sync&gt;Options request and it is when the collection is being defined.

There is no such thing as &quot;being defined&quot; in EAS. The only time we look at previously sent values for a collection&#039;s OPTIONS is when the client issues a PARTIAL SYNC. Then we load the ENTIRE previously requested collection data. If a SYNC request sends an OPTIONS structure, it MUST contain the MIMESUPPORT field, or it defaults to 0.</description> 
   <pubDate>Sun, 26 Oct 2014 17:47:44 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86200</link> 
  </item> 
   
  <item> 
   <title>&gt; There is no such thing as &quot;being defined&quot; in EAS. The only</title> 
   <description>&gt; There is no such thing as &quot;being defined&quot; in EAS. The only time we 
&gt; look at previously sent values for a collection&#039;s OPTIONS is when the 
&gt; client issues a PARTIAL SYNC. Then we load the ENTIRE previously 
&gt; requested collection data. If a SYNC request sends an OPTIONS 
&gt; structure, it MUST contain the MIMESUPPORT field, or it defaults to 0.

Ok, but what I mean is that MIMESUPPORT is defined when the SYNC &gt; OPTIONS is being sent. It only happens when settings things up. Afterwards, there is never another SYNC &gt; OPTIONS being sent.

And according to 2.2.3.115.5, these options have to be kept in the database and re-used across requests:
&quot;The server preserves the Options block across requests, using a concept referred to as &quot;sticky options&quot;. If the Options block is not included in a request, the previous Options block is used. &quot;


Regarding the patch, it&#039;s half working.

For the encrypted message, same as before in the logs, but the device now knows it&#039;s an encrypted message, but still receives it as HTML and can&#039;t decrypt it.

For signed messages, there are now extra steps.
First the message is the usual HTML one with no MIMESUPPORT in getMessage, but then it triggers an itemoperation which includes MIMESUPPORT.
</description> 
   <pubDate>Sun, 26 Oct 2014 18:16:56 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86201</link> 
  </item> 
   
  <item> 
   <title>
&gt; Ok, but what I mean is that MIMESUPPORT is defined when </title> 
   <description>
&gt; Ok, but what I mean is that MIMESUPPORT is defined when the SYNC &gt; 
&gt; OPTIONS is being sent. It only happens when settings things up. 
&gt; Afterwards, there is never another SYNC &gt; OPTIONS being sent.
&gt;
&gt; And according to 2.2.3.115.5, these options have to be kept in the 
&gt; database and re-used across requests:
&gt; &quot;The server preserves the Options block across requests, using a 
&gt; concept referred to as &quot;sticky options&quot;. If the Options block is not 
&gt; included in a request, the previous Options block is used. &quot;

Correct, and we already do that. 

I was misunderstanding what was happening on your end. I thought the client WAS sending an OPTIONS request, but was just not including the MIMESUPPORT.  We fill in any missing values in Horde_ActiveSync_SyncCache::validateCollectionsFromCache()

Maybe what is happening is that at some point after the initial sync, the client IS sending an OPTIONS request either without the MIMESUPPORT or with it set to 0. This then becomes the cached value of the OPTIONS to be used when it is omitted.

You can verify that the MIMESUPPORT value is being cached by looking in the table horde_activesync_cache. 
</description> 
   <pubDate>Mon, 27 Oct 2014 01:33:26 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86202</link> 
  </item> 
   
  <item> 
   <title>&gt; You can verify that the MIMESUPPORT value is being cached </title> 
   <description>&gt; You can verify that the MIMESUPPORT value is being cached by looking 
&gt; in the table horde_activesync_cache.

OK, it&#039;s not working then. Seems mimetruncation and mimesupport are not stored properly.

That&#039;s what the logs show
2014-10-27T10:30:50+01:00 DEBUG: [88886] I  &lt;Synchronize&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I   &lt;Folders&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I    &lt;Folder&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I     &lt;SyncKey&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I       {542e663e-92d4-4777-a9de-1a73904cae96}132
2014-10-27T10:30:50+01:00 DEBUG: [88886] I     &lt;/SyncKey&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I     &lt;FolderId&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I       F0b8f474e
2014-10-27T10:30:50+01:00 DEBUG: [88886] I     &lt;/FolderId&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I     &lt;GetChanges /&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I     &lt;WindowSize&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I       25
2014-10-27T10:30:50+01:00 DEBUG: [88886] I     &lt;/WindowSize&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I     &lt;Options&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I      &lt;FolderType&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I        Email
2014-10-27T10:30:50+01:00 DEBUG: [88886] I      &lt;/FolderType&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I      &lt;FilterType&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I        0
2014-10-27T10:30:50+01:00 DEBUG: [88886] I      &lt;/FilterType&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I      &lt;MIMESupport&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I        1
2014-10-27T10:30:50+01:00 DEBUG: [88886] I      &lt;/MIMESupport&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I      &lt;MIMETruncation&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I        7
2014-10-27T10:30:50+01:00 DEBUG: [88886] I      &lt;/MIMETruncation&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I      &lt;AirSyncBase:BodyPreference&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I       &lt;AirSyncBase:Type&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I         2
2014-10-27T10:30:50+01:00 DEBUG: [88886] I       &lt;/AirSyncBase:Type&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I      &lt;/AirSyncBase:BodyPreference&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I      &lt;AirSyncBase:BodyPreference&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I       &lt;AirSyncBase:Type&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I         1
2014-10-27T10:30:50+01:00 DEBUG: [88886] I       &lt;/AirSyncBase:Type&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I      &lt;/AirSyncBase:BodyPreference&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I      &lt;AirSyncBase:BodyPreference&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I       &lt;AirSyncBase:Type&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I         4
2014-10-27T10:30:50+01:00 DEBUG: [88886] I       &lt;/AirSyncBase:Type&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I       &lt;AirSyncBase:TruncationSize&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I         200000
2014-10-27T10:30:50+01:00 DEBUG: [88886] I       &lt;/AirSyncBase:TruncationSize&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I      &lt;/AirSyncBase:BodyPreference&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I     &lt;/Options&gt;
2014-10-27T10:30:50+01:00 DEBUG: [88886] I    &lt;/Folder&gt;
2014-10-27T10:30:50+01:00 INFO: [88886] Collection added to collection handler: collection: INBOX, synckey: {542e663e-92d4-4777-a9de-1a73904cae96}132.

and that&#039;s what I see in the table
s: 9: &quot;F0b8f474e&quot;;a: 13: {
			s: 5: &quot;class&quot;;s: 5: &quot;Email&quot;;s: 10: &quot;windowsize&quot;;s: 2: &quot;25&quot;;s: 10: &quot;truncation&quot;;i: 0;s: 11: &quot;mimesupport&quot;;i: 0;s: 14: &quot;mimetruncation&quot;;i: 8;s: 8: &quot;conflict&quot;;i: 1;s: 9: &quot;bodyprefs&quot;;a: 3: {
				i: 2;a: 1: {
					s: 4: &quot;type&quot;;s: 1: &quot;2&quot;;
				}i: 1;a: 1: {
					s: 4: &quot;type&quot;;s: 1: &quot;1&quot;;
				}i: 4;a: 2: {
					s: 4: &quot;type&quot;;s: 1: &quot;4&quot;;s: 14: &quot;truncationsize&quot;;s: 6: &quot;200000&quot;;
				}
			}s: 8: &quot;serverid&quot;;s: 5: &quot;INBOX&quot;;s: 11: &quot;lastsynckey&quot;;s: 41: &quot;{542e663e-92d4-4777-a9de-1a73904cae96}132&quot;;s: 10: &quot;filtertype&quot;;s: 1: &quot;0&quot;;s: 2: &quot;id&quot;;s: 9: &quot;F0b8f474e&quot;;s: 14: &quot;deletesasmoves&quot;;b: 1;s: 8: &quot;pingable&quot;;b: 1;
</description> 
   <pubDate>Mon, 27 Oct 2014 09:43:42 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86205</link> 
  </item> 
   
  <item> 
   <title>I&#039;ve had a look around and I think the problem comes from co</title> 
   <description>I&#039;ve had a look around and I think the problem comes from collections-&gt;getNewCollection() which contains defaults which are only overridden if the sync contains an options block.

I&#039;ve moved the defaults to Sync-&gt;_parseSyncOptions() and it seems to work as expected.
</description> 
   <pubDate>Mon, 27 Oct 2014 11:49:18 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86206</link> 
  </item> 
   
  <item> 
   <title>Perfect. Nice catch.</title> 
   <description>Perfect. Nice catch.</description> 
   <pubDate>Mon, 27 Oct 2014 13:51:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86207</link> 
  </item> 
   
  <item> 
   <title>The cache seems to be holding the proper information now, bu</title> 
   <description>The cache seems to be holding the proper information now, but one problem remains and I have no idea where to look.

Encrypted message
Horde &gt; BB 10
Device says message is not valid
Horde &gt; iOS
Message can be decrypted
BB10 &gt; Horde
Can&#039;t read message
BB10 &gt; iOS
Can read the message just fine
iOS &gt; Horde
Can&#039;t decrypt message
iOS &gt; BB10
TBD


</description> 
   <pubDate>Mon, 27 Oct 2014 13:53:04 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86208</link> 
  </item> 
   
  <item> 
   <title>
I would start by getting wire traces and full debug sync l</title> 
   <description>
I would start by getting wire traces and full debug sync logs to see exactly what is being sent along each step of the way. Kind of hard for me to debug without a device to test, or at the very least the actual data transmitted.
</description> 
   <pubDate>Mon, 27 Oct 2014 14:07:12 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86209</link> 
  </item> 
   
  <item> 
   <title>&gt; I would start by getting wire traces and full debug sync l</title> 
   <description>&gt; I would start by getting wire traces and full debug sync logs to see 
&gt; exactly what is being sent along each step of the way. Kind of hard 
&gt; for me to debug without a device to test, or at the very least the 
&gt; actual data transmitted.

You should be able to witness the same thing since sending an encrypted message from iOS 8.1 can&#039;t be read in Horde.




</description> 
   <pubDate>Mon, 27 Oct 2014 15:08:46 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86211</link> 
  </item> 
   
  <item> 
   <title>I&#039;ve processed 3 messages using OpenSSL. One sent from Thund</title> 
   <description>I&#039;ve processed 3 messages using OpenSSL. One sent from Thunderbird, one from the BB client and one from the iOS client using `openssl cms`.

Message from TB can be decrypted properly
Message from iOS can&#039;t be decrypted because iOS got confused and used the wrong certificate to encrypt the message. Not sure what happened, but I can&#039;t test further as the client just crashes as soon as it receives certificates from Horde.

Message from BB client can&#039;t be decrypted as is
Error reading S/MIME message
34374513640:error:0D07207B:asn1 encoding routines:ASN1_get_object:header too long:asn1_lib.c:153:
34374513640:error:0D0D106E:asn1 encoding routines:B64_READ_ASN1:decode error:asn_mime.c:193:
34374513640:error:0D0D40CB:asn1 encoding routines:SMIME_read_ASN1:asn1 parse error:asn_mime.c:528:

After analysis, I found that the pkcs7 data is sent in one long line and that throws off the OpenSSL parser.
If I format the data using a max-length of 72 characters, then OpenSSL can decrypt the data.

What&#039;s inside is another binary message which starts with
Content-Type: application/x-pkcs7-mime
Content-Transfer-Encoding: base64

but this time it&#039;s a signed message with a SignedData structure and lines with fixed width.

So, my guess is that Horde sends the msg to OpenSSL which can&#039;t handle it as is. That&#039;s one half of the problem.

The other half is figuring out if Horde is doing something which prevents the BB client from understanding the message it gets or if the client only understands messages where the data is on one line.

I couldn&#039;t find a spec regarding the maximum amount of characters per line allowed in pkcs7 data, so I&#039;m guessing that what they&#039;re doing is legal and one reason most clients can read it.




</description> 
   <pubDate>Wed, 29 Oct 2014 03:29:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86246</link> 
  </item> 
   
  <item> 
   <title>
&gt; After analysis, I found that the pkcs7 data is sent in o</title> 
   <description>
&gt; After analysis, I found that the pkcs7 data is sent in one long line 
&gt; and that throws off the OpenSSL parser.
&gt; If I format the data using a max-length of 72 characters, then 
&gt; OpenSSL can decrypt the data.

I am almost 100% positive that the encoded data has a maximum line length of 76 characters. This is almost certainly a BB bug.


&gt; So, my guess is that Horde sends the msg to OpenSSL which can&#039;t 
&gt; handle it as is. That&#039;s one half of the problem.

Yes, we use the PHP native openssl_pkcs7_decrypt() function.

&gt; The other half is figuring out if Horde is doing something which 
&gt; prevents the BB client from understanding the message it gets or if 
&gt; the client only understands messages where the data is on one line.

Horde_ActiveSync passes all S/MIME messages UNTOUCHED to the client.

&gt; I couldn&#039;t find a spec regarding the maximum amount of characters per 
&gt; line allowed in pkcs7 data, so I&#039;m guessing that what they&#039;re doing 
&gt; is legal and one reason most clients can read it.

application/pcks7-mime, which is normally base64 transfer-encoded is limited to 76 characters per line.</description> 
   <pubDate>Wed, 29 Oct 2014 14:46:46 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86248</link> 
  </item> 
   
  <item> 
   <title>&gt; application/pcks7-mime, which is normally base64 transfer-</title> 
   <description>&gt; application/pcks7-mime, which is normally base64 transfer-encoded is 
&gt; limited to 76 characters per line.

Yep, I&#039;ve found a reference last night. It&#039;s strange that they&#039;re not following the rules.

Could message truncation have and impact on that? They set a limit, but I&#039;m guessing Horde doesn&#039;t touch the message unless it&#039;s over the limit.</description> 
   <pubDate>Wed, 29 Oct 2014 14:50:51 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86249</link> 
  </item> 
   
  <item> 
   <title>&gt; Could message truncation have and impact on that? They set</title> 
   <description>&gt; Could message truncation have and impact on that? They set a limit, 
&gt; but I&#039;m guessing Horde doesn&#039;t touch the message unless it&#039;s over the 
&gt; limit.

Never mind. Since messages sent via SMTP are affected, it can&#039;t be that.</description> 
   <pubDate>Wed, 29 Oct 2014 14:59:39 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86250</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; application/pcks7-mime, which is normally base64 transfer</title> 
   <description>&gt;&gt; application/pcks7-mime, which is normally base64 transfer-encoded is
&gt;&gt; limited to 76 characters per line.
&gt;
&gt; Yep, I&#039;ve found a reference last night. It&#039;s strange that they&#039;re not 
&gt; following the rules.
&gt;
&gt; Could message truncation have and impact on that? They set a limit, 
&gt; but I&#039;m guessing Horde doesn&#039;t touch the message unless it&#039;s over the 
&gt; limit.

You can disable the truncation by commenting out line 1061 in Horde_ActiveSync_Adapter::_buildMailMessage().</description> 
   <pubDate>Wed, 29 Oct 2014 15:45:11 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86251</link> 
  </item> 
   
  <item> 
   <title>
&gt; Yep, I&#039;ve found a reference last night. It&#039;s strange tha</title> 
   <description>
&gt; Yep, I&#039;ve found a reference last night. It&#039;s strange that they&#039;re not 
&gt; following the rules.

I&#039;ve found that when it comes to ActiveSync, hardly ANYONE follows all the rules...very frustrating.</description> 
   <pubDate>Wed, 29 Oct 2014 15:46:03 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86252</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; I would start by getting wire traces and full debug sync </title> 
   <description>&gt;&gt; I would start by getting wire traces and full debug sync logs to see
&gt;&gt; exactly what is being sent along each step of the way. Kind of hard
&gt;&gt; for me to debug without a device to test, or at the very least the
&gt;&gt; actual data transmitted.
&gt;
&gt; You should be able to witness the same thing since sending an 
&gt; encrypted message from iOS 8.1 can&#039;t be read in Horde.

Just saw this. I can successfully send an encrypted email from iOS and it is readable in Horde, as well an another iOS client that receives it via ActiveSync.</description> 
   <pubDate>Wed, 29 Oct 2014 15:52:10 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86253</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

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

commit 3902eb2f42197aea6d291816ae204711ff96edb7
Author: Michael J Rubinsky &lt;mrubinsk@horde.org&gt;
Date:   Wed Oct 29 13:03:03 2014 -0400

    Bug: 12970  Don&#039;t overwrite sticky OPTIONS.

 .../lib/Horde/ActiveSync/Collections.php           |   25 +++++++++++++++----
 .../lib/Horde/ActiveSync/Request/Sync.php          |    5 ++++
 2 files changed, 24 insertions(+), 6 deletions(-)

http://github.com/horde/horde/commit/3902eb2f42197aea6d291816ae204711ff96edb7</description> 
   <pubDate>Wed, 29 Oct 2014 20:56:09 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86255</link> 
  </item> 
   
  <item> 
   <title>I don&#039;t think this fix works.

If I understand it correctl</title> 
   <description>I don&#039;t think this fix works.

If I understand it correctly, it adds defaults in case options are not given and we want the opposite: default options when options are being sent in a sync so that the minimum requirements are met.


&gt; Changes have been made in Git (master):
&gt;
&gt; commit 3902eb2f42197aea6d291816ae204711ff96edb7
&gt; Author: Michael J Rubinsky &lt;mrubinsk@horde.org&gt;
&gt; Date:   Wed Oct 29 13:03:03 2014 -0400
&gt;
&gt;     Bug: 12970  Don&#039;t overwrite sticky OPTIONS.
&gt;
&gt;  .../lib/Horde/ActiveSync/Collections.php           |   25 
&gt; +++++++++++++++----
&gt;  .../lib/Horde/ActiveSync/Request/Sync.php          |    5 ++++
&gt;  2 files changed, 24 insertions(+), 6 deletions(-)
&gt;
&gt; http://github.com/horde/horde/commit/3902eb2f42197aea6d291816ae204711ff96edb7
</description> 
   <pubDate>Wed, 29 Oct 2014 22:44:21 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86257</link> 
  </item> 
   
  <item> 
   <title>&gt; Just saw this. I can successfully send an encrypted email </title> 
   <description>&gt; Just saw this. I can successfully send an encrypted email from iOS 
&gt; and it is readable in Horde, as well an another iOS client that 
&gt; receives it via ActiveSync.

Yes, the problem came from iOS which encoded the message using the wrong cert...</description> 
   <pubDate>Wed, 29 Oct 2014 22:45:40 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86258</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

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

commit b5fc1d2b2af1132651cd20856c91c5788e8cd42a
Author: Michael J Rubinsky &lt;mrubinsk@horde.org&gt;
Date:   Wed Oct 29 19:27:25 2014 -0400

    Revert &quot;Bug: 12970  Don&#039;t overwrite sticky OPTIONS.&quot;
    
    This reverts commit 3902eb2f42197aea6d291816ae204711ff96edb7.
    
    Conflicts:
    	framework/ActiveSync/lib/Horde/ActiveSync/Collections.php

 .../lib/Horde/ActiveSync/Collections.php           |   24 +++++---------------
 .../lib/Horde/ActiveSync/Request/Sync.php          |    5 ----
 2 files changed, 6 insertions(+), 23 deletions(-)

http://github.com/horde/horde/commit/b5fc1d2b2af1132651cd20856c91c5788e8cd42a</description> 
   <pubDate>Wed, 29 Oct 2014 23:29:19 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86260</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

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

commit cc88e5476914a6f6a41837a71ca4a5bffa8375b8
Author: Michael J Rubinsky &lt;mrubinsk@horde.org&gt;
Date:   Wed Oct 29 19:28:35 2014 -0400

    Proper fix for Bug: 12970

 .../lib/Horde/ActiveSync/Collections.php           |   30 ++++++++++++++++++++
 .../lib/Horde/ActiveSync/Request/Sync.php          |    7 ++--
 2 files changed, 34 insertions(+), 3 deletions(-)

http://github.com/horde/horde/commit/cc88e5476914a6f6a41837a71ca4a5bffa8375b8</description> 
   <pubDate>Wed, 29 Oct 2014 23:29:23 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86261</link> 
  </item> 
   
  <item> 
   <title>&gt; I don&#039;t think this fix works.
&gt;
&gt; If I understand it cor</title> 
   <description>&gt; I don&#039;t think this fix works.
&gt;
&gt; If I understand it correctly, it adds defaults in case options are 
&gt; not given and we want the opposite: default options when options are 
&gt; being sent in a sync so that the minimum requirements are met.

Yeah. I had the logic reversed in my head :)

Better, correct, fix now in place. Thanks for the catch.</description> 
   <pubDate>Wed, 29 Oct 2014 23:30:24 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86262</link> 
  </item> 
   
  <item> 
   <title>&gt; Yeah. I had the logic reversed in my head :)
&gt;
&gt; Better,</title> 
   <description>&gt; Yeah. I had the logic reversed in my head :)
&gt;
&gt; Better, correct, fix now in place. Thanks for the catch.

I think you still need to modify the array in getNewCollection() to only keep
            &#039;clientids&#039; =&gt; array(),
            &#039;fetchids&#039; =&gt; array(),
            &#039;windowsize&#039; =&gt; 100

</description> 
   <pubDate>Wed, 29 Oct 2014 23:49:32 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86264</link> 
  </item> 
   
  <item> 
   <title>
&gt; I think you still need to modify the array in getNewColl</title> 
   <description>
&gt; I think you still need to modify the array in getNewCollection() to only keep
&gt;             &#039;clientids&#039; =&gt; array(),
&gt;             &#039;fetchids&#039; =&gt; array(),
&gt;             &#039;windowsize&#039; =&gt; 100

*Sigh*

I thought I did. The revert probably blew it away though. Again, thanks for the catch.</description> 
   <pubDate>Thu, 30 Oct 2014 00:05:17 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86266</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

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

commit 1628efa4bc3e19da7b5dc9e4a34026bc86e7b474
Author: Michael J Rubinsky &lt;mrubinsk@horde.org&gt;
Date:   Wed Oct 29 20:07:23 2014 -0400

    This got lost during the revert.
    
    (Hopefully) final fix for Bug: 12970

 .../lib/Horde/ActiveSync/Collections.php           |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

http://github.com/horde/horde/commit/1628efa4bc3e19da7b5dc9e4a34026bc86e7b474</description> 
   <pubDate>Thu, 30 Oct 2014 00:08:00 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86267</link> 
  </item> 
   
  <item> 
   <title>&gt; *Sigh*
&gt;
&gt; I thought I did. The revert probably blew it </title> 
   <description>&gt; *Sigh*
&gt;
&gt; I thought I did. The revert probably blew it away though. Again, 
&gt; thanks for the catch.

:) Yeah, the revert restored the original array.
And sorry for not providing a patch myself. I simply moved the options from that array to the empty array in _parseSyncOptions, but thought there might be more to it.</description> 
   <pubDate>Thu, 30 Oct 2014 00:09:15 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/12970#t86268</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
