imap_search negation

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
mchaggis
Forum Contributor
Posts: 150
Joined: Mon Mar 24, 2003 10:31 am
Location: UK

imap_search negation

Post by mchaggis »

HI,

I am trying to write a search filter for my mailbox. Basically I am getting ill formed emails that have not from, to or subject headers.

I can search using the following:

Code: Select all

FROM @ TO @

but what I'd like to do is negate the results, such as:

Code: Select all

NOT FROM @ TO @
Any ideas. If not I will have to read all id's in then all matcheing results and diff the two arrays to get my solution
Post Reply