12 Replies Latest reply: Aug 18, 2011 12:19 PM by Scott Nash
Scott Nash Level 2 Level 2 (160 points)

Using Lion Mail.  I set up a Gmail account and the badge beside the account always says I have nine mails.  How many I actually have dosen't matter, it's always nine (this in classic mode, of course).  It also passes that incorrect data to the dock badge on the mail app.  Please help, it really effects the way I use the products (In never know when I have new mail).

 

Thanks.


Powerbook G4
  • FishComputer Level 4 Level 4 (1,035 points)

    does it work in the new mode?

  • Scott Nash Level 2 Level 2 (160 points)

    Yes.  I just tried it.  Same thing.  I had to 'unhide' the sidebar, and both the sidebar badge and the dock badge are still wrong.

  • FishComputer Level 4 Level 4 (1,035 points)

    hmm....try deleting the account in system preferences, then adding it again

     

    Screen Shot 2011-08-12 at 4.13.03 PM.png

  • Scott Nash Level 2 Level 2 (160 points)

    No Joy.  Took it out of prefs.  Rebooted.  Checked that it was gone from mail.  Rebooted again, just to be sure.  Then added it again (in the prefs panel).  Not the account is back and I have the same thing.  The account is working, but the badges say nine mails.  I'm perplexed.

  • Scott Nash Level 2 Level 2 (160 points)

    Ok.  Not finding any solutions.  How about this.  Anyone know where that data is polled from?  It's not in the prefs, I trashed and rebuilt those.  It's not in the mailbox in app support, I trashed and rebuilt that too.  Mail has about a million little files associated with it.  Can anyone at least help me narrow down this problem a little?  It's geting that very specifc number from somewhere.  Ok, when it's working properly where does it get the number?  Maybe I can troubleshoot it by tracing where the data is SUPPOSED to come from.

  • Marc Wilson Level 4 Level 4 (1,045 points)

    Scott Nash wrote:

     

    Anyone know where that data is polled from?

     

    From GMail, of course... where else did you expect it to come?  How many unread messages does the web interface say you have?

  • Scott Nash Level 2 Level 2 (160 points)

    I meant from within the program.  Where is MAIL getting the number - if finds those numbers from me.com, from Gmail, from local pops and now from yahoo.  Where might this hang up be happening.  It must be stored somewhere.

     

    Anyway.  It says 9.  I have nine messages according to the labels no matter how many messages I have.

  • Marc Wilson Level 4 Level 4 (1,045 points)

    Scott Nash wrote:


    Anyway.  It says 9.  I have nine messages according to the labels no matter how many messages I have.

     

    So the web client says you have nine unread messages, but somehow it's Apple Mail that has the problem?  I think you misunderstand how GMail works.

  • Scott Nash Level 2 Level 2 (160 points)

    Wow.  So Apple community discussions has trolls too.

     

    Does anybody have any serious help?  The problem has not gone away.

  • Marc Wilson Level 4 Level 4 (1,045 points)

    What troll?  If GMail says there are nine unread, and Apple Mail says there are nine unread, then what is the problem?  If that's not what's going on, then you need to explain yourself more clearly.

     

    So I'll speak very plainly myself... how many unread messages does the web interface say you have?

  • Scott Nash Level 2 Level 2 (160 points)

    When I go to google it tells me how many mails I have and what mail is in what box.  Apple has duplicate copies of all folders and all the mail in it accratrly reflects whatever google has.  The problem -- the ONLY problem -- is that apple displays that information incorrectly.  In the 'favorites bar' it tells me one of my accounts has nine mails no matter how many I have (the mail box -- even the APPLE mailbox -- has all the mail accuratly).  If I open the sidebar, it lists the inboxes, and the one beside the box in question is wrong.  It says nine.  Furthermore, it passes that data to the dock.  So it's all working, it's only displaying the data wrong, and that wrong data is displayed in all the badges.  I can't explaine it any clearer than that, but I think it's pretty obvious.

     

    If you want to help, I appreciate it.  If you want to act like I'm a moron then move along.  I'm not and your opinion isn't important to me.  I just want to knock out this last lingering problem that is making me not like Lion as much as Snow Leapord.

  • Scott Nash Level 2 Level 2 (160 points)

    Ok.  With the help of tech support, I managed to fix this problem.  Since I'm clearly NOT a moron who just doesn't know what I'm doing, I suspect it's possible others might have the same problem.  The issue was the envelope index file in the library.

     

    ~library/mail/v2/mail data/envelope index

     

    If you delete that file it forces a 'deep rebuild' that recollects ALL your metadata.  It does not have recall your data from the servers, just the hard drive so it's pretty quick.  After about four minutes of rebuilding, all my stuff reappeared and the badges were correct.

     

    This is similar, but more extensive than the 'rebuild' at the bottom of the mailbox menu.  That didn't work, but this did.