<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>PGP Encrypted e-mails are only encrypted with the senders public key</title> 
  <pubDate>Fri, 10 Apr 2026 14:48:29 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/11085</link> 
  <atom:link rel="self" type="application/rss+xml" title="PGP Encrypted e-mails are only encrypted with the senders public key" href="https://bugs.horde.org/ticket/11085/rss" /> 
  <description>PGP Encrypted e-mails are only encrypted with the senders public key</description> 
 
   
   
  <item> 
   <title>https://github.com/duritong/horde/commit/060d02e78824a420235</title> 
   <description>https://github.com/duritong/horde/commit/060d02e78824a420235e23327c5883b0ee28fcf2

All e-mails that should be encrypted got only be encrypted with
the senders public key.
This happened, because $to wasn&#039;t an array of addresses but rather
an array of AddressObjects, leading to the following warning, when
sending an encrypted e-mail:

WARN: HORDE [imp] PHP ERROR: array_flip() [&lt;a href=&#039;function.array-flip&#039;&gt;function.array-flip&lt;/a&gt;]: Can only flip STRING and INTEGER values! [pid 1982 on line 1352 of &quot;/var/www/vhosts/horde.example.com/www/imp/lib/Compose.php&quot;]

However, this also means that all the recipients are omitted and 
the e-mail is only encrypted with the senders public key.

This patch converts the address objects to e-mail addresses before
passing them to the PGP library.
</description> 
   <pubDate>Sun, 18 Mar 2012 17:39:39 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11085#t70744</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

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

commit c5540771fc376b2e770d49f8a7a4e0cdfacf65ba
Author: Michael M Slusarz &lt;slusarz@horde.org&gt;
Date:   Tue Mar 27 13:00:24 2012 -0600

    [mms] Fix regression in sending PGP encrypted messages (Bug #11085).

 imp/docs/CHANGES    |    1 +
 imp/lib/Compose.php |   29 ++++++++++++++++++-----------
 imp/package.xml     |    2 ++
 3 files changed, 21 insertions(+), 11 deletions(-)

http://git.horde.org/horde-git/-/commit/c5540771fc376b2e770d49f8a7a4e0cdfacf65ba</description> 
   <pubDate>Tue, 27 Mar 2012 19:01:18 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11085#t70914</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (develop):

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

commit c5540771fc376b2e770d49f8a7a4e0cdfacf65ba
Author: Michael M Slusarz &lt;slusarz@horde.org&gt;
Date:   Tue Mar 27 13:00:24 2012 -0600

    [mms] Fix regression in sending PGP encrypted messages (Bug #11085).

 imp/docs/CHANGES    |    1 +
 imp/lib/Compose.php |   29 ++++++++++++++++++-----------
 imp/package.xml     |    2 ++
 3 files changed, 21 insertions(+), 11 deletions(-)

http://git.horde.org/horde-git/-/commit/c5540771fc376b2e770d49f8a7a4e0cdfacf65ba</description> 
   <pubDate>Tue, 27 Mar 2012 19:04:13 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11085#t70916</link> 
  </item> 
   
  <item> 
   <title>$to *is* an array of address strings. How did you get addres</title> 
   <description>$to *is* an array of address strings. How did you get address objects? This change actually breaks encrypting for the senders, see bug #11150.</description> 
   <pubDate>Tue, 17 Apr 2012 13:10:26 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11085#t71237</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (master):

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

commit 0a3d57b3ff73564b79bf35640c3c34bbf9a1732a
Author: Jan Schneider &lt;jan@horde.org&gt;
Date:   Tue Apr 17 15:21:30 2012 +0200

    Revert &quot;[mms] Fix regression in sending PGP encrypted messages (Bug #11085).&quot;
    
    This reverts commit c5540771fc376b2e770d49f8a7a4e0cdfacf65ba.
    
    Conflicts:
    
    	imp/docs/CHANGES
    	imp/lib/Compose.php
    	imp/package.xml

 imp/lib/Compose.php |   29 +++++++++++------------------
 1 files changed, 11 insertions(+), 18 deletions(-)

http://git.horde.org/horde-git/-/commit/0a3d57b3ff73564b79bf35640c3c34bbf9a1732a</description> 
   <pubDate>Tue, 17 Apr 2012 13:26:20 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11085#t71240</link> 
  </item> 
   
  <item> 
   <title>Simply reverting Michael&#039;s commit (which is an adaption of m</title> 
   <description>Simply reverting Michael&#039;s commit (which is an adaption of my proposed patch) won&#039;t solve this problem. So can we reopen that ticket? PGP Encryption is imho in that way still broken, but just at another part.

&gt; $to *is* an array of address strings. How did you get address 
&gt; objects? This change actually breaks encrypting for the senders, see 
&gt; bug #11150.

I don&#039;t know how AddressObjects arrive at that part of the codebase, but I figured that out, by using var_dump at that location. What I can confirm is that my patched solved our problem and works well.

Note my provided log warning about array_flip that fails, how would that appear if we would receive an array of strings?
We simply installed horde webmail via pear and had this problem. No other modifications were made.

How can we debug that further and provide you with the necessary information to fix it properly?</description> 
   <pubDate>Tue, 17 Apr 2012 15:21:19 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11085#t71243</link> 
  </item> 
   
  <item> 
   <title>&gt; How can we debug that further and provide you with the nec</title> 
   <description>&gt; How can we debug that further and provide you with the necessary 
&gt; information to fix it properly?

Also note the remark in #11150 comment 1:

&gt; This error does not appear when installing app by app.

So there seems to be some kind of difference what one install.</description> 
   <pubDate>Tue, 17 Apr 2012 15:24:58 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11085#t71244</link> 
  </item> 
   
  <item> 
   <title>&gt; Simply reverting Michael&#039;s commit (which is an adaption of</title> 
   <description>&gt; Simply reverting Michael&#039;s commit (which is an adaption of my 
&gt; proposed patch) won&#039;t solve this problem. So can we reopen that 
&gt; ticket? PGP Encryption is imho in that way still broken, but just at 
&gt; another part.
&gt;
&gt;&gt; $to *is* an array of address strings. How did you get address
&gt;&gt; objects? This change actually breaks encrypting for the senders, see
&gt;&gt; bug #11150.
&gt;
&gt; I don&#039;t know how AddressObjects arrive at that part of the codebase, 
&gt; but I figured that out, by using var_dump at that location. What I 
&gt; can confirm is that my patched solved our problem and works well.
&gt;
&gt; Note my provided log warning about array_flip that fails, how would 
&gt; that appear if we would receive an array of strings?
&gt; We simply installed horde webmail via pear and had this problem. No 
&gt; other modifications were made.
&gt;
&gt; How can we debug that further and provide you with the necessary 
&gt; information to fix it properly?

Track down where the data is coming from.

Horde::debug() documentation: http://wiki.horde.org/Doc/Dev/DebugH4</description> 
   <pubDate>Tue, 17 Apr 2012 16:34:11 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11085#t71245</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; How can we debug that further and provide you with the ne</title> 
   <description>&gt;&gt; How can we debug that further and provide you with the necessary
&gt;&gt; information to fix it properly?
&gt;
&gt; Also note the remark in #11150 comment 1:
&gt;
&gt;&gt; This error does not appear when installing app by app.
&gt;
&gt; So there seems to be some kind of difference what one install.

This doesn&#039;t make any sense, webmail *is* the apps installed individually. The only difference is that the address book preferences in IMP are pre-set. But that doesn&#039;t change the data exchanged between Turba and IMP.</description> 
   <pubDate>Tue, 17 Apr 2012 16:36:53 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11085#t71246</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; How can we debug that further and provide you with the ne</title> 
   <description>&gt;&gt; How can we debug that further and provide you with the necessary
&gt;&gt; information to fix it properly?
&gt;
&gt; Track down where the data is coming from.
&gt;
&gt; Horde::debug() documentation: http://wiki.horde.org/Doc/Dev/DebugH4

Added a
  Horde::debug($to)

statement right in the beginning of _createMimeMessage.

2012-04-18T00:44:01+02:00 DEBUG: Variable information:
array(1) {
  [0]=&gt;
  array(5) {
    [&quot;comment&quot;]=&gt;
    array(0) {
    }
    [&quot;host&quot;]=&gt;
    string(10) &quot;example.com&quot;
    [&quot;mailbox&quot;]=&gt;
    string(2) &quot;foo&quot;
    [&quot;personal&quot;]=&gt;
    NULL
    [&quot;route&quot;]=&gt;
    array(0) {
    }
  }
}

Backtrace:
1. IMP_Ajax_Application-&gt;doAction() /var/www/vhosts/horde.example.com/www/services/ajax.php:60
2. Horde_Core_Ajax_Application-&gt;doAction() /var/www/vhosts/horde.example.com/www/imp/lib/Ajax/Application.php:95
3. call_user_func() /var/www/vhosts/horde.example.com/pear/php/Horde/Core/Ajax/Application.php:95
4. IMP_Ajax_Application-&gt;sendMessage()
5. IMP_Compose-&gt;buildAndSendMessage() /var/www/vhosts/horde.example.com/www/imp/lib/Ajax/Application.php:1583
6. IMP_Compose-&gt;_createMimeMessage() /var/www/vhosts/horde.example.com/www/imp/lib/Compose.php:614
7. Horde::debug() /var/www/vhosts/horde.example.com/www/imp/lib/Compose.php:1162

If I should provide you with any further information, please let me know.</description> 
   <pubDate>Tue, 17 Apr 2012 22:50:06 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11085#t71250</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt;&gt; How can we debug that further and provide you with the n</title> 
   <description>&gt;&gt;&gt; How can we debug that further and provide you with the necessary
&gt;&gt;&gt; information to fix it properly?
&gt;&gt;
&gt;&gt; Also note the remark in #11150 comment 1:
&gt;&gt;
&gt;&gt;&gt; This error does not appear when installing app by app.
&gt;&gt;
&gt;&gt; So there seems to be some kind of difference what one install.
&gt;
&gt; This doesn&#039;t make any sense, webmail *is* the apps installed 
&gt; individually. The only difference is that the address book 
&gt; preferences in IMP are pre-set. But that doesn&#039;t change the data 
&gt; exchanged between Turba and IMP.

It&#039;s definately weird. Although others had the exact same problem [1] &amp; [2], not all seemed to be able to use my patch. But I hoped that my proposal will be properly verified and cleaned up if necessary, as I&#039;m not very familiar with the horde framework, nor a php programmer. Which is what I thought Michael did.

Anyway, let&#039;s properly figure out, what goes wrong here and get a fix for it. We should probably reopen that ticket, or create a proper one.

[1] http://comments.gmane.org/gmane.comp.horde.user/27529
[2] http://comments.gmane.org/gmane.comp.horde.imp/29408</description> 
   <pubDate>Tue, 17 Apr 2012 22:57:36 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11085#t71251</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt;&gt; How can we debug that further and provide you with the n</title> 
   <description>&gt;&gt;&gt; How can we debug that further and provide you with the necessary
&gt;&gt;&gt; information to fix it properly?
&gt;&gt;
&gt;&gt; Track down where the data is coming from.
&gt;&gt;
&gt;&gt; Horde::debug() documentation: http://wiki.horde.org/Doc/Dev/DebugH4
&gt;
&gt; Added a
&gt;   Horde::debug($to)
&gt;
&gt; statement right in the beginning of _createMimeMessage.
&gt;
&gt; 2012-04-18T00:44:01+02:00 DEBUG: Variable information:
&gt; array(1) {
&gt;   [0]=&gt;
&gt;   array(5) {
&gt;     [&quot;comment&quot;]=&gt;
&gt;     array(0) {
&gt;     }
&gt;     [&quot;host&quot;]=&gt;
&gt;     string(10) &quot;example.com&quot;
&gt;     [&quot;mailbox&quot;]=&gt;
&gt;     string(2) &quot;foo&quot;
&gt;     [&quot;personal&quot;]=&gt;
&gt;     NULL
&gt;     [&quot;route&quot;]=&gt;
&gt;     array(0) {
&gt;     }
&gt;   }
&gt; }

I tracked the code and can&#039;t for the life of me see how such a struct would end up in the line.
Are you sure you are using the latest IMP *including* my recent commit? Are the other libraries up-to-date?
If yes, you need to track down yourself, where this array is coming from.

&gt; Backtrace:
&gt; 1. IMP_Ajax_Application-&gt;doAction() 
&gt; /var/www/vhosts/horde.example.com/www/services/ajax.php:60
&gt; 2. Horde_Core_Ajax_Application-&gt;doAction() 
&gt; /var/www/vhosts/horde.example.com/www/imp/lib/Ajax/Application.php:95
&gt; 3. call_user_func() 
&gt; /var/www/vhosts/horde.example.com/pear/php/Horde/Core/Ajax/Application.php:95
&gt; 4. IMP_Ajax_Application-&gt;sendMessage()
&gt; 5. IMP_Compose-&gt;buildAndSendMessage() 
&gt; /var/www/vhosts/horde.example.com/www/imp/lib/Ajax/Application.php:1583
&gt; 6. IMP_Compose-&gt;_createMimeMessage() 
&gt; /var/www/vhosts/horde.example.com/www/imp/lib/Compose.php:614
&gt; 7. Horde::debug() 
&gt; /var/www/vhosts/horde.example.com/www/imp/lib/Compose.php:1162
&gt;
&gt; If I should provide you with any further information, please let me know.
</description> 
   <pubDate>Wed, 18 Apr 2012 10:45:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11085#t71253</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git (develop):

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

commit 0a3d57b3ff73564b79bf35640c3c34bbf9a1732a
Author: Jan Schneider &lt;jan@horde.org&gt;
Date:   Tue Apr 17 15:21:30 2012 +0200

    Revert &quot;[mms] Fix regression in sending PGP encrypted messages (Bug #11085).&quot;
    
    This reverts commit c5540771fc376b2e770d49f8a7a4e0cdfacf65ba.
    
    Conflicts:
    
    	imp/docs/CHANGES
    	imp/lib/Compose.php
    	imp/package.xml

 imp/lib/Compose.php |   29 +++++++++++------------------
 1 files changed, 11 insertions(+), 18 deletions(-)

http://git.horde.org/horde-git/-/commit/0a3d57b3ff73564b79bf35640c3c34bbf9a1732a</description> 
   <pubDate>Thu, 19 Apr 2012 06:09:54 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11085#t71262</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
