Results 1 to 6 of 6
  1. #1
    mailme_gx is offline Member
    Join Date
    Mar 2011
    Posts
    4
    Rep Power
    0

    Default javamail pop3 getmessagecount gives lower number

    Hi All

    Since there is no javamail in other apis im posting here.

    I am using javamail to connect to my gmail account via pop3s when i open a folder (INBOX) and get messages or getMessageCount I only get 471 messages despite having 2016 email.

    imap works fine but pop3 brings too few messages.
    Im a bit clueless where to begin looking since code is all correct and there are no errors.


    GX

  2. #2
    yellowledbet is offline Senior Member
    Join Date
    Feb 2011
    Location
    Georgia, USA
    Posts
    122
    Rep Power
    0

    Default

    Are sure it doesn't have to do with your gmail settings? When you enable pop in gmail settings there is a setting that says something to the effect of 'enable pop for mail after someDate'.

  3. #3
    mailme_gx is offline Member
    Join Date
    Mar 2011
    Posts
    4
    Rep Power
    0

    Default

    Thanks for your reply yellowledbet.

    Im quite sure I checked my gmail settings and the emails received are from 2006 they are really old emails recent ones are not being received. I also tested other pop accounts and recent emails are not being fetched.

    I tried

    prop.put("mail.pops.forgettopheaders", true);
    prop.put("mail.pops.disabletop", true);

    but it did not help

    GX

  4. #4
    mailme_gx is offline Member
    Join Date
    Mar 2011
    Posts
    4
    Rep Power
    0

    Default

    Hi all

    disabling and enabling pop3 not only retrieves 336 messages, gmail remembers which messages have been downloaded by pop3 and has a 'recent mode' to work around this. Hence it is my conclusion that gmail uses non standard procedure and it is not a problem with javamail settings but gmail itself, I have also has problems with non gmail accounts but not yet investigated them.

    Thanks

    GX

  5. #5
    adalhardarmin is offline Member
    Join Date
    Apr 2011
    Posts
    1
    Rep Power
    0

    Default Pop3

    dear friends can i have POP3 source code in java?because i m having project in which i have to read emails from email client.thanks

  6. #6
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,193
    Rep Power
    19

    Default

    Wrong site. This is a forum. You seem to be looking for a code mill.

    db

Similar Threads

  1. Strings Lower/UpperCase
    By jeata in forum New To Java
    Replies: 1
    Last Post: 10-30-2010, 05:37 PM
  2. Help Pop3 Server!!
    By dnvthv in forum New To Java
    Replies: 0
    Last Post: 10-09-2010, 02:42 PM
  3. J2ME POP3 connection code for INBOX
    By madhuchannama in forum CLDC and MIDP
    Replies: 4
    Last Post: 09-09-2010, 08:08 PM
  4. sending mails thru pop3 server.........
    By vrk in forum Advanced Java
    Replies: 1
    Last Post: 03-25-2009, 10:59 PM
  5. Global Data Entry. Earn $2,000 a day use rebate lower price save money $$$
    By arturmoniswork in forum Reviews / Advertising
    Replies: 0
    Last Post: 12-27-2008, 01:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •