Unread SMS count is wrong

My unread message count is 1 all the time. I have gone through all my SMS conversations one by one and none of them should be unread, and none have a blue dot next to them.
I thought 2.1 would get rid of this but the problem is still there. Has anyone else had this problem?

The message in question is from a normal number with messages in the SMS app that I can read, and that I reply to many times a day so nothing unusual there. However.....
* It does not show up in the SMS thread for that number
* in the database the flag on it is 0 (instead of 2 or 3 for a normal message)
See below.... the message that doesn't appear in SMS.app and that has a strange 'unread' flag...
sqlite> select * from message where flags='0';
140|+44xxphonenumberxx|1219769358|Sender attempted to call you 2 time/s without leaving a message. Last attempt on 26.08.2008, 18:49. Swisscom|0|1||19|0|75|0|0
deleting the row doesn't work.....
sqlite> delete from message where ROWID =140;
SQL error: no such function: read
updating it to look like a normal row doesn't work either...
sqlite> update message set flags=2 where flags=0;
SQL error: no such function: read
because there are triggers on the message table....
sqlite> .schema message
CREATE TRIGGER delete_message AFTER DELETE ON message WHEN NOT read(old.flags) BEGIN UPDATE msg_group SET unread_count = (SELECT unread_count FROM msg_group WHERE ROWID = old.group_id) - 1 WHERE ROWID = old.group_id; END;
CREATE TRIGGER markmessageread AFTER UPDATE ON message WHEN NOT read(old.flags) AND read(new.flags) BEGIN UPDATE msg_group SET unread_count = (SELECT unread_count FROM msg_group WHERE ROWID = new.group_id) - 1 WHERE ROWID = new.group_id; END;
Any sqlite help appreciated.... perhaps dumping the triggers to a temporary table, deleting them, removing the row, then putting the triggers back...... I'll try that next time I have some spare time unless someone can find a way in the meantime and post it up.

