Need to provide these stub methods here.
authorMichael M Slusarz <slusarz@curecanti.org>
Sat, 11 Sep 2010 05:19:22 +0000 (23:19 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Sat, 11 Sep 2010 17:05:51 +0000 (11:05 -0600)
Doesn't really belong here, though, but the Itip package is sort of
broken in that it requires these methods to exist.

framework/Core/lib/Horde/Core/Prefs/Identity.php

index 92a0d77..25aa7f7 100644 (file)
@@ -112,4 +112,35 @@ class Horde_Core_Prefs_Identity extends Horde_Prefs_Identity
         $notification->push(sprintf(_("The email address %s has been added to your identities. You can close this window now."), $verified[$this->_prefnames['from_addr']]), 'horde.success');
     }
 
+    /**
+     * Returns the from address based on the chosen identity. If no
+     * address can be found it is built from the current user name and
+     * the specified maildomain.
+     *
+     * @param integer $ident  The identity to retrieve the address from.
+     *
+     * @return string  A valid from address.
+     */
+    public function getFromAddress($ident = null)
+    {
+        return $GLOBALS['prefs']->getValue('from_addr');
+    }
+
+    /**
+     * Returns the identity's id that matches the passed addresses.
+     *
+     * @param mixed $addresses     Either an array or a single string or a
+     *                             comma-separated list of email addresses.
+     * @param boolean $search_own  Search for a matching identity in own
+     *                             addresses also?
+     *
+     * @return integer  The id of the first identity that from or alias
+     *                  addresses match (one of) the passed addresses or
+     *                  null if none matches.
+     */
+    public function getMatchingIdentity($addresses, $search_own = true)
+    {
+        return null;
+    }
+
 }