Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to add unread mails to favorite folder in Outlook?

Sometimes unread email messages may stay among a number of messages, although the Outlook indicates you the number of unread email messages, such as Inbox (5), you can’t find out them at once. Actually you can collect all unread email messages into a favorite folder, making your working conveniently and quickly.

remove all duplicate emails from one mail folder in outlook

We usually receive many duplicate emails with same subjects and attachments which are needed to be removed.The Duplicate Mails in Kutools for Outlook can quickly remove all duplicate emails and keep one only in seconds.   Click for 45 days free trial!
doc remove duplicate emalis
 
Kutools for Outlook: with dozens of handy Outlook add-ins, free to try with no limitation in 45 days.
Office Tab - Enable Tabbed Editing and Browsing in Office, and Make Work Much Easier...
Kutools for Outlook - Brings 100 Powerful Advanced Features to Microsoft Outlook
  • Auto CC/BCC by rules when sending email; Auto Forward Multiple Emails by rules; Auto Reply without exchange server, and more automatic features...
  • BCC Warning - show message when you try to reply all if your mail address is in the BCC list; Remind When Missing Attachments, and more remind features...
  • Reply (All) With All Attachments in the mail conversation; Reply Many Emails at once; Auto Add Greeting when reply; Auto Add Date&Time into subject...
  • Attachment Tools: Auto Detach, Compress All, Rename All, Auto Save All... Quick Report, Count Selected Mails, Remove Duplicate Mails and Contacts...
  • More than 100 advanced features will solve most of your problems in Outlook 2010-2019 and 365. Full features 60-day free trial.

The following guidance will help you collect all unread email messages into an Unread Mail folder, and show the folder in your favorites.

Kutools for Outlook, Includes 20+ powerful features and tools for Microsoft Outlook 2016, 2013, 2010 and Office 365.

Step 1: Shift to the Mail view by clicking the Mail in the Navigation Pane.

Step 2: Create a new search folder:

  1. In Outlook 2010 / 2013, click the New Search Folder button in the New group on the Folder tab.
  2. In Outlook 2007, click the File > New > Search Folder.

Actually there is an alternative method to create a new search folder: right click the Search Folder in Navigation Pane, and click the New Search Folder in the right-click menu.

And this method is available in all of Microsoft Outlook 2007, 2010, and 2013.

Step 2: In the New Search Folder dialog box, select and highlight the Unread mail item, and click OK.

Now an Unread Mail folder is created and shows in the navigation pane. And all unread email messages are collected into this folder automatically. Once an unread email message is opened, it will be removed from the Unread Mail folder automatically.

Step 3: Right click the Unread Mail folder, and click the Show in Favorites item in the right-click menu.

Now the Unread Mail folder is copied and added to your favorites at the top of Navigation Pane.

Tip: If you want to add all unread emails of all accounts to a folder, you can do as below steps:

1. Press Alt + F11 keys to enable the Microsoft Visual Basic for Applications window. And in the Project pane, click Microsoft Outlook Objects > ThisOoutlookSession, and paste below code to right section.

Public WithEvents OlExplprer As Outlook.Explorer
Public WithEvents OlMailItem As Outlook.MailItem
Dim xSelMail As MailItem

Private Sub Application_NewMail()
   AddAllAccountsUnreadMailsToAFolder
   IniEvent
End Sub

Public Sub Initialize_handler()
    Set OlExplprer = Application.ActiveExplorer
    If OlExplprer.Selection.Count <> 0 Then
        Set OlMailItem = OlExplprer.Selection.Item(1)
    End If
End Sub

Private Sub OlExplprer_BeforeFolderSwitch(ByVal NewFolder As Object, Cancel As Boolean)

Dim xOlApp As Outlook.Application
Dim xNameSpace As NameSpace
Dim xMailItem, xSelMail As MailItem
Dim xTargetFld As Folder

On Error Resume Next

Set xOlApp = Outlook.Application
Set xNameSpace = xOlApp.GetNamespace("MAPI")

If NewFolder.Name = "Unread Mail" Then

    For Each xMailItem In NewFolder.Items
        
        If xMailItem.UnRead = False Then
        
            xMailItem.Delete
        
        End If
    
    Next

Else

    For Each xTargetFld In xNameSpace.Folders.Item(1).Folders

        If xTargetFld.Name = "Unread Mail" Then

            For Each xMailItem In xTargetFld.Items
                
                If (OlExplprer.Selection.Count <> 0) Then
                    
                    Set xSelMail = OlExplprer.Selection.Item(1)
    
                    If xSelMail.UnRead Then

                        xSelMail.UnRead = False
                        
                    End If
                
                End If
            Next
         
        End If
    Next
  
End If
    
Cancel = False

End Sub

Private Sub OlExplprer_FolderSwitch()