Similar Messages

  • HT1688 The unread sms count is wrong, how do I fix?

    For the past two weeks my text messages show I have 4 unread messages and I don't. I've scrolled all the way down to the bottom of my text log and they have all been read.  What do I do?

    close out of the app, double tap the home button and then close out of the app.
    then do a reset, hold down the home/power button together until you see the apple logo and then release, then wait for the phone to boot back up.

  • HT1694 Unread email count is wrong

    Hi,
    Unread email counter is wrong after search. Has been happening for a long time and still no fix from apple.
    Thanks for help

    Hi, jaff067.  
    Thank you for visiting Apple Support Communities. 
    I understand that you have an unread message counter, but your mail account indicates all mail is read.  This usually means that you have an additional mail account setup.  Check to see if you can access this account or change mailboxes and clear the unread via the steps below.   
    Write messages
    Cheers, 
    Jason H.  

  • Unread message count is wrong in Mail and Dock

    Just last week I noticed that both my Email Inbox & Mail Dock Icon is showing an incorrect unread message count on both my MacBook & iMac. I am using a Microsoft Exchange Hosted account (Office 365) and it is the only email account tied to both of my Macs. My iPhone shows the correct unread message count as well as Outlook Web Access, and on a seperate windows-based computer, Outlook is showing the correct unread message count of 3. Both Mac systems are using OS X 10.7.3 and I have never experienced this issue before.
    The MacBook is showing 39 unread messages, and the iMac is showing 16, in actuality there are 3 unread messages. If I create a smart mailbox that shows only unread messages - it shows up with the correct number (3), when I sort by "Unread Messages" for Inbox, it only shows that I have three unread messages.
    I have rebuilt the inbox, I have deleted the email account from the computer, restarted the computer and then readded it, all it did was bring the unread message count from 19 to 16 on my iMac (still - it should be 3).
    I have also gone to Mail -> Preferences -> General and verified that Show Dock Unread County is set to "Inbox" but oddly enough, when I click "All Mailboxes" the unread count on the Dock changes to 3.
    Is there a file I can delete to reset that unread message count? I feel like I've done everything that's suggested to no avail.
    Thanks!

    There is a small glitch, and you guys are close.
    In Mail Preferences under General, there is the option for:
    Dock Unread Count --
    Your choices in the dropdown are either:
    None
    Inbox Only
    All Boxes
    The problem is that I've often seen the Inbox Only is checkmarked, and stays as checkmarked, even when you last told it to use either None or All Boxes.
    It is possible that Alconic see's Inboxes Only checkmarked, when in fact it's All mailboxes that are set to be showing.
    Try to re-check "Inbox only" even though it's already checked and see what happens...

  • Unread mail count is wrong in iOS7 for Yahoo.

    My iOS7 Mail app reports unread messages from my Yahoo account when there are none.  The numbers vary from zero to 8, but with the exception of zero, always appear to be more than the actual number.  I have tried...
    Checking the configuration of server and client.
    Killing the Mail app.
    Reboot my iPhone.
    Opening every message, read or otherwise.
    Using Edit>Mark All as unread, then Edit>Mark All as read.
    Delete and re-add account.
    Occasionally it will report zero as it should, but I've never seen a correct count above zero since I upgraded to iOS7.

    Same problem here with Yahoo mail.  Sometimes it works, sometimes it doesn't.  I have looked at Yahoo mail from all folders in my phone (running 7.0.3 now), as well as in a browser, looked at Inbox (empty), all Trash, Sent, etc. folders and they're completely empty on Yahoo servers.
    I thought that 7.0.3 had initially cleared up this issue but it has reappeared, and I don't know how to fix it.

  • Unread email count wrong on my IPad

    The Unread email count is wrong on my IPad. I have read other threads about this issue but they all seem to point to Macs. I did just update to IOS 6 last Monday(5 days ago)

    I deleted the account and reinstalled it and the count is now correct.

  • I am using iphone5 and when sending sms within 160 characters i am getting 2 sms counts deduction & i hear the message send sound twice. what is wrong here. can some one please help me here???

    i am using iphone5 and when sending sms within 160 characters i am getting 2 sms counts deduction & i hear the message send sound twice. what is wrong here. can some one please help me here???
    APPLE need to do something here!!!!!!1

    Hi...
    Thanks for your repaly .
    and i am not bale to post a question in developer forum i tried hard but i didnt get .Can you plz explain me how to post a question in developer forum this is very helpfull for me.Because i never did this thing.

  • Unread Email Count wrong for all eternity?

    I've read a number of threads where people had the same problem but I've never seen a solution. My unread email count on my Yahoo mail is stuck at 5 (+ whatever unread emails I really have.)
    I've:
    --Double-checked all folders. There are no unread emails I'm missing
    --Marked all emails as read in Yahoo just in case
    --Deleted and re-added my Yahoo mail account on my phone
    --Turned off and on, and done a hard reset on my phone
    --Prayed, sang voodoo chants, and yelled at the thing
    The false unread emails mock me. It's a minor annoyance but it bugs me because everything else just works so well that it sticks out.
    Anyone have the same problem and solve it? Please?!
    Thanks, Jeff

    Try doublclicking on the home button, find Yahoo icon, hold till wiggles, press red sign and close it... then reopen Yahoo and see if the issue is still there.
    It may work, but it is a very long shot.

  • Unread Mail Count wrong after Time Machine restore

    I, and others on this forum seem to have an unsolved issue having restored from Time Machine backup, so presumably a glitch somewhere in the restore system.
    We have followed the normal advice of rebuilding mailboxes, but it doesn't help.
    Does anyone have an answer to how to reset the unread mail count to zero other than trash all the accounts and manually 'rebuild'
    Thanks
    Stephen

    Hi,
    I cannot take credit for this solution - I found the answer to this by searching through the Mail discussion forums. Another user had 3 emails that he had read, but they were still showing up in his Mail Badge Counter and this is how he fixed it.
    The super-simple-solution:
    Create a "Smart Mailbox" and set it to only contain all unread mail messages. This will grab all of the emails that Mail "thinks" are unread and is marking as such in the badge counter. Select all the emails, mark as read... and you're good to go.
    Hope this helps.

  • How to get unread message count

    I m working in mail application where i need to get the unread message count.Can anyone help me out in solving this issue ,is there any specific method available in javamail to get this count.
    Thanx in Advance

    Is there some reason you're unable to read the
    javadocs? Did you find them too confusing?
    What's wrong with the method Folder.getUnreadMessageCount?
    Oh, and if you're using POP3 instead of IMAP,
    read the FAQ and the com.sun.mail.pop3 package
    javadocs.

  • Incorrect unread inbox count in iphone OS 3.0 - "Phantom" unread email?

    For one of my IMAP email accounts, the iPhone always displays an unread inbox count exactly 1 more than the actual number of unread emails. That means that when all emails are "read" the iphone still displays a red badge of 1 rather than no badge. In the mail app on the phone the inbox indicates a 1 while no messages are displayed as unread.
    The one peculiar thing is that at the end of the list of inbox email messages which just displays the partial contents of the email is a "phantom" blank email with a date of 12/31/00 which cannot be selected for deletion or move by using the edit button. It's like a permanent placeholder for something.
    Checking the email account with a web client or Mac Mail (from 10.5.7) shows no such artifact email exists. My guess is that this phantom email is giving me the wrong unread count, but I can't get rid of it within the iphone OS where it exclusively seems to reside.
    Anyone else see this?

    Hi Joe,
    The very same applies to me. Except that the date of this "ghost" email is 01.01.01. This is happening on my mobile me account. Removing and re-installing the account do not solve the problem. As you mentioned the "ghost" message does not appears neither in web interface nor in Mac email client.
    Here's a screenshot of the problem:
    http://img10.imageshack.us/i/ghostemail.jpg/
    Cu Jérôme

  • Unread email count Is 3900 after upgrade to IOS 8.1.2

    AFter upgrading to IOS 8.1.2 my unread email count jumped to 3900 even though there is no email on my phone and none on the server. Is there a way of clearing this count?

    Hi, jaff067.  
    Thank you for visiting Apple Support Communities. 
    I understand that you have an unread message counter, but your mail account indicates all mail is read.  This usually means that you have an additional mail account setup.  Check to see if you can access this account or change mailboxes and clear the unread via the steps below.   
    Write messages
    Cheers, 
    Jason H.  

  • Unread message count not updating in Mail.app

    I am running a MBP 15" with 10.4.10 and Mail.app (version 2.1.1 build 752.3) and as you can see in this screengrab here:
    the unread message count is not correctly updating.
    This may actually be something for the Mail dev' team to handle, unless some one else out there in the groups has some inside knowledge about this issue.
    For that matter, I do not know how to forward this to the Mail dev' team inside Apple, so if any one else does, please do.
    Cheers.
    Jason
    MBP 15; 2.16 ghz; 2gb RAM; 100gb;   Mac OS X (10.4.10)   Palm Treo 680 + Cisco 1242 WAP + xo.net + Hyatt Embarcadero room service

    Jason,
    What screengrab?
    What type of account do you have -- POP, IMAP or .mac? How many accounts do you have? Do you access your account from more than one computer?
    Unread message count where -- on the Mail Icon in the Dock or in individual mailboxes? In the Dock, the Unread message count will NOT reflect any messages moved to custom mailboxes by Rules, but only those in the Inboxes.
    Ernie

  • Inbox and Drafts show unread message count of all folders within. Can I get the local folders to do this too?

    I'm filtering mail into folders in the local folder tree. There may be two or three levels, e.g., Local Folders -> Lists -> OS -> MacOSX. Mail that is unread in the MacOSX folder is counted and displayed when the MacOSX folder is visible. However, keeping the entire tree on display is a nuisance and it is long, so I don't see things ate the bottom. I have to scroll to reveal the rest of the items in the folder tree. For these reasons I'd prefer to have the folder tree in its minimal state.
    Is it possible to have the the top level folders display an unread message count for all the enclosed folders?

    when I collapse the folder tree of local folders, it shows the unread count for sub folders.

  • 10.5 Mail: Hide unread message counts of folders? (or, how backup all mail)

    Ok, this is a very confusing topic. I have connected Apple Care, and they understand what I'm trying to do, but say there is "no way" that it can be done. But I know there is a way so hopefully someone can help.
    First, this is what I'm asking for...then I'll explain why. I am looking for a way to "hide" the unread mail counts of a SPECIFIC FOLDER. (not the in box, not all messages, ONLY messages in ONE folder.)
    Here is why.... I finally got my mother using email with her Verizon DSL address in Mail.app. The problem is, she is one of those people that "deletes" just about every message she gets because she "doesn't need it anymore" But, there has been many times where she has deleted something that down the road might be needed - and therefore, it is lost. Sure, Time Machine is set up and could recover it, and there are other ways of getting things back, but is just too difficult, and those methods don't last forever.
    So here is what I did to solve this and make it easy - I set up a RULE in mail.app that takes every message and COPIES it to a folder called "BACKUP." Now, she can delete things from her in box when she is done with them (which will make her happy) but down the road if the message is ever needed again, it is just a search or even a SPOTLIGHT search away! Or, you could just open the "backup" folder and see an index of ALL the messages. So I had this setup for a while and it was great....but there was one problem.... The folder "backup" would count un-read messages. So after a while, she would go to check her mail and see that she has 50 unread messages! (only 1 of which was really un-read in her in box, but the other 49 where old copies in the backup folder.) So I then edited the rule and found an action to mark the message as read. Time goes by and then I realize that NOTHING in being marked read. So even real unread messages in the in box would immediately be marked as read and would not come up as bolded or with the blue dot. So that became annoying as it was hard to see what was new and what wasn't. So then I came up with this idea of setting a rule that all of her Verizon email would be forwarded to another account (I set up a gmail account for her) so that all I messages would be forwarded there. Then, I setup gmail to forwarded them back thinking it would be easy to setup a rule that says any message coming from "gmail account" would be moved to folder and marked as read. I then get a panic phone call saying..."my inbox keeps getting hundreds of unread messages...there all the same thing! I then log in to see that one new message was being pushed back and forth between Mail.app and gmail in an endless loop! so I had to shut the forwarding to stop that!
    So as you can see....this is very difficult, but yet the problem is so simple and should have an easy fix. All I want is a way to backup all incoming messages, and keep them stored in a folder that marks them as read.
    Could anyone PLEASE help me out with this? _Apple says there is no way to do this because of the limitations in the Rules that mail.app provides_....but it does give me the option to run an Apple Script. _AppleCare said that it could easily be done via an Apple Script_, but I have NO CLUE on how to even start that! Even the easy tutorials I tried left me confused.
    So - ANY ideas????
    Thank you SO much in advance for anyone that could help out!
    -Scott

    Sorry I am marking this solved, but it never was.
    The best thing that could be done is to rely on Time Machine, or forward all of your incoming email to another address.
    Apparently, there is no way to do what I asked. But there should be. So Apple, please fix this.
    Again, sorry I am marking it as solved.

Maybe you are looking for