Predefined Constants
The constants below are defined by this extension, and will only be available when the extension has either been compiled into PHP or dynamically loaded at runtime.
-
NIL
(integer) -
OP_DEBUG
(integer) -
OP_READONLY
(integer) - Open mailbox read-only
-
OP_ANONYMOUS
(integer) - Don't use or update a .newsrc for news (NNTP only)
-
OP_SHORTCACHE
(integer) -
OP_SILENT
(integer) -
OP_PROTOTYPE
(integer) -
OP_HALFOPEN
(integer) - For IMAP and NNTP names, open a connection but don't open a mailbox.
-
OP_EXPUNGE
(integer) -
OP_SECURE
(integer) -
CL_EXPUNGE
(integer) - silently expunge the mailbox before closing when calling imap_close()
-
FT_UID
(integer) - The parameter is a UID
-
FT_PEEK
(integer) - Do not set the \Seen flag if not already set
-
FT_NOT
(integer) -
FT_INTERNAL
(integer) - The return string is in internal format, will not canonicalize to CRLF.
-
FT_PREFETCHTEXT
(integer) -
ST_UID
(integer) - The sequence argument contains UIDs instead of sequence numbers
-
ST_SILENT
(integer) -
ST_SET
(integer) -
CP_UID
(integer) - the sequence numbers contain UIDS
-
CP_MOVE
(integer) - Delete the messages from the current mailbox after copying with imap_mail_copy()
-
SE_UID
(integer) - Return UIDs instead of sequence numbers
-
SE_FREE
(integer) -
SE_NOPREFETCH
(integer) - Don't prefetch searched messages
-
SO_FREE
(integer) -
SO_NOSERVER
(integer) -
SA_MESSAGES
(integer) -
SA_RECENT
(integer) -
SA_UNSEEN
(integer) -
SA_UIDNEXT
(integer) -
SA_UIDVALIDITY
(integer) -
SA_ALL
(integer) -
LATT_NOINFERIORS
(integer) - This mailbox has no "children" (there are no mailboxes below this one).
-
LATT_NOSELECT
(integer) - This is only a container, not a mailbox - you cannot open it.
-
LATT_MARKED
(integer) - This mailbox is marked. Only used by UW-IMAPD.
-
LATT_UNMARKED
(integer) - This mailbox is not marked. Only used by UW-IMAPD.
-
LATT_REFERRAL
(integer) - This container has a referral to a remote mailbox.
-
LATT_HASCHILDREN
(integer) - This mailbox has selectable inferiors.
-
LATT_HASNOCHILDREN
(integer) - This mailbox has no selectable inferiors.
-
SORTDATE
(integer) - Sort criteria for imap_sort(): message Date
-
SORTARRIVAL
(integer) - Sort criteria for imap_sort(): arrival date
-
SORTFROM
(integer) - Sort criteria for imap_sort(): mailbox in first From address
-
SORTSUBJECT
(integer) - Sort criteria for imap_sort(): message subject
-
SORTTO
(integer) - Sort criteria for imap_sort(): mailbox in first To address
-
SORTCC
(integer) - Sort criteria for imap_sort(): mailbox in first cc address
-
SORTSIZE
(integer) - Sort criteria for imap_sort(): size of message in octets
-
TYPETEXT
(integer) - Primary body type: unformatted text
-
TYPEMULTIPART
(integer) - Primary body type: multiple part
-
TYPEMESSAGE
(integer) - Primary body type: encapsulated message
-
TYPEAPPLICATION
(integer) - Primary body type: application data
-
TYPEAUDIO
(integer) - Primary body type: audio
-
TYPEIMAGE
(integer) - Primary body type: static image
-
TYPEVIDEO
(integer) - Primary body type: video
-
TYPEMODEL
(integer) - Primary body type: model
-
TYPEOTHER
(integer) - Primary body type: unknown
-
ENC7BIT
(integer) - Body encoding: 7 bit SMTP semantic data
-
ENC8BIT
(integer) - Body encoding: 8 bit SMTP semantic data
-
ENCBINARY
(integer) - Body encoding: 8 bit binary data
-
ENCBASE64
(integer) - Body encoding: base-64 encoded data
-
ENCQUOTEDPRINTABLE
(integer) - Body encoding: human-readable 8-as-7 bit data
-
ENCOTHER
(integer) - Body encoding: unknown
-
IMAP_OPENTIMEOUT
(integer) -
IMAP_READTIMEOUT
(integer) -
IMAP_WRITETIMEOUT
(integer) -
IMAP_CLOSETIMEOUT
(integer) -
IMAP_GC_ELT
(integer) - Garbage collector, clear message cache elements.
-
IMAP_GC_ENV
(integer) - Garbage collector, clear envelopes and bodies.
-
IMAP_GC_TEXTS
(integer) - Garbage collector, clear texts.
English translation
You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.
Thank you in advance.
Document created the 30/01/2003, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/php-rf-imap.constants.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.