Dim xOlApp As Outlook.Application
Dim xNameSpace As NameSpace
Dim xMailItem As MailItem
Dim xAccountFld, xTargetFld, xSubFolder As MAPIFolder
Dim xObjItem As Object

On Error Resume Next
Set xOlApp = Outlook.Application
Set xNameSpace = xOlApp.GetNamespace("MAPI")

Refresh

If (OlExplprer.CurrentFolder.Name <> "Unread Mail") Then

    For Each xTargetFld In xNameSpace.Folders.Item(1).Folders

        If xTargetFld.Name = "Unread Mail" Then

            For Each xMailItem In xTargetFld.Items

                If xMailItem.UnRead = False Then

                    For Each xAccountFld In xNameSpace.Folders

                        For Each xSubFolder In xAccountFld.Folders

                            If (xSubFolder.Name <> "Deleted Items") And (xSubFolder.Name <> "Drafts") And (xSubFolder.Name <> "Outbox") And (xSubFolder.Name <> "Junk E-mail") Then

                                For Each xObjItem In xSubFolder.Items

                                    If xObjItem.Class = olMail Then

                                        If (xObjItem.Subject = xMailItem.Subject) And (xObjItem.SenderName = xMailItem.SenderName) And _
                                           (xObjItem.Body = xMailItem.Body) And (xObjItem.Attachments.Count = xMailItem.Attachments.Count) And _
                                           (xObjItem.SentOn = xMailItem.SentOn) Then
                                                
                                            xObjItem.UnRead = False

                                        End If

                                    End If

                                Next

                            End If

                        Next

                    Next

                End If

            Next

        End If

    Next

End If

End Sub

Private Sub OlExplprer_SelectionChange()

Dim xOlApp As Outlook.Application
Dim xNameSpace As NameSpace

On Error Resume Next
Set xOlApp = Outlook.Application
Set xNameSpace = xOlApp.GetNamespace("MAPI")

If (OlExplprer.CurrentFolder.Name = "Unread Mail") And (OlExplprer.Selection.Count <> 0) Then

    SelUnreadMailFld OlExplprer.CurrentFolder.Items, xNameSpace.Folders

Else

    If (OlExplprer.CurrentFolder.Name <> "Deleted Items") And (OlExplprer.CurrentFolder.Name <> "Drafts") And _
       (OlExplprer.CurrentFolder.Name <> "Outbox") And (OlExplprer.CurrentFolder.Name <> "Junk E-mail") Then
       
       SelOtherFld xNameSpace.Folders.Item(1).Folders
        
    End If

End If

End Sub

Sub SelUnreadMailFld(EMails As Outlook.Items, Flds As Folders)

Dim xMailItem As MailItem
Dim xAccountFld, xSubFolder As Folder
Dim xObjItem As Object
On Error Resume Next
For Each xMailItem In EMails 'OlExplprer.CurrentFolder.Items

    If xMailItem.UnRead = False Then

        For Each xAccountFld In Flds

            For Each xSubFolder In xAccountFld.Folders

                If (xSubFolder.Name <> "Deleted Items") And (xSubFolder.Name <> "Drafts") And (xSubFolder.Name <> "Outbox") And (xSubFolder.Name <> "Junk E-mail") Then

                    For Each xObjItem In xSubFolder.Items

                        If xObjItem.Class = olMail Then

                            If (xObjItem.Subject = xMailItem.Subject) And (xObjItem.SenderName = xMailItem.SenderName) And _
                               (xObjItem.Body = xMailItem.Body) And (xObjItem.Attachments.Count = xMailItem.Attachments.Count) And _
                               (xObjItem.SentOn = xMailItem.SentOn) Then

                                If xObjItem.UnRead Then

                                    xObjItem.UnRead = False

                                End If

                            End If

                        End If

                    Next

                End If

            Next

        Next

    End If

Next

End Sub

Sub SelOtherFld(Flds As Folders)
Dim xSelItem, xMailItem As MailItem
Dim xTargetFld As Folder
    
On Error Resume Next
If OlExplprer.Selection.Count <> 0 Then
      
    Set xSelItem = OlExplprer.Selection.Item(1)

    If xSelItem.UnRead = False Then

        For Each xTargetFld In Flds

            If xTargetFld.Name = "Unread Mail" Then

                For Each xMailItem In xTargetFld.Items

                    If (xSelItem.Subject = xMailItem.Subject) And (xSelItem.SenderName = xMailItem.SenderName) And _
                       (xSelItem.Body = xMailItem.Body) And (xSelItem.Attachments.Count = xMailItem.Attachments.Count) And _
                       (xSelItem.SentOn = xMailItem.SentOn) Then

                        xMailItem.UnRead = False

                    End If

                Next

            End If
        Next

    End If

End If

End Sub


Sub Refresh()
  
