|
| __construct ($mailbox) |
|
| normalizeMailboxOptions () |
|
| isTimeQuotaExceeded () |
|
| pushSyncStatus ($params, $force=false) |
|
| listMessages ($params=array(), $fetch=true) |
|
| registerMessage (&$fields, $replaces=null, $isOutgoing=false) |
|
| updateMessagesRegistry (array $filter, array $fields, $mailData=array()) |
|
| unregisterMessages ($filter, $eventData=[], $ignoreDeletionCheck=false) |
|
| linkMessage ($uid, $id) |
|
| cacheMessage (&$body, $params=array()) |
|
| createMessage (Main\Mail\Mail $message, array $fields=array()) |
|
| syncOutgoingMessage ($excerpt) |
|
| syncInternal () |
|
| setLastSyncResult (array $data) |
|
См. определение в файле mailbox.php строка 15
◆ __construct()
◆ activateSync()
◆ cacheMessage()
cacheMessage |
( |
& | $body, |
|
|
| $params = array() ) |
|
protected |
◆ checkMessagesForExistence()
checkMessagesForExistence |
( |
| $dirPath = 'INBOX', |
|
|
| $UIDs = [] ) |
|
abstract |
◆ cleanup()
◆ createInstance()
static createInstance |
( |
| $id, |
|
|
| $throw = true ) |
|
static |
Creates active mailbox helper instance by ID
- Аргументы
-
int | $id | Mailbox ID. |
bool | $throw | Throw exception on error. |
- Возвращает
- \Bitrix\Mail\Helper\Mailbox|false
- Исключения
-
Exception
См. определение в файле mailbox.php строка 101
◆ createMessage()
◆ dismissDeletedUidMessages()
dismissDeletedUidMessages |
( |
| ) |
|
◆ dismissOldMessages()
◆ downloadAttachments()
downloadAttachments |
( |
array & | $excerpt | ) |
|
◆ downloadMessage()
downloadMessage |
( |
array & | $excerpt | ) |
|
|
abstract |
◆ findBy()
static findBy |
( |
| $id, |
|
|
| $email ) |
|
staticfinal |
◆ getDirsHelper()
◆ getDirsMd5WithCounter()
getDirsMd5WithCounter |
( |
| $mailboxId | ) |
|
◆ getDirsWithUnseenMailCounters()
getDirsWithUnseenMailCounters |
( |
| ) |
|
◆ getErrors()
◆ getFilters()
getFilters |
( |
| $force = false | ) |
|
◆ getForUserByEmail()
static getForUserByEmail |
( |
| $email | ) |
|
|
staticfinal |
◆ getLastSyncResult()
◆ getMailbox()
◆ getMailboxId()
◆ getMailboxOwnerId()
◆ getServices()
◆ getSyncStatus()
◆ getTimeout()
◆ getWarnings()
◆ incrementTree()
incrementTree |
( |
| $message | ) |
|
◆ instance()
static instance |
( |
array | $mailbox | ) |
|
|
staticprotected |
◆ isAuthenticated()
◆ isRuZone()
◆ isSupportLazyAttachments()
isSupportLazyAttachments |
( |
| ) |
|
◆ isSupportSanitizeOnView()
isSupportSanitizeOnView |
( |
| ) |
|
Could we sanitize message on view? if there is no filters that can use sanitized body
- Возвращает
- bool
См. определение в файле mailbox.php строка 1930
◆ isTimeQuotaExceeded()
◆ linkMessage()
linkMessage |
( |
| $uid, |
|
|
| $id ) |
|
protected |
◆ listDirs()
listDirs |
( |
| $pattern, |
|
|
| $useDb = false ) |
|
abstract |
◆ listMessages()
listMessages |
( |
| $params = array(), |
|
|
| $fetch = true ) |
|
protected |
◆ mail()
◆ normalizeMailboxOptions()
normalizeMailboxOptions |
( |
| ) |
|
|
protected |
◆ notifyNewMessages()
◆ prepareMailbox()
static prepareMailbox |
( |
| $filter | ) |
|
|
static |
◆ pushSyncStatus()
pushSyncStatus |
( |
| $params, |
|
|
| $force = false ) |
|
protected |
◆ rawInstance()
static rawInstance |
( |
| $filter, |
|
|
| $throw = true ) |
|
static |
Creates mailbox helper instance
- Аргументы
-
mixed | $filter | Filter. |
bool | $throw | Throw exception on error. |
- Возвращает
- \Bitrix\Mail\Helper\Mailbox|false
- Исключения
-
Exception
См. определение в файле mailbox.php строка 234
◆ registerMessage()
registerMessage |
( |
& | $fields, |
|
|
| $replaces = null, |
|
|
| $isOutgoing = false ) |
|
protected |
◆ resortTree()
resortTree |
( |
| $message = null | ) |
|
◆ restoringConsistency()
◆ resyncIsOldStatus()
◆ resyncMessage()
resyncMessage |
( |
array & | $excerpt | ) |
|
◆ reSyncStartPage()
◆ sendCountersEvent()
◆ setCheckpoint()
◆ setLastSyncResult()
setLastSyncResult |
( |
array | $data | ) |
|
|
protected |
◆ setSyncParams()
setSyncParams |
( |
array | $params = array() | ) |
|
◆ sync()
sync |
( |
| $syncCounters = true | ) |
|
◆ syncCounters()
◆ syncFirstDay()
◆ syncInternal()
◆ syncMessages()
syncMessages |
( |
| $mailboxID, |
|
|
| $dirPath, |
|
|
| $UIDs ) |
|
abstract |
◆ syncOutgoing()
◆ syncOutgoingMessage()
syncOutgoingMessage |
( |
| $excerpt | ) |
|
|
protected |
◆ unregisterMessages()
unregisterMessages |
( |
| $filter, |
|
|
| $eventData = [], |
|
|
| $ignoreDeletionCheck = false ) |
|
protected |
◆ updateGlobalCounter()
updateGlobalCounter |
( |
| $userId | ) |
|
◆ updateGlobalCounterForCurrentUser()
updateGlobalCounterForCurrentUser |
( |
| ) |
|
◆ updateMessagesRegistry()
updateMessagesRegistry |
( |
array | $filter, |
|
|
array | $fields, |
|
|
| $mailData = array() ) |
|
protected |
◆ uploadMessage()
◆ $checkpoint
◆ $dirsHelper
◆ $dirsMd5WithCounter
◆ $errors
◆ $filters
◆ $lastSyncResult
Инициализатор= [
'newMessages' => 0,
'newMessagesNotify' => 0,
'deletedMessages' => 0,
'updatedMessages' => 0,
'newMessageId' => null,
]
См. определение в файле mailbox.php строка 36
◆ $mailbox
◆ $session
◆ $startTime
◆ $syncParams
◆ $syncTimeout
◆ $warnings
◆ MAIL_SERVICES_ONLY_FOR_THE_RU_ZONE
const MAIL_SERVICES_ONLY_FOR_THE_RU_ZONE |
Инициализатор= [
'yandex',
'mail.ru',
]
См. определение в файле mailbox.php строка 23
◆ MESSAGE_DELETION_LIMIT_AT_A_TIME
const MESSAGE_DELETION_LIMIT_AT_A_TIME = 1000 |
◆ MESSAGE_RESYNCHRONIZATION_TIME
const MESSAGE_RESYNCHRONIZATION_TIME = 360 |
◆ NUMBER_OF_BROKEN_MESSAGES_TO_RESYNCHRONIZE
const NUMBER_OF_BROKEN_MESSAGES_TO_RESYNCHRONIZE = 2 |
◆ SYNC_TIME_QUOTA
const SYNC_TIME_QUOTA = 280 |
◆ SYNC_TIMEOUT