Skip to content

Commit

Permalink
Remove basic view mailbox code
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Oct 16, 2014
1 parent fcc4101 commit d665182
Show file tree
Hide file tree
Showing 17 changed files with 4 additions and 1,848 deletions.
57 changes: 0 additions & 57 deletions imp/config/hooks.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -398,63 +398,6 @@ class IMP_Hooks
// }


/**
* When a mailbox is opened in IMP, allow redirection based on the mailbox
* name.
*
* @param string $mailbox The mailbox which the user has opened.
*
* @return string A valid page within a Horde application which will be
* placed in a "Location" header to redirect the client.
* Return an empty string if the user is not to be
* redirected.
*/
// public function mbox_redirect($mailbox)
// {
// // Example #1: Redirect to various Horde apps based on the mailbox
// // name.
// if ((stripos($mailbox, "INBOX/Calendar") !== false) ||
// preg_match("!^user/[^/]+/Calendar!", $mailbox)) {
// return Horde::url('', false, array('app' => 'kronolith'));
// } elseif ((stripos($mailbox, "INBOX/Tasks") !== false) ||
// preg_match("!^user/[^/]+/Tasks!", $mailbox)) {
// return Horde::url('', false, array('app' => 'nag'));
// } elseif ((strpos($mailbox, "INBOX/Notes") !== false) ||
// preg_match("!^user/[^/]+/Notes!", $mailbox)) {
// return Horde::url('', false, array('app' => 'mnemo'));
// } elseif ((strpos($mailbox, "INBOX/Contacts") !== false) ||
// preg_match("!^user/[^/]+/Contacts!", $mailbox)) {
// return Horde::url('', false, array('app' => 'turba'));
// }
//
// return '';
//
//
// // Example #2: Kolab defaults.
// $type = $GLOBALS['injector']->getInstance('Horde_Kolab_Storage')
// ->getFolder($mailbox)->getType();
// switch ($type) {
// case 'event':
// return Horde::url('', false, array('app' => 'kronolith'));
//
// case 'task':
// return Horde::url('', false, array('app' => 'nag'));
//
// case 'note':
// return Horde::url('', false, array('app' => 'mnemo'));
//
// case 'contact':
// return Horde::url('', false, array('app' => 'turba'));
//
// case 'prefs':
// return $GLOBALS['registry']->getServiceLink('prefs', 'horde');
//
// default:
// return '';
// }
// }


/**
* Allow a custom mailbox icon to be specified for "standard" mailboxes
* ("Standard" means all mailboxes except the INBOX, sent-mail, and
Expand Down
4 changes: 4 additions & 0 deletions imp/docs/UPGRADING
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ The following hooks have been added::

dynamic_prefs

The following hooks have been removed::

mbox_redirect


Preferences (prefs.php)
-----------------------
Expand Down

0 comments on commit d665182

Please sign in to comment.