Dim xOlApp As Outlook.Application
Dim xNameSpace As NameSpace
Dim xTargetFld As MAPIFolder
Dim xAllUnreadMails As Integer

On Error Resume Next
Set xOlApp = Outlook.Application
Set xNameSpace = xOlApp.GetNamespace("MAPI")

xAllUnreadMails = AllUnreadMails()

For Each xTargetFld In xNameSpace.Folders.Item(1).Folders

    If xTargetFld.Name = "Unread Mail" Then

        If xAllUnreadMails <> xTargetFld.Items.Count Then
            
            AddAllAccountsUnreadMailsToAFolder
            
            Exit For
        
        End If
    
    End If
    
Next

End Sub

Function AllUnreadMails()

Dim xOlApp As Outlook.Application
Dim xNameSpace As NameSpace
Dim xAllUnreadMails As Integer

On Error Resume Next
Set xOlApp = Outlook.Application
Set xNameSpace = xOlApp.GetNamespace("MAPI")

xAllUnreadMails = 0
For Each xFolders In xNameSpace.Folders

   For Each xSubFolder In xFolders.Folders
   
     If xSubFolder.Name <> "Unread Mail" Then
     
     If (xSubFolder.Name <> "Deleted Items") And (xSubFolder.Name <> "Drafts") And (xSubFolder.Name <> "Outbox") And (xSubFolder.Name <> "Junk E-mail") Then

         For Each xObjItem In xSubFolder.Items
    
            If xObjItem.Class = olMail Then
    
               If xObjItem.UnRead Then
               
                 xAllUnreadMails = xAllUnreadMails + 1
    
               End If
    
            End If
         Next
         
        End If
     
     End If

   Next

Next

AllUnreadMails = xAllUnreadMails
End Function
doc all news in a folder 1

 

2. Then insert a new Module, and paste below code to the Module script.

Public Sub AddAllAccountsUnreadMailsToAFolder()
Dim xOlApp As Outlook.Application
Dim xNameSpace As NameSpace
Dim xFolders, xSubFolder As MAPIFolder
Dim xObjItem As Object
Dim xDelFld As Folder
Dim xUnreadMailFld, xOldUnreadMailFld As Folder
Dim xCopiedItem, xMailItem As MailItem

On Error Resume Next
Set xOlApp = Outlook.Application
Set xNameSpace = xOlApp.GetNamespace("MAPI")

For Each xOldUnreadMailFld In xNameSpace.Folders.Item(1).Folders
    If xOldUnreadMailFld.Name = "Unread Mail" Then
        xOldUnreadMailFld.Delete
        Exit For
    End If
Next

For Each xDelFld In xNameSpace.Folders.Item(1).Folders
    If xDelFld.Name = "Deleted Items" Then
        For Each xMailItem In xDelFld.Items
            xMailItem.Delete
        Next
        For Each xSubFolder In xDelFld.Folders
        'For i = xDelFld.Folders.Count To 1 Step -1
            xSubFolder.Delete
        Next
    End If
Next

Set xUnreadMailFld = xNameSpace.Folders.Item(1).Folders.Add("Unread Mail")
If xUnreadMailFld = nil Then
    Exit Sub
End If


For Each xFolders In xNameSpace.Folders

   For Each xSubFolder In xFolders.Folders
   
     If xSubFolder.Name <> xUnreadMailFld.Name Then
     
     If (xSubFolder.Name <> "Deleted Items") And (xSubFolder.Name <> "Drafts") And (xSubFolder.Name <> "Outbox") And (xSubFolder.Name <> "Junk E-mail") Then

         For Each xObjItem In xSubFolder.Items
    
            If xObjItem.Class = olMail Then
    
               If xObjItem.UnRead Then
                 
                 Set xCopiedItem = xObjItem.Copy
    
                 xCopiedItem.Move xUnreadMailFld
    
               End If
    
            End If
         Next
         
        End If
     
     End If

   Next

Next

IniEvent

End Sub

Public Sub IniEvent()
Dim xFld As ThisOutlookSession
Set xFld = ThisOutlookSession
xFld.Initialize_handler
End Sub
doc all news in a folder 2

 

3. Run the code named AddAllAccountsUnreadMailsToAFolder. Then all unread emails have been put a folder named Unread Mail.
doc all news in a folder 3


Kutools for Outlook - Brings 100 Advanced Features to Outlook, and Make Work Much Easier!

  • Auto CC/BCC by rules when sending email; Auto Forward Multiple Emails by custom; Auto Reply without exchange server, and more automatic features...
  • BCC Warning - show message when you try to reply all if your mail address is in the BCC list; Remind When Missing Attachments, and more remind features...
  • Reply (All) With All Attachments in the mail conversation; Reply Many Emails in seconds; Auto Add Greeting when reply; Add Date into subject...
  • Attachment Tools: Manage All Attachments in All Mails, Auto Detach, Compress All, Rename All, Save All... Quick Report, Count Selected Mails...
  • Powerful Junk Emails by custom; Remove Duplicate Mails and Contacts... Enable you to do smarter, faster and better in Outlook.
