Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IMAP2_SORT FUNCTION is missing the SEARCH option #25

Open
haiderpro opened this issue Nov 4, 2022 · 1 comment
Open

IMAP2_SORT FUNCTION is missing the SEARCH option #25

haiderpro opened this issue Nov 4, 2022 · 1 comment
Labels

Comments

@haiderpro
Copy link

haiderpro commented Nov 4, 2022

imap2_sort is not able to use the search code in sort command (like 'SINCE "02 NOV 2022"') which is a normal imap_sort option used by many people. Please fix ASAP. Thank you!

imap_sort(
IMAP\Connection $imap,
int $criteria,
bool $reverse,
int $flags = 0,
?string $search_criteria = null, <-- THIS ONE IS MISSING IN IMAP2_SORT FUNCTION
?string $charset = null
): array|false

@haiderpro
Copy link
Author

haiderpro commented Nov 8, 2022

More details:

$result = imap2_sort($imap, SORTDATE, 1, SE_NOPREFETCH, 'SUBJECT logo'); // this should work but not working due to search option not supported even if connected via normal IMAP option of PHP-IMAP2

$result = imap2_sort($imap, SORTDATE, 1); // this (without search option) works in normal IMAP option of PHP-IMAP2

$result = imap2_sort($imap, SORTDATE, 1); // Even without search option this is not working correctly in OAUTH2 / access token mode of PHP-IMAP2 but it works if normal IMAP username password is used

Can these errors please be fixed little quickly? If you guys are busy, can you please point me where this SORT code is located so that I can try to fix it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants