Overview

Packages

  • IMP
  • None

Classes

  • IMP
  • IMP_Ajax_Application
  • IMP_Ajax_Imple_ContactAutoCompleter
  • IMP_Ajax_Imple_PassphraseDialog
  • IMP_Ajax_Queue
  • IMP_Api
  • IMP_Auth
  • IMP_Block_Newmail
  • IMP_Block_Summary
  • IMP_Compose
  • IMP_Compose_Exception
  • IMP_Compose_Stationery
  • IMP_Contents
  • IMP_Crypt_Pgp
  • IMP_Crypt_Smime
  • IMP_Dimp
  • IMP_Exception
  • IMP_Factory_AuthImap
  • IMP_Factory_Compose
  • IMP_Factory_Contents
  • IMP_Factory_Flags
  • IMP_Factory_Identity
  • IMP_Factory_Imap
  • IMP_Factory_Imaptree
  • IMP_Factory_Mail
  • IMP_Factory_Mailbox
  • IMP_Factory_MailboxList
  • IMP_Factory_MimeViewer
  • IMP_Factory_Pgp
  • IMP_Factory_Quota
  • IMP_Factory_Search
  • IMP_Factory_Sentmail
  • IMP_Factory_Smime
  • IMP_Filter
  • IMP_Flag_Base
  • IMP_Flag_Imap
  • IMP_Flag_Imap_Answered
  • IMP_Flag_Imap_Deleted
  • IMP_Flag_Imap_Draft
  • IMP_Flag_Imap_Flagged
  • IMP_Flag_Imap_Forwarded
  • IMP_Flag_Imap_Junk
  • IMP_Flag_Imap_NotJunk
  • IMP_Flag_Imap_Seen
  • IMP_Flag_System_Attachment
  • IMP_Flag_System_Encrypted
  • IMP_Flag_System_HighPriority
  • IMP_Flag_System_List
  • IMP_Flag_System_LowPriority
  • IMP_Flag_System_Match_Address
  • IMP_Flag_System_Match_Flag
  • IMP_Flag_System_Match_Header
  • IMP_Flag_System_Personal
  • IMP_Flag_System_Signed
  • IMP_Flag_System_Unseen
  • IMP_Flag_User
  • IMP_Flags
  • IMP_Imap
  • IMP_Imap_Acl
  • IMP_Imap_Exception
  • IMP_Imap_PermanentFlags
  • IMP_Imap_Thread
  • IMP_Imap_Tree
  • IMP_Indices
  • IMP_Indices_Form
  • IMP_LoginTasks_SystemTask_GarbageCollection
  • IMP_LoginTasks_SystemTask_Upgrade
  • IMP_LoginTasks_SystemTask_UpgradeAuth
  • IMP_LoginTasks_Task_Autocreate
  • IMP_LoginTasks_Task_DeleteAttachmentsMonthly
  • IMP_LoginTasks_Task_DeleteSentmailMonthly
  • IMP_LoginTasks_Task_FilterOnLogin
  • IMP_LoginTasks_Task_PurgeSentmail
  • IMP_LoginTasks_Task_PurgeSpam
  • IMP_LoginTasks_Task_PurgeTrash
  • IMP_LoginTasks_Task_RecoverDraft
  • IMP_LoginTasks_Task_RenameSentmailMonthly
  • IMP_Mailbox
  • IMP_Mailbox_List
  • IMP_Mailbox_List_Track
  • IMP_Maillog
  • IMP_Menu_Dimp
  • IMP_Message
  • IMP_Mime_Status
  • IMP_Mime_Viewer_Alternative
  • IMP_Mime_Viewer_Appledouble
  • IMP_Mime_Viewer_Audio
  • IMP_Mime_Viewer_Enriched
  • IMP_Mime_Viewer_Externalbody
  • IMP_Mime_Viewer_Html
  • IMP_Mime_Viewer_Images
  • IMP_Mime_Viewer_Itip
  • IMP_Mime_Viewer_Mdn
  • IMP_Mime_Viewer_Partial
  • IMP_Mime_Viewer_Pdf
  • IMP_Mime_Viewer_Pgp
  • IMP_Mime_Viewer_Plain
  • IMP_Mime_Viewer_Related
  • IMP_Mime_Viewer_Rfc822
  • IMP_Mime_Viewer_Smil
  • IMP_Mime_Viewer_Smime
  • IMP_Mime_Viewer_Status
  • IMP_Mime_Viewer_Vcard
  • IMP_Mime_Viewer_Video
  • IMP_Mime_Viewer_Zip
  • IMP_Notification_Event_Status
  • IMP_Notification_Handler_Decorator_ImapAlerts
  • IMP_Notification_Handler_Decorator_NewmailNotify
  • IMP_Notification_Listener_AjaxStatus
  • Imp_Prefs_Identity
  • IMP_Prefs_Ui
  • IMP_Quota
  • IMP_Quota_Base
  • IMP_Quota_Command
  • IMP_Quota_Hook
  • IMP_Quota_Imap
  • IMP_Quota_Maildir
  • IMP_Quota_Mdaemon
  • IMP_Quota_Mercury32
  • IMP_Quota_Null
  • IMP_Quota_Sql
  • IMP_Search
  • IMP_Search_Element
  • IMP_Search_Element_Attachment
  • IMP_Search_Element_Autogenerated
  • IMP_Search_Element_Bulk
  • IMP_Search_Element_Contacts
  • IMP_Search_Element_Date
  • IMP_Search_Element_Flag
  • IMP_Search_Element_Header
  • IMP_Search_Element_Mailinglist
  • IMP_Search_Element_Or
  • IMP_Search_Element_Personal
  • IMP_Search_Element_Recipient
  • IMP_Search_Element_Size
  • IMP_Search_Element_Text
  • IMP_Search_Element_Within
  • IMP_Search_Filter
  • IMP_Search_Filter_Attachment
  • IMP_Search_Filter_Autogenerated
  • IMP_Search_Filter_Builtin
  • IMP_Search_Filter_Bulk
  • IMP_Search_Filter_Contacts
  • IMP_Search_Filter_Mailinglist
  • IMP_Search_Filter_Personal
  • IMP_Search_Query
  • IMP_Search_Vfolder
  • IMP_Search_Vfolder_Builtin
  • IMP_Search_Vfolder_Vinbox
  • IMP_Search_Vfolder_Vtrash
  • IMP_Sentmail
  • IMP_Sentmail_Base
  • IMP_Sentmail_Null
  • IMP_Sentmail_Sql
  • IMP_Spam
  • IMP_Test
  • IMP_Tree_Flist
  • IMP_Tree_Jquerymobile
  • IMP_Tree_Simplehtml
  • IMP_Ui_Compose
  • IMP_Ui_Editor
  • IMP_Ui_Folder
  • IMP_Ui_Headers
  • IMP_Ui_Imageview
  • IMP_Ui_Mailbox
  • IMP_Ui_Message
  • IMP_Ui_Mimp
  • IMP_Ui_Search
  • IMP_Views_Compose
  • IMP_Views_ListMessages
  • IMP_Views_ShowMessage
  • Overview
  • Package
  • Class
  • Tree