shot kutools outlook kutools tab 1180x121
shot kutools outlook kutools plus tab 1180x121
 
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Alias · 2 years ago
    Very helpful.

    I have had this issue since last 4 months. It's resolved now.

    TQVM
  • To post as a guest, your comment is unpublished.
    Mike · 3 years ago
    I am having a slightly different problem. I have the Unread Mail Folder working okay, but it is not picking up all of my unread messages from emails accounts I just set up in Outlook 2010. Is there a way to add these new email addresses so that the unread mail goes into the Unread Mail folder?

    Gratefully, Mike
    .
    • To post as a guest, your comment is unpublished.
      Tom · 2 years ago
      Mike. Did you find a resolution for this? I have multiple outlook accounts and would like all my unread messages go to one folder. Rgds Tom
      • To post as a guest, your comment is unpublished.
        Sunny · 2 years ago
        Hello, see your questions, I have updated the article, now here are some codes can create a folder to put all unread emails of all accounts. You can come and have a look.
        • To post as a guest, your comment is unpublished.
          dash323 · 1 years ago
          I tried doing this, but the code crashed outlook for me.
          • To post as a guest, your comment is unpublished.
            Sunny · 1 years ago
            I have tried times, some times it cannot work, but never crashed outlook, sorry I cannot help you.
  • To post as a guest, your comment is unpublished.
    litte pp · 3 years ago
    nice, l look for long time
  • To post as a guest, your comment is unpublished.
    John Autry · 3 years ago
    I hope I get to reed my unred files
  • To post as a guest, your comment is unpublished.
    CD · 3 years ago
    This does not work in 2010 -
  • To post as a guest, your comment is unpublished.
    deepak · 4 years ago
    thanks ! it;s working now :-)
  • To post as a guest, your comment is unpublished.
    Gaetano · 4 years ago
    Super helpful, thank you
  • To post as a guest, your comment is unpublished.
    Rexx · 4 years ago
    Worked like a charm! Thanks a bunch.
  • To post as a guest, your comment is unpublished.
    WildWillie · 4 years ago
    Once you have selected 'show favorites' you can also drag and drop unread message into the favorute Folders box.
  • To post as a guest, your comment is unpublished.
    jamsheer · 4 years ago
    good job...
    thanks for the instructions
  • To post as a guest, your comment is unpublished.
    jamsheer · 4 years ago
    good job
    very helpful
  • To post as a guest, your comment is unpublished.
    Mohamed · 4 years ago
    Thank you. It was really helpful.
  • To post as a guest, your comment is unpublished.
    DL · 4 years ago
    Only shows unread for a particular inbox, no instructions for multiple inboxes :(
  • To post as a guest, your comment is unpublished.
    Princess · 4 years ago
    Nice site! a big help to unfamiliar people like me.
    Thank you very much extendoffice
  • To post as a guest, your comment is unpublished.
    Not Joe · 5 years ago
    Thanks, that is just what I was looking for
  • To post as a guest, your comment is unpublished.
    Harsha · 5 years ago
    Thank youz.. This works like a charm..
  • To post as a guest, your comment is unpublished.
    Guu · 5 years ago
    Great Tips! . Thanks
  • To post as a guest, your comment is unpublished.
    Qamar · 5 years ago
    Hello Friend,
    i follow the same and resolve my issue, its too much gud guide line,

    Thanks Friendzz
  • To post as a guest, your comment is unpublished.
    Vongsak Bounlom · 5 years ago
    Good tips, it's been really helpful
  • To post as a guest, your comment is unpublished.
    Meeshell · 5 years ago
    You made my day!!! And my life happier!! Thank you!! :lol:
  • To post as a guest, your comment is unpublished.
    Denzyl · 5 years ago
    Hello. Followed your instructions again (after lunch) and it worked like a charm.

    Thanks for posting.
  • To post as a guest, your comment is unpublished.
    Denzyl · 5 years ago
    Good afternoon,
    I have followed the procedures except that when I right-click the unread folder, the option to show in favourites is not there. I'm using Outlook 2010 with windows 7.
    Thanks.
  • To post as a guest, your comment is unpublished.
    Fayyaz · 5 years ago
    thanks you very much. :-)
  • To post as a guest, your comment is unpublished.
    Paramesh Korrakuti · 5 years ago
    Nice article, its a helped very nicely.
  • To post as a guest, your comment is unpublished.
    Sushil · 5 years ago
    Thanks!! solves a big problem I was having for 2 months now!!