gmailgem / gmail

A Rubyesque interface to Gmail, with all the tools you'll need.
Other
397 stars 119 forks source link

Time in :before and :after filters #198

Closed ghost closed 9 years ago

ghost commented 9 years ago

Hi!

I'm trying to write a simple script to count messages in the last hour:

gmail.inbox.count(:after => (Time.now - 3600))

But I always get messages count limited for today, not for last hour. Is it possible to use time in filters and not only date?

ghost commented 9 years ago

Sorry for my question. I've read IMAP documentation and now I know this is impossible.

JoeNyland commented 8 years ago

I've just had this problem and was about to raise an issue. I think I might add a note to the README. I wonder how many others have had this issue, though.