mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 16:37:02 +03:00
Add support for IMAP WITHIN https://datatracker.ietf.org/doc/html/rfc5032
This commit is contained in:
parent
1e597f9cd7
commit
6f2f89c365
2 changed files with 19 additions and 6 deletions
|
|
@ -336,13 +336,15 @@ class ImapClient extends \MailSo\Net\NetClient
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test support for things like:
|
* Test support for things like:
|
||||||
* IMAP4rev1 IMAP4rev2 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY
|
* IMAP4rev1 IMAP4rev2 ID UIDPLUS QUOTA ENABLE IDLE
|
||||||
|
* SORT SORT=DISPLAY ESEARCH ESORT SEARCHRES WITHIN
|
||||||
* THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND
|
* THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND
|
||||||
* URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED
|
* URL-PARTIAL CATENATE UNSELECT NAMESPACE CONDSTORE
|
||||||
* I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH
|
* CHILDREN LIST-EXTENDED LIST-STATUS STATUS=SIZE
|
||||||
* LIST-STATUS BINARY MOVE SNIPPET=FUZZY PREVIEW=FUZZY STATUS=SIZE LITERAL+ NOTIFY SPECIAL-USE
|
* I18NLEVEL=1 QRESYNC CONTEXT=SEARCH
|
||||||
* STARTTLS AUTH= LOGIN LOGINDISABLED QUOTA
|
* BINARY MOVE SNIPPET=FUZZY PREVIEW=FUZZY LITERAL+ NOTIFY
|
||||||
* METADATA METADATA-SERVER
|
* AUTH= LOGIN LOGINDISABLED LOGIN-REFERRALS SASL-IR STARTTLS
|
||||||
|
* METADATA METADATA-SERVER SPECIAL-USE
|
||||||
*
|
*
|
||||||
* @throws \MailSo\RuntimeException
|
* @throws \MailSo\RuntimeException
|
||||||
* @throws \MailSo\Net\Exceptions\*
|
* @throws \MailSo\Net\Exceptions\*
|
||||||
|
|
|
||||||
|
|
@ -274,6 +274,17 @@ abstract class SearchCriterias
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
// https://www.rfc-editor.org/rfc/rfc5032.html
|
||||||
|
case 'OLDER':
|
||||||
|
case 'YOUNGER':
|
||||||
|
// time interval in seconds
|
||||||
|
$sValue = \intval($sRawValue);
|
||||||
|
if (0 < $sValue && $oImapClient->hasCapability('WITHIN')) {
|
||||||
|
$aCriteriasResult[] = $sName;
|
||||||
|
$aCriteriasResult[] = $sValue;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
// https://github.com/the-djmaze/snappymail/issues/625
|
// https://github.com/the-djmaze/snappymail/issues/625
|
||||||
case 'READ':
|
case 'READ':
|
||||||
case 'UNREAD':
|
case 'UNREAD':
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue