Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > imap not reading mail which are already read through a mail client

Reply
Thread Tools

imap not reading mail which are already read through a mail client

 
 
Tom Mac
Guest
Posts: n/a
 
      05-03-2011
Hi
I am trying to use 'net/imap' to get mail from a gmail account. I am
attaching the code. My problem is, suppose if a new mail comes to gmail
inbox and I have read that through either gmail directly or using
thunder bird. Then I can't read that using my code (which I am
attaching). Please help. I am using ruby 1.8.7

Thanks

Attachments:
http://www.ruby-forum.com/attachment/6154/imap.rb


--
Posted via http://www.ruby-forum.com/.

 
Reply With Quote
 
 
 
 
Walton Hoops
Guest
Posts: n/a
 
      05-03-2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 5/2/2011 10:34 PM, Tom Mac wrote:
> Hi
> I am trying to use 'net/imap' to get mail from a gmail account. I am
> attaching the code. My problem is, suppose if a new mail comes to gmail
> inbox and I have read that through either gmail directly or using
> thunder bird. Then I can't read that using my code (which I am
> attaching). Please help. I am using ruby 1.8.7
>
> Thanks
>
> Attachments:
> http://www.ruby-forum.com/attachment/6154/imap.rb
>
>

- From the code:
imap.uid_search(["NOT", "SEEN"]).each_with_index do |uid,i|

If you've read it in Gmail and/or Firefox, it's seen. You probably want:
imap.uid_search(["ALL"]).


Good luck!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJNwIFPAAoJELvwGgGC0IsyJacIAOuAp+suwk zRXQ4jl0S5GtXH
4xOgnA/XEPqQqA9nLbVQF76HDdHv4QHwxiI0Whi0iIoLKQBtcOxuCoSoQ 9j2EKpM
PrqjcA+n6/kez5RX0CMwF6UwEluzIOVr0j0DfhZ7JqpdvA19T2CKlrGlTMOc XyAt
lcsmoLGx7SkjS3CcJgij49d/cNkKXxAIK/CBFCnjvw3ExhmCdc9VkBHXDyJpTRmf
3uNRC8RVZchL9F9LDB2qmOsxtIVO6ec8e39NJG8OsBhpxXi9+q 15p3R9bf9Ktiug
H+yFvo+CM1DfFP5xrWnwiEP7od5RuL+YCeTsxztVQihK910xaU gO2M/ecM4n3P8=
=FXdE
-----END PGP SIGNATURE-----

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Support for IMAP IDLE in net/imap Abhishiv Saxena Ruby 4 07-04-2009 04:07 PM
imap and Tmail. Getting whole email with imap Adam Akhtar Ruby 1 12-15-2008 10:55 PM
net/imap - imap.search "TO" can't find email jasonnaylor Ruby 1 04-16-2008 04:05 AM
Writing IMAP->GMail proxy... Where to go for IMAP RFC help? Jon Fi Ruby 4 10-21-2006 09:00 PM
Curier-IMAP and imap.create() Henrik Ormåsen Ruby 0 08-19-2006 06:29 AM



Advertisments