php / php/doc-en

imap_search UNKEYWORD description is wrong

Open
#1,344 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Extension: imap
Dominant language
XML
Stars
596
Forks
890
Avg merge
1d 15h
Merged PRs (30d)
55

Description

Description

The following code:

$SearchQuery ='TO "bob@yahoo.com" UNKEYWORD "rosebud" SUBJECT "Citizen Kane"';
$Result=imap_search($Connection,$SearchQuery);
<?php

Resulted in this output:

A mail id for a mail which has the string "rosebud" in the body.

But I expected this output instead:

No mail ID should be returned in $Result which has the string "rosebud" (anywhere) in the message.
PHP Version

PHP 7.4

Operating System

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the PHP documentation entry for imap_search and compare the UNKEYWORD description with the reported query and result. Verify the intended IMAP search semantics, then update the description so it accurately explains whether matching messages are returned; confirm the example and wording are consistent.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.