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

Regex in SearchExpressions #157

Closed
grobmeier opened this issue Jun 6, 2017 · 2 comments
Closed

Regex in SearchExpressions #157

grobmeier opened this issue Jun 6, 2017 · 2 comments

Comments

@grobmeier
Copy link

Hi

the lib is great! I could use some regex in searching. Like:

Currently:

$search = new SearchExpression();
$search->addCondition(new Subject("Test"));

Could be extended to:

$search = new SearchExpression();
$search->addCondition(new Subject("Test.*", true)); // true means RegEx = true
@Slamdunk
Copy link
Collaborator

Hi, what is now blocking you from using a regex like new Subject('Test.*')?

In the manual I see no reference to a special regex modifier:
https://secure.php.net/manual/en/function.imap-search.php

Slamdunk added a commit that referenced this issue Sep 28, 2017
@Slamdunk Slamdunk added this to the 1.0 milestone Sep 28, 2017
@Slamdunk
Copy link
Collaborator

A Ddeboer\Imap\Search\RawExpression condition has been implemented in #198: you can now write custom criteria.

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

No branches or pull requests

2 participants