$prefs = Prefs::singleton($conf['prefs']['driver'], 'horde', $mail_user);
$prefs->retrieve();
- include_once 'Horde/Identity.php';
$mail_identity = Identity::singleton('none', $mail_user);
$mail_address = $mail_identity->getDefaultFromAddress();
$get_sig = true;
$msg = '';
-require_once 'Horde/Identity.php';
$identity = Identity::singleton(array('imp', 'imp'));
if (!$prefs->isLocked('default_identity')) {
$identity_id = Horde_Util::getFormData('identity');
}
require_once dirname(__FILE__) . '/lib/base.php';
-require_once 'Horde/Identity.php';
/* The message text and headers. */
$msg = '';
$compose_page = true;
$session_control = 'netscape';
require_once dirname(__FILE__) . '/lib/base.php';
-require_once 'Horde/Identity.php';
/* The message headers and text. */
$header = array();
if (empty($ids)) {
$html .= '<tr><td><em>' . _("No unread messages") . '</em></td></tr>';
} else {
- require_once 'Horde/Identity.php';
-
$charset = Horde_Nls::getCharset();
$imp_ui = new IMP_UI_Mailbox('INBOX');
$shown = empty($this->_params['msgs_shown']) ? 3 : $this->_params['msgs_shown'];
$identity_id = null;
$headers = $contents->getHeaderOb();
if (($fromaddr = Horde_Mime_Address::bareAddress($headers->getValue('from')))) {
- require_once 'Horde/Identity.php';
$identity = Identity::singleton(array('imp', 'imp'));
$identity_id = $identity->getMatchingIdentity($fromaddr);
}
if (in_array($actionID, array('reply_all', '*'))) {
/* Filter out our own address from the addresses we reply to. */
- require_once 'Horde/Identity.php';
$identity = Identity::singleton(array('imp', 'imp'));
$all_addrs = array_keys($identity->getAllFromAddresses(true));
$msgAddresses[] = $h->getValue($val);
}
- require_once 'Horde/Identity.php';
$user_identity = Identity::singleton(array('imp', 'imp'));
return $user_identity->getMatchingIdentity($msgAddresses);
}
/* TODO: Retrieve by ID. */
/* See if the address points to the user's public key. */
- require_once 'Horde/Identity.php';
$identity = Identity::singleton(array('imp', 'imp'));
$personal_pubkey = $this->getPersonalPublicKey();
if (!empty($personal_pubkey) && $identity->hasAddress($address)) {
$key = $GLOBALS['registry']->call('contacts/getField', array($address, self::PUBKEY_FIELD, $params['sources'], false, true));
} catch (Horde_Exception $e) {
/* See if the address points to the user's public key. */
- require_once 'Horde/Identity.php';
$identity = Identity::singleton(array('imp', 'imp'));
$personal_pubkey = $this->getPersonalPublicKey();
if (!empty($personal_pubkey) && $identity->hasAddress($address)) {
static public function isSpecialFolder($mbox)
{
/* Get the identities. */
- require_once 'Horde/Identity.php';
$identity = Identity::singleton(array('imp', 'imp'));
return (($mbox == self::folderPref($GLOBALS['prefs']->getValue('drafts_folder'), true)) || in_array($mbox, $identity->getAllSentmailFolders()));
if (isset($options['personal'])) {
if (is_array($options['personal'])) {
- require_once 'Horde/Identity.php';
$identity = Identity::singleton(array('imp', 'imp'));
foreach ($options['personal'] as $val) {
if ($identity->hasAddress($val['inner'])) {
global $prefs, $registry;
/* Initialize the user's identities. */
- require_once 'Horde/Identity.php';
$identity = Identity::singleton(array('imp', 'imp'));
return array(
/* Get list of all folders, parse through and get the list of all
old sent-mail folders. Then sort this array according to
the date. */
- include_once 'Horde/Identity.php';
$identity = Identity::singleton(array('imp', 'imp'));
$imp_folder = IMP_Folder::singleton();
$sent_mail_folders = $identity->getAllSentmailFolders();
*/
protected function _getFolders()
{
- require_once 'Horde/Identity.php';
return Identity::singleton(array('imp', 'imp'))->getAllSentmailfolders();
}
{
$success = true;
- include_once 'Horde/Identity.php';
-
$identity = Identity::singleton(array('imp', 'imp'));
$imp_folder = IMP_Folder::singleton();
*/
public function describe()
{
- include_once 'Horde/Identity.php';
$identity = Identity::singleton(array('imp', 'imp'));
$new_folders = $old_folders = array();
$organizer = $vEvent->getAttribute('ORGANIZER', true);
$organizerName = isset($organizer['cn']) ? $organizer['cn'] : '';
- require_once 'Horde/Identity.php';
-
// Build the reply.
$vCal = new Horde_iCalendar();
$vCal->setAttribute('PRODID', '-//The Horde Project//' . HORDE_AGENT_HEADER . '//EN');
$vfb_reply = $registry->call('calendar/getFreeBusy',
array('startStamp' => $startStamp,
'endStamp' => $endStamp));
- require_once 'Horde/Identity.php';
-
// Find out who we are and update status.
$identity = Identity::singleton();
$email = $identity->getFromAddress();
// Check that you are one of the attendees here.
$is_attendee = false;
if (!is_a($attendees, 'PEAR_Error') && !empty($attendees)) {
- require_once 'Horde/Identity.php';
$identity = Identity::singleton(array('imp', 'imp'));
for ($i = 0, $c = count($attendees); $i < $c; ++$i) {
$attendee = parse_url($attendees[$i]);
}
if (!isset($imp_compose)) {
- require_once 'Horde/Identity.php';
$imp_compose = IMP_Compose::singleton();
$identity = Identity::singleton(array('imp', 'imp'));
try {
);
/* Load Identity. */
- require_once 'Horde/Identity.php';
$identity = Identity::singleton(array('imp', 'imp'));
$selected_identity = $identity->getDefault();
$sent_mail_folder = $identity->getValue('sent_mail_folder');
return $msgs;
}
- require_once 'Horde/Identity.php';
-
/* Get mailbox information. */
$overview = $imp_mailbox->getMailboxArray($msglist, array('headers' => array('list-post', 'x-priority'), 'structure' => $GLOBALS['prefs']->getValue('atc_flag')));
$charset = Horde_Nls::getCharset();
}
throw $e;
}
+
$conf = &$GLOBALS['conf'];
if (!defined('IMP_TEMPLATES')) {
define('IMP_TEMPLATES', $registry->get('templates'));
}
+// TODO: Remove once this can be autoloaded
+require_once 'Horde/Identity.php';
+
// Initialize global $imp_imap object.
if (!isset($GLOBALS['imp_imap'])) {
$GLOBALS['imp_imap'] = new IMP_Imap();
$imp_ui = new IMP_UI_Message();
/* Create the Identity object. */
-require_once 'Horde/Identity.php';
$user_identity = Identity::singleton(array('imp', 'imp'));
/* Develop the list of headers to display. */
Horde_Nls::setTimeZone();
/* Initialize the user's identities. */
-require_once 'Horde/Identity.php';
$user_identity = Identity::singleton(array('imp', 'imp'));
/* Run through action handlers. */
$t->set('deletekeypair', addslashes(_("Are you sure you want to delete your keypair? (This is NOT recommended!)")));
$t->set('personalkey-delete-help', Horde_Help::link('imp', 'pgp-personalkey-delete'));
} else {
- require_once 'Horde/Identity.php';
$imp_identity = Identity::singleton(array('imp', 'imp'));
$t->set('fullname', $imp_identity->getFullname());
$t->set('personalkey-create-name-help', Horde_Help::link('imp', 'pgp-personalkey-create-name'));