owainlewis / clojure-mail

A Clojure library for parsing, downloading and reading email from IMAP servers.
203 stars 54 forks source link

Date searches not working on GMail #70

Closed deepxg closed 5 years ago

deepxg commented 5 years ago

For some reason GMail appears to be completely ignoring my date searches. Is this a known issue? Basically just calling:

(search-inbox store [:sent-after date :to "address"]])

But getting messages from betfore the date. I'm also confused because the signature of search-inbox doesn't match some of the examples in the readme, so I'm worried I'm missing something fundamental.

deepxg commented 5 years ago

Okay, the reason for this is that the inbox search in the GMail namespace issues an 'or' query. Using the folder search API directly allows the full spectrum of searches. Maybe a docs/ergonomics issue but there's no real issue here.