email - IMAP IDLE method (ruby) always fires including archive / deletion events for Gmail servers -
email - IMAP IDLE method (ruby) always fires including archive / deletion events for Gmail servers -
i've specified resp.name == "exist" , untaggedresponse. want idle fire when receive new messages folder. according documentation, should work whatever reason, it's firing whenever message archived or deleted.
@imap.examine 'inbox' # add together handler. @imap.add_response_handler |resp| if resp.kind_of?(net::imap::untaggedresponse) , resp.name == "exists" # fires archives , deletions... end end
any thoughts?
the exists
number increment when new mail service arrives , decrease when mail service moved mailbox, have maintain track of number disambiguate. or can ok [uidnext n]
instead, should reported new mail.
ruby email gmail imap messages
Comments
Post a Comment