Ignore \RECENT flag when doing an append
authorMichael M Slusarz <slusarz@curecanti.org>
Mon, 26 Apr 2010 07:19:11 +0000 (01:19 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Mon, 26 Apr 2010 07:19:23 +0000 (01:19 -0600)
framework/Imap_Client/lib/Horde/Imap/Client/Socket.php

index f8ac27a..2d955f8 100644 (file)
@@ -1397,7 +1397,10 @@ class Horde_Imap_Client_Socket extends Horde_Imap_Client_Base
             if (!empty($data[$key]['flags'])) {
                 $tmp = array();
                 foreach ($data[$key]['flags'] as $val) {
-                    $tmp[] = array('t' => Horde_Imap_Client::DATA_ATOM, 'v' => $val);
+                    /* Ignore recent flag. RFC 3501 [9]: flag definition */
+                    if (strcasecmp($val, '\\recent') !== 0) {
+                        $tmp[] = array('t' => Horde_Imap_Client::DATA_ATOM, 'v' => $val);
+                    }
                 }
                 $cmd[] = $tmp;
             }