6.0.0-beta1
11/8/25

[#4014] imp display a warning if 2 values are identical in the imap server CAPABILITIES
Summary imp display a warning if 2 values are identical in the imap server CAPABILITIES
Queue IMP
Queue Version HEAD
Type Bug
State Resolved
Priority 2. Medium
Owners slusarz (at) horde (dot) org
Requester sylvain.costard (at) uhb (dot) fr
Created 06/07/2006 (7094 days ago)
Due
Updated 06/07/2006 (7094 days ago)
Assigned 06/07/2006 (7094 days ago)
Resolved 06/07/2006 (7094 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
06/07/2006 06:02:24 PM Michael Slusarz Comment #2
State ⇒ Resolved
Reply to this comment
Fixed in HEAD and 4.1.2 (and MIMP 1.0).
06/07/2006 05:55:15 PM Michael Slusarz Version ⇒ HEAD
 
06/07/2006 05:48:21 PM Chuck Hagenbuch Assigned to Michael Slusarz
State ⇒ Assigned
 
06/07/2006 12:35:29 PM sylvain (dot) costard (at) uhb (dot) fr Comment #1
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ imp display a warning if 2 values are identical in the imap server CAPABILITIES
Queue ⇒ IMP
New Attachment: imp-4.1.1-capabilities.diff Download
Reply to this comment
After upgrading imap in 2.3.6 i got the warning :   Cannot use a 
scalar value as an array in 
<b>/applis/Internet/horde-3.1.1/imp-h3-4.1.1/lib/IMAP/Client.php</b> 
on line <b>656</b><br />



this is due to two consecutive values with the same keys in the imap 
Capabilities.



here is the detail of the capabilities (the SORT fallowed by   
SORT=MODSEQ was the problem) :



     [0] =&gt; *

     [1] =&gt; CAPABILITY

     [2] =&gt; IMAP4

     [3] =&gt; IMAP4rev1

     [4] =&gt; LITERAL+

     [5] =&gt; ID

     [6] =&gt; AUTH=PLAIN

     [7] =&gt; SASL-IR

     [8] =&gt; ACL

     [9] =&gt; RIGHTS=kxte

     [10] =&gt; QUOTA

     [11] =&gt; MAILBOX-REFERRALS

     [12] =&gt; NAMESPACE

     [13] =&gt; UIDPLUS

     [14] =&gt; NO_ATOMIC_RENAME

     [15] =&gt; UNSELECT

     [16] =&gt; CHILDREN

     [17] =&gt; MULTIAPPEND

     [18] =&gt; BINARY

     [19] =&gt; SORT

     [20] =&gt; SORT=MODSEQ

     [21] =&gt; THREAD=ORDEREDSUBJECT

     [22] =&gt; THREAD=REFERENCES

     [23] =&gt; ANNOTATEMORE

     [24] =&gt; CATENATE

     [25] =&gt; CONDSTORE

     [26] =&gt; IDLE

     [27] =&gt; LISTEXT

     [28] =&gt; LIST-SUBSCRIBED

     [29] =&gt; X-NETSCAPE

     [30] =&gt; URLAUTH



the patch adds a condition in the test to see if the value is already an array


Saved Queries