Class IMP_Mailbox
The IMP_Mailbox class acts as a clearinghouse for actions related to a mailbox.
Copyright 2011-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.
- IMP_Mailbox implements Serializable
Category: Horde
License: GPL
Author: Michael Slusarz slusarz@horde.org
Located at Mailbox.php
public static
mixed
|
|
public static
|
|
public
|
|
public
|
|
public
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
|
|
public
boolean
|
#
filterOnDisplay( )
Filters this mailbox if it is the INBOX and the filter on display pref is active. |
public
|
|
public
|
|
public
|
|
public
array
|
|
public
|
|
public
boolean
|
|
public
|
#
setHideDeletedMsgs( boolean $value )
Sets the 'delhide' preference and clears necessary cached data. |
public
|
#
runSearchQuery( Horde_Imap_Client_Search_Query $query, integer $sortby = null, integer $sortdir = null )
Run a search query on this mailbox that is not stored in the current session. Allows custom queries with custom sorts to be used without affecting cached mailboxes. |
public
|
|
public
Horde_Url
|
|
public
array
|
|
public
boolean
|
|
public
mixed
|
#
importMbox( string $fname, string $type )
Imports messages from a mbox (see RFC 4155) -or- a message source (eml) file. |
public static
mixed
|
|
public static
mixed
|
|
public static
array
|
|
public static
string
|
|
public static
string
|
|
public
|
|
public
|
integer |
CHANGED_NO
|
#
0
|
integer |
CHANGED_YES
|
#
1
|
integer |
CHANGED_DELETE
|
#
2
|
string |
SPECIAL_DRAFTS
|
#
'drafts'
|
string |
SPECIAL_SENT
|
#
'sent'
|
string |
SPECIAL_SPAM
|
#
'spam'
|
string |
SPECIAL_TRASH
|
#
'trash'
|
string |
CACHE_ACL
|
#
'a'
|
string |
CACHE_DISPLAY
|
#
'd'
|
string |
CACHE_ICONS
|
#
'i'
|
string |
CACHE_NAMESPACE
|
#
'n'
|
string |
CACHE_READONLY
|
#
'ro'
|
string |
CACHE_UIDVALIDITY
|
#
'v'
|
string |
CACHE_HASICONHOOK
|
#
'ih'
|
string |
CACHE_ICONHOOK
|
#
'ic'
|
string |
CACHE_HASLABELHOOK
|
#
'lh'
|
string |
CACHE_HIDEDELETED
|
#
'hd'
|
string |
CACHE_READONLYHOOK
|
#
'roh'
|
string |
CACHE_SPECIALMBOXES
|
#
's'
|
public
array
|
$cache
Cached data. |
#
array()
|
public
integer
|
$changed
Has this object changed? |
public
string
|
$abbrev_label
Abbreviated version of $label - displays only the bare mailbox name (no parents). |
public
boolean
|
$access_creatembox
Can sub mailboxes be created? |
public
boolean
|
$access_deletembox
Can this mailbox be deleted? |
public
boolean
|
$access_deletemsgs
Can messages be deleted in this mailbox? |
public
boolean
|
$access_expunge
Can messages be expunged in this mailbox? |
public
boolean
|
$access_filters
Is filtering available? |
public
boolean
|
$access_sort
Is sorting available? |
public
boolean
|
$access_sortthread
Is thread sort available? |
public
mixed
|
$acl
Either an ACL object for the mailbox, or null if no ACL found for the mailbox. |
public
string
|
$basename
The basename of the mailbox (UTF-8). |
public
string
|
$cacheid
Cache ID for the mailbox. |
public
string
|
$cacheid_date
Cache ID for the mailbox, with added date information. |
public
boolean
|
$children
Does the element have children? |
public
boolean
|
$container
Is this a container element? |
public
string
|
$display
Display version of mailbox. Special mailboxes are replaced with localized strings and namespace information is removed. |
public
string
|
$display_html
$display that has been HTML encoded. |
public
boolean
|
$drafts
Is this a Drafts mailbox? |
public
boolean
|
$editquery
Can this search query be edited? |
public
boolean
|
$editvfolder
Can this virtual folder be edited? |
public
boolean
|
$exists
Does this mailbox exist on the IMAP server? |
public
boolean
|
$fixed
Is this mailbox fixed (i.e. unchangable)? |
public
string
|
$form_to
Converts this mailbox to a form representation. |
public
boolean
|
$is_open
Is this level expanded? |
public
boolean
|
$is_trash
Is this a trash folder? |
public
object
|
$icon
Icon information for the mailbox. Properties: - alt: (string) The alt text for the icon. - class: (string) The CSS class name. - icon: (Horde_Themes_Image) The icon graphic to use. - iconopen: (Horde_Themes_Image) The openicon to use. - user_icon: (boolean) Use a user defined icon? |
public
boolean
|
$invisible
Is this mailbox invisible? |
public
string
|
$label
The mailbox label. Essentially is $display that can be modified by user hook. |
public
integer
|
$level
The child level of this element. |
public
string
|
$namespace
Is this a namespace element? |
public
|
$namespace_append
The mailbox with necessary namespace information appended. |
public
string
|
$namespace_delimiter
The delimiter for this namespace. |
public
array
|
$namespace_info
See IMP_Imap::getNamespace(). |
public
boolean
|
$nonimap
Is this a non-IMAP element? |
public
|
$parent
The parent element. Returns null if no parent. |
public
|
$permflags
Return the list of permanent flags available to set in the mailbox. |
public
boolean
|
$polled
Show polled information? |
public
object
|
$poll_info
Poll information for the mailbox. Properties: - msgs: (integer) The number of total messages in the element, if polled. - recent: (integer) The number of new messages in the element, if polled. - unseen: (integer) The number of unseen messages in the element, if polled. |
public
string
|
$pref_from
Convert mailbox name from preference storage. |
public
string
|
$pref_to
Convert mailbox name to preference storage. |
public
boolean
|
$query
Is this a search query? |
public
boolean
|
$readonly
Is this mailbox read-only? |
public
boolean
|
$search
Is this a search mailbox? |
public
boolean
|
$special
Is this is a "special" element? |
public
boolean
|
$special_outgoing
Is this a "special" element dealing with outgoing messages? |
public
boolean
|
$specialvfolder
Is this a "special" virtual folder? |
public
boolean
|
$sub
Is this mailbox subscribed to? |
public
array
|
$subfolders
Returns the list of subfolders as mailbox objects (including the current mailbox). |
public
array
|
$subfolders_only
Returns the list of subfolders as mailbox objects (NOT including the current mailbox). |
public
string
|
$uidvalid
Returns the UIDVALIDITY string. Throws an IMP_Exception on error. |
public
string
|
$value
The value of this element (i.e. IMAP mailbox name). In UTF7-IMAP. |
public
boolean
|
$vfolder
Is this a virtual folder? |
public
boolean
|
$vfolder_container
Is this the virtual folder container? |
public
boolean
|
$vinbox
Is this the virtual inbox? |
public
boolean
|
$vtrash
Is this the virtual trash? |