Class IMP

IMP Base Class.

Copyright 1999-2012 Horde LLC (http://www.horde.org/)

See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.

Package: IMP
Category: Horde
License: GPL
Author: Chuck Hagenbuch chuck@horde.org
Author: Jon Parise jon@horde.org
Author: Michael Slusarz slusarz@horde.org
Located at IMP.php
Methods summary
public static string
# getViewMode( )

Returns the current view mode for IMP.

Returns the current view mode for IMP.

Returns

string
Either 'dimp', 'imp', 'mimp', or 'mobile'.
public static boolean
# showAjaxView( )

Determines if we should display the ajax view based on a combination of user prefs and browser capabilities.

Determines if we should display the ajax view based on a combination of user prefs and browser capabilities.

Returns

boolean
A boolean indicating if we should show the ajax view.
public static string
# addAddress( string $newAddress, string $newName )

Adds a contact to the user defined address book.

Adds a contact to the user defined address book.

Parameters

$newAddress
The contact's email address.
$newName
The contact's name.

Returns

string
A link or message to show in the notification area.

Throws

Horde_Exception
public static string
# flistSelect( array $options = array() )

Generates a select form input from a folder list. The <select> and </select> tags are NOT included in the output.

Generates a select form input from a folder list. The <select> and </select> tags are NOT included in the output.

Parameters

$options
<p>Optional parameters: - abbrev: (boolean) Abbreviate long mailbox names by replacing the middle of the name with '...'? DEFAULT: Yes - basename: (boolean) Use raw basename instead of abbreviated label? DEFAULT: false - filter: (array) An array of mailboxes to ignore. DEFAULT: Display all - heading: (string) The label for an empty-value option at the top of the list. DEFAULT: '' - inc_notepads: (boolean) Include user's editable notepads in list? DEFAULT: No - inc_tasklists: (boolean) Include user's editable tasklists in list? DEFAULT: No - inc_vfolder: (boolean) Include user's virtual folders in list? DEFAULT: No - new_folder: (boolean) Display an option to create a new folder? DEFAULT: No - selected: (string) The mailbox to have selected by default. DEFAULT: None</p>

Returns

string

A string containing

public static string
# getComposeArgs( )

Checks for To:, Subject:, Cc:, and other compose window arguments and pass back an associative array of those that are present.

Checks for To:, Subject:, Cc:, and other compose window arguments and pass back an associative array of those that are present.

Returns

string
An associative array with compose arguments.
public static Horde_Url
# composeLink( mixed $args = array(), array $extra = array(), string $simplejs = false )

Returns the appropriate link to call the message composition script.

Returns the appropriate link to call the message composition script.

Parameters

$args
<p>List of arguments to pass to compose script. If this is passed in as a string, it will be parsed as a toaddress?subject=foo&amp;cc=ccaddress (mailto-style) string.</p>
$extra
<p>Hash of extra, non-standard arguments to pass to compose script.</p>
$simplejs
<p>Use simple JS (instead of Horde.popup() JS function)?</p>

Returns

Horde_Url
The link to the message composition script.
public static string
# composeLinkSimpleCallback( Horde_Url $url )

Callback for Horde_Url when generating "simple" compose links. Simple links don't require exterior javascript libraries.

Callback for Horde_Url when generating "simple" compose links. Simple links don't require exterior javascript libraries.

Parameters

$url
URL object.

Returns

string
URL string representation.
public static string
# composeLinkJsCallback( Horde_Url $url )

Callback for Horde_Url when generating javascript compose links.

Callback for Horde_Url when generating javascript compose links.

Parameters

$url
URL object.

Returns

string
URL string representation.
public static string
# filterText( string $text )

Filters a string, if requested.

Filters a string, if requested.

Parameters

$text
The text to filter.

Returns

string
The filtered text (if requested).
public boolean
# hasPermission( string $permission, mixed $opts = array() )

Returns whether the specified permission is granted.

Returns whether the specified permission is granted.

Parameters

$permission
The permission to check.
$opts
$allowed The allowed permissions.

Returns

boolean
Whether the specified permission is allowed.
public static string
# menu( )

Build IMP's menu.

Build IMP's menu.

Returns

string
The menu output.
public static
# status( )

Outputs IMP's status/notification bar.

Outputs IMP's status/notification bar.

public static
# quota( )

Outputs IMP's quota information.

Outputs IMP's quota information.

public static array
# quotaData( boolean $long = true )

Returns data needed to output quota.

Returns data needed to output quota.

Parameters

$long
Output long messages?

Returns

array
Array with these keys: class, message, percent.
public static mixed
# encryptList( string $default = null, boolean $returnList = false )

Return a list of valid encrypt HTML option tags.

Return a list of valid encrypt HTML option tags.

Parameters

$default
The default encrypt option.
$returnList
<p>Whether to return a hash with options instead of the options tag.</p>

Returns

mixed

The list of option tags. This is empty if no encryption is available.

public static
# setCurrentMailboxInfo( boolean $mbox = null )

Sets mailbox/index information for current page load. This information is accessible via IMP::$mailbox, IMP::$thismailbox, and IMP::$uid.

Sets mailbox/index information for current page load. This information is accessible via IMP::$mailbox, IMP::$thismailbox, and IMP::$uid.

Parameters

$mbox
Use this mailbox, instead of form data.
public static Horde_Url
# selfUrl( )

Return a selfURL that has had index/mailbox/actionID information removed/altered based on an action that has occurred on the present page.

Return a selfURL that has had index/mailbox/actionID information removed/altered based on an action that has occurred on the present page.

Returns

Horde_Url
The self URL.
public static boolean
# canCompose( )

Determine the status of composing.

Determine the status of composing.

Returns

boolean
Is compose allowed?

Throws

Horde_Exception
public static array
# getAddressbookSearchParams( )

Determines parameters needed to do an address search

Determines parameters needed to do an address search

Returns

array
An array with two keys: 'fields' and 'sources'.
public static string
# base64urlEncode( string $in )

Base64url (RFC 4648 [5]) encode a string.

Base64url (RFC 4648 [5]) encode a string.

Parameters

$in
Unencoded string.

Returns

string
Encoded string.
public static string
# base64urlDecode( string $in )

Base64url (RFC 4648 [5]) decode a string.

Base64url (RFC 4648 [5]) decode a string.

Parameters

$in
Encoded string.

Returns

string
Decoded string.
public static string
# numberFormat( integer $number, integer $decimals )

Workaround broken number_format() prior to PHP 5.4.0.

Workaround broken number_format() prior to PHP 5.4.0.

Parameters

$number
Number to format.
$decimals
Number of decimals to display.

Returns

string
See number_format().
Constants summary
string ENCRYPT_NONE
# 'encrypt_none'
integer MAILBOX_START_FIRSTUNSEEN
# 1
integer MAILBOX_START_LASTUNSEEN
# 2
integer MAILBOX_START_FIRSTPAGE
# 3
integer MAILBOX_START_LASTPAGE
# 4
string NOTEPAD_EDIT
# "notepad\0"
string TASKLIST_EDIT
# "tasklist\0"
string INITIAL_FOLDERS
# "initial\0folders"
integer IMAP_SORT_DATE
# 100
Properties summary
public static string $newUrl

Storage place for an altered version of the current URL.

Storage place for an altered version of the current URL.

# null
public static IMP_Mailbox $mailbox

The current active mailbox (may be search mailbox).

The current active mailbox (may be search mailbox).

#
public static IMP_Mailbox $thismailbox

The real IMAP mailbox of the current index.

The real IMAP mailbox of the current index.

#
public static integer $uid

The IMAP UID.

The IMAP UID.

# ''
API documentation generated by ApiGen