Hi,

I was just wondering if there was any interest to get this enhancement into the 
PHP IMAP extension. Should I re-sent the patch as an attachment ?

Thanks
Dominik

On 2010-02-04, at 7:01 PM, Dominik Gehl wrote:

>>> $pgm = imap_searchprogram_new();
>>> imap_searchprogram_criteria($pgm1,"DRAFT SMALLER 34567 HEADER Message-Id 
>>> <d76c58cd-c94d-4de4-b621-83d66437e...@dokdok.com> FROM domi...@dokdok.com");
>> 
>> I assume you meant '$pgm' above?
> 
> You are absolutely right !
> 
> In fact, you can also set every parameter in its own 
> imap_searchprogram_criteria call, so the above (without the typo) would be 
> equivalent to the four calls below:
> 
> imap_searchprogram_criteria($pgm,"DRAFT");
> imap_searchprogram_criteria($pgm,"SMALLER 34567");
> imap_searchprogram_criteria($pgm,"HEADER  Message-Id 
> <d76c58cd-c94d-4de4-b621-83d66437e...@dokdok.com>");
> imap_searchprogram_criteria($pgm,"FROM domi...@dokdok.com");
> 
> If you need a logical OR of several criteria, you would use the following 
> calls:
> 
> $pgm1 = imap_searchprogram_new();
> imap_searchprogram_criteria($pgm1,"DRAFT");
> $pgm2 = imap_searchprogram_new();
> imap_searchprogram_criteria($pgm2,"ANSWERED");
> $pgm = imap_searchprogram_or($pgm1, $pgm2);
> imap_search($mbox,$pgm);
> 
> 
> Dominik


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to