Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2278
  • Last Modified:

Incorrect "Show total number of items" count on Inbox

I have a mailbox which is shared to about 20 or more people. Under the properties of the inbox I have configured it to display "Show total number of items" rather than "Show number of unread items".

Next to the Inbox, it's displaying 1 extra numeric character. For instance, if there are 10 emails in the inbox, the "Show total number of items" would read 11.

Any help on correcting this would be appreciated!
0
klikon
Asked:
klikon
  • 5
  • 5
1 Solution
 
Joseph DalyCommented:
This may not be a fix for it but have you tried clicking on the inbox and selecting "mark all as read" This should set the count on unread items to zero. This may just resolve the problem.
0
 
klikonAuthor Commented:
I have tried that, it didn't work. I've also tried toggling between show total number and show unread but no dice.
0
 
Chris BottomleyCommented:
Is there an additional non email item in teh mailbox?

Chris
0
Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists β€” all with no agents to manage and no additional licenses to buy.

 
Chris BottomleyCommented:
If you need a hand to find such then you could try the snippet.  This will print the subject for items which are not mailitems .... or if you enable the commented line delete them.

Chris
Sub findNoneMail()
Dim olApp As Outlook.Application
Dim olNS As Outlook.NameSpace
Dim olfldr As Outlook.MAPIFolder
Dim oopsItem As Object
Dim itemCount As Long
Dim strFilter As String
    
    Set olApp = Outlook.Application
    Set olNS = olApp.GetNamespace("MAPI")
    Set olfldr = olNS.GetDefaultFolder(olFolderInbox)
 
    For itemCount = olfldr.Items.count To 1 Step -1
        Set oopsItem = olfldr.Items(itemCount)
        If oopsItem.Class <> olMail Then Debug.Print oopsItem.subject
'        If oopsItem.Class <> olMail Then oopsItem.dedlete
    Next
End Sub

Open in new window

0
 
klikonAuthor Commented:
I get this error when I run your script...

Line: 2
Char: 11
Error: Expected end of statement

This mailbox is also not my default one so will your script be looking through all Inbox's which I have access to or only the default one?
0
 
Chris BottomleyCommented:
It is an outlook macro rather than a script ... do you need it as a script and I will modify to allow you to pick the folder  if I can.  Not sure about OL2003 capabilitis in that regard.

Chris
0
 
klikonAuthor Commented:
OK I've tried running it as a macro in Outlook and it has not corrected the incorrect count for the shared Inbox.
0
 
Chris BottomleyCommented:
That was my two pennorth.

You did notice that as posted it merely prints the deatils of the items in teh immediate window and that to actually delete it needed you to enable the commented out line of code?

Chris
0
 
klikonAuthor Commented:
It didn't do anything I'm afraid. When I run it, nothing happens.
0
 
Chris BottomleyCommented:
Looking again ... there was a typo in the script try the following just in case!

Chris
Sub findNoneMail()
Dim olApp As Outlook.Application
Dim olNS As Outlook.NameSpace
Dim olfldr As Outlook.MAPIFolder
Dim oopsItem As Object
Dim itemCount As Long
Dim strFilter As String
    
    Set olApp = Outlook.Application
    Set olNS = olApp.GetNamespace("MAPI")
    Set olfldr = olNS.GetDefaultFolder(olFolderInbox)
 
    For itemCount = olfldr.Items.count To 1 Step -1
        Set oopsItem = olfldr.Items(itemCount)
        If oopsItem.Class <> olMail Then Debug.Print oopsItem.subject
        If oopsItem.Class <> olMail Then oopsItem.delete
    Next
End Sub

Open in new window

0
 
klikonAuthor Commented:
I ended up just deleting the mailbox and re-creating it. That solved the problem.
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered β€œyes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 5
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now