| Methods |
public
static
|
NewInstance(): ImapClient
|
#
|
public
|
GetLogginedUser(): string
|
#
|
public
|
Connect(
string $sServerName,
int $iPort = 143,
int $iSecurityType = ConnectionSecurityType::AUTO_DETECT,
bool $bVerifySsl = false,
): ImapClient
Parameters
| $iPort |
= 143
|
| $iSecurityType |
= \MailSo\Net\Enumerations\ConnectionSecurityType::AUTO_DETECT
|
| $bVerifySsl |
= false
|
Throws
Overrides
|
#
|
public
|
Login(
string $sLogin,
string $sPassword,
string $sProxyAuthUser = '',
bool $bUseAuthPlainIfSupported = false,
): ImapClient
Parameters
| $sProxyAuthUser |
= ''
|
| $bUseAuthPlainIfSupported |
= false
|
Throws
|
#
|
public
static
|
GetXOAuthKeyStatic($sEmail, $sAccessToken)
|
#
|
public
|
LoginWithXOauth2(string $sXOAuth2Token): ImapClient
|
#
|
public
|
Logout(): ImapClient
|
#
|
public
|
ForceCloseConnection(): ImapClient
|
#
|
public
|
IsLoggined(): bool
|
#
|
public
|
IsSelected(): bool
|
#
|
public
|
Capability(): array|null
|
#
|
public
|
IsSupported(string $sExtentionName): bool
|
#
|
public
|
GetNamespace(): NamespaceResult|null
|
#
|
public
|
Noop(): ImapClient
|
#
|
public
|
FolderCreate(string $sFolderName): ImapClient
|
#
|
public
|
FolderDelete(string $sFolderName): ImapClient
|
#
|
public
|
FolderSubscribe(string $sFolderName): ImapClient
|
#
|
public
|
FolderUnSubscribe(string $sFolderName): ImapClient
|
#
|
public
|
FolderRename(string $sOldFolderName, string $sNewFolderName): ImapClient
|
#
|
public
|
FolderStatus(string $sFolderName, array $aStatusItems): array|bool
|
#
|
public
|
FolderList(string $sParentFolderName = '', string $sListPattern = '*'): array
Parameters
| $sParentFolderName |
= ''
|
| $sListPattern |
= '*'
|
Throws
|
#
|
public
|
FolderSubscribeList(string $sParentFolderName = '', string $sListPattern = '*'): array
Parameters
| $sParentFolderName |
= ''
|
| $sListPattern |
= '*'
|
Throws
|
#
|
public
|
FolderStatusList(string $sParentFolderName = '', string $sListPattern = '*'): array
Parameters
| $sParentFolderName |
= ''
|
| $sListPattern |
= '*'
|
Throws
|
#
|
public
|
FolderSelect(string $sFolderName, bool $bReSelectSameFolders = false): ImapClient
Parameters
| $bReSelectSameFolders |
= false
|
Throws
|
#
|
public
|
FolderExamine(string $sFolderName, bool $bReSelectSameFolders = false): ImapClient
Parameters
| $bReSelectSameFolders |
= false
|
Throws
|
#
|
public
|
Fetch(array $aInputFetchItems, string $sIndexRange, bool $bIndexIsUid): array
|
#
|
public
|
Quota(): array|false
|
#
|
public
|
MessageSimpleSort(array $aSortTypes, string $sSearchCriterias = 'ALL', bool $bReturnUid = true): array
|
#
|
public
|
MessageSimpleESearch(
string $sSearchCriterias = 'ALL',
array $aSearchReturn = null,
bool $bReturnUid = true,
string $sLimit = '',
string $sCharset = '',
): array
Parameters
| $sSearchCriterias |
= 'ALL'
|
| $aSearchReturn |
= null
|
| $bReturnUid |
= true
|
| $sLimit |
= ''
|
| $sCharset |
= ''
|
Throws
|
#
|
public
|
MessageSimpleESort(
array $aSortTypes,
string $sSearchCriterias = 'ALL',
array $aSearchReturn = null,
bool $bReturnUid = true,
string $sLimit = '',
): array
Parameters
| $sSearchCriterias |
= 'ALL'
|
| $aSearchReturn |
= null
|
| $bReturnUid |
= true
|
| $sLimit |
= ''
|
Throws
|
#
|
public
|
MessageSimpleSearch(string $sSearchCriterias = 'ALL', bool $bReturnUid = true, string $sCharset = ''): array
Parameters
| $bReturnUid |
= true
|
| $sCharset |
= ''
|
Throws
|
#
|
public
|
MessageSimpleThread(string $sSearchCriterias = 'ALL', bool $bReturnUid = true, string $sCharset = Charset::UTF_8): array
Parameters
| $sSearchCriterias |
= 'ALL'
|
| $bReturnUid |
= true
|
| $sCharset |
= \MailSo\Base\Enumerations\Charset::UTF_8
|
Throws
|
#
|
public
|
MessageCopy(string $sToFolder, string $sIndexRange, bool $bIndexIsUid): ImapClient
|
#
|
public
|
MessageMove(string $sToFolder, string $sIndexRange, bool $bIndexIsUid): ImapClient
|
#
|
public
|
MessageExpunge(string $sUidRangeIfSupported = '', bool $bForceUidExpunge = false, bool $bExpungeAll = false): ImapClient
Parameters
| $sUidRangeIfSupported |
= ''
|
| $bForceUidExpunge |
= false
|
| $bExpungeAll |
= false
|
Throws
|
#
|
public
|
MessageStoreFlag(string $sIndexRange, bool $bIndexIsUid, array $aInputStoreItems, string $sStoreAction): ImapClient
|
#
|
public
|
MessageAppendFile(
string $sMessageFileName,
string $sFolderToSave,
array $aAppendFlags = null,
int &$iUid = null,
): MailClient
Parameters
| $aAppendFlags |
= null
|
| $iUid |
= null
|
|
#
|
public
|
MessageAppendStream(
string $sFolderName,
resource $rMessageAppendStream,
int $iStreamSize,
array $aAppendFlags = null,
int &$iUid = null,
int $sDateTime = 0,
): ImapClient
Parameters
| $aAppendFlags |
= null
|
| $iUid |
= null
|
| $sDateTime |
= 0
|
Throws
|
#
|
public
|
FolderCurrentInformation(): FolderInformation
|
#
|
public
|
SendRequest(string $sCommand, array $aParams = []): void
|
#
|
public
|
SendRequestWithCheck(string $sCommand, array $aParams = [], bool $bFindCapa = false): ImapClient
Parameters
| $aParams |
= array()
|
| $bFindCapa |
= false
|
Throws
|
#
|
public
|
GetLastResponse(): array
|
#
|
public
|
EscapeString(string $sStringForEscape): string
|
#
|
public
|
SetLogger(Logger $oLogger): ImapClient
|
#
|
public
|
TestSetValues(resource $rConnect, array $aCapabilityItems = []): ImapClient
Parameters
| $aCapabilityItems |
= array()
|
|
#
|
public
|
TestParseResponseWithValidationProxy(string $sEndTag = null, bool $bFindCapa = false): array
Parameters
| $sEndTag |
= null
|
| $bFindCapa |
= false
|
|
#
|