Quick JavaMail IMAP question

Discussion in 'Java' started by MT, May 14, 2004.

  1. MT

    MT Guest

    Hi,

    How can I ask the IMAP server which messages have been added or
    modified i.e. flags changed since my last sync? Or do I have to recurse
    through all the Messages and check myself?

    Thanks

    MT
     
    MT, May 14, 2004
    #1
    1. Advertising

  2. MT wrote:
    > Hi,
    >
    > How can I ask the IMAP server which messages have been added or modified
    > i.e. flags changed since my last sync? Or do I have to recurse through
    > all the Messages and check myself?


    Recurse through the folders and use:

    Folder.hasNewMessages() / Folder.getNewMessageCount(),
    Folder.getMessageCount(), Folder.getUnreadMessageCount()


    /Thomas
     
    Thomas Weidenfeller, May 17, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Henrik Ormåsen

    Curier-IMAP and imap.create()

    Henrik Ormåsen, Aug 19, 2006, in forum: Ruby
    Replies:
    0
    Views:
    177
    Henrik Ormåsen
    Aug 19, 2006
  2. Jon Fi
    Replies:
    4
    Views:
    540
    Kashia Buch
    Oct 21, 2006
  3. jasonnaylor
    Replies:
    1
    Views:
    256
    jasonnaylor
    Apr 16, 2008
  4. Adam Akhtar
    Replies:
    1
    Views:
    178
    Eric Hodel
    Dec 15, 2008
  5. Abhishiv Saxena

    Support for IMAP IDLE in net/imap

    Abhishiv Saxena, Jul 3, 2009, in forum: Ruby
    Replies:
    4
    Views:
    197
    Eric Hodel
    Jul 4, 2009
Loading...

Share This Page