genkgo / mail

Library to send e-mails over different transports and protocols (like SMTP and IMAP) using immutable messages and streams. Also includes SMTP server.
https://mail.readthedocs.io/
Other
402 stars 21 forks source link

A request for help and an example of SearchCommand #58

Open joca2 opened 4 years ago

joca2 commented 4 years ago

Hello Could you help by sharing an example using SearchCommand with for example DateCriterion and FlagCriterion returning an email list similar to imap_fetch_overview or any, similar to /example/imap-client-fetch.php?

In addition, I noticed trying to use: $query = (new Query())->with(DateCriterion::since(new \DateTimeImmutable('2019-10-10'))); that in response I have ["line": "Genkgo\Mail\Protocol\Imap\Response\TaggedResponse": private] => string (87) "BAD Error in IMAP command SEARCH: Invalid search date parameter (0.001 + 0.000 secs). " If I'm using $searched = imap_search($imap_stream, "SINCE 10-Oct-2019"); I have the expected response with a list of found emails.

Thank you for your help Jacek