Remove function that no longer exists.
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 3 Mar 2009 04:49:13 +0000 (21:49 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 3 Mar 2009 05:16:30 +0000 (22:16 -0700)
Reuse existing code.
Add some more status flags not supported by POP.

framework/Imap_Client/lib/Horde/Imap/Client/Cclient/Pop3.php

index 68df441..81fa1e1 100644 (file)
@@ -167,18 +167,6 @@ class Horde_Imap_Client_Cclient_Pop3 extends Horde_Imap_Client_Cclient
     }
 
     /**
-     * Unsubscribe to a mailbox.
-     *
-     * @param string $mailbox  The mailbox to unsubscribe to (UTF7-IMAP).
-     *
-     * @throws Horde_Imap_Client_Exception
-     */
-    protected function _unsubscribeMailbox($mailbox)
-    {
-        throw new Horde_Imap_Client_Exception('Mailboxes other than INBOX not supported on POP3 servers.', Horde_Imap_Client_Exception::POP3_NOTSUPPORTED);
-    }
-
-    /**
      * Obtain a list of mailboxes matching a pattern.
      *
      * @param string $pattern  The mailbox search pattern.
@@ -214,14 +202,14 @@ class Horde_Imap_Client_Cclient_Pop3 extends Horde_Imap_Client_Cclient
      */
     protected function _status($mailbox, $flags)
     {
-        if (strcasecmp($mailbox, 'INBOX') !== 0) {
-            throw new Horde_Imap_Client_Exception('Mailboxes other than INBOX not supported on POP3 servers.', Horde_Imap_Client_Exception::POP3_NOTSUPPORTED);
-        }
+        $this->openMailbox($mailbox);
 
         // This driver only supports the base flags given by c-client.
         if (($flags & Horde_Imap_Client::STATUS_FIRSTUNSEEN) ||
             ($flags & Horde_Imap_Client::STATUS_FLAGS) ||
-            ($flags & Horde_Imap_Client::STATUS_PERMFLAGS)) {
+            ($flags & Horde_Imap_Client::STATUS_PERMFLAGS) ||
+            ($flags & Horde_Imap_Client::STATUS_HIGHESTMODSEQ) ||
+            ($flags & Horde_Imap_Client::STATUS_UIDNOTSTICKY)) {
             throw new Horde_Imap_Client_Exception('Improper status request on POP3 server.', Horde_Imap_Client_Exception::POP3_NOTSUPPORTED);
         }