[php-src] Issue #7919: imap_search UNKEYWORD does not work
| From: | Kembreg14 | Date: | Sun, 09 Jan 2022 18:34:24 +0000 |
| Subject: | [php-src] Issue #7919: imap_search UNKEYWORD does not work | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-238916@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/7919
Author: Kembreg14
### Description
The following code:
```php
$SearchQuery ='TO "bob@yahoo.com" UNKEYWORD "rosebud" SUBJECT "Citizen
Kane"';
$Result=imap_search($Connection,$SearchQuery);
<?php
```
Resulted in this output:
```
A mail id which has string "rosebud" in the body.
```
But I expected this output instead:
```
No mail ID should be returned in $Result is the string "rosebud" is (anywhere) in the
message.
```
### PHP Version
PHP 7
### Operating System
_No response_