Outlook 2010 Creating flags & categories with IMAP email

0

I have a number of internet emails and have them hooked up to Outlook 2010. I would LOVE to be able to flag emails and set them in categories but since I am using IMAP this doesn't seem to work.

I have done a lot of researching but I can't seem to figure out the easiest and best way to make this happen.

  • Outlook 2010
  • Windows 7
  • using mostly gmail emails

dobrodrummer

Posted 2011-07-21T05:05:50.547

Reputation: 95

Answers

1

Use this Macro and add it to the ribbon as a button. Presto! Categories work for IMAP mail. Of course, they're not synchronized to the server, but they'll stick in the local PST file for your IMAP account.

Public Sub Categorize()
    Dim sel As Outlook.Selection
    Set sel = Application.ActiveExplorer.Selection

    If sel Is Nothing Then
        Exit Sub
    End If

    Dim obj As Object
    Dim selCats As String
    Dim gotCats As Boolean

    For Each obj In sel
        If Not gotCats Then
            obj.ShowCategoriesDialog
            selCats = obj.Categories
            gotCats = True
        Else
            ' ShowCategoriesDialog updates the first one free of charge.
            ' We handle the remaining selected items ourselves.
            obj.Categories = selCats
            obj.Save
        End If
    Next obj
End Sub

I wrote a COM add-in to sync categories with IMAP servers that support custom flags, but I'm not going to share it. That'd only give MSFT an excuse to further delay implementing this themselves.

Display Name must be at least

Posted 2011-07-21T05:05:50.547

Reputation: 11

Hi, as there s still no solution from MS for the missing category sync i would like to ask you, if you may share the COM add-in? – Stephan – 2017-01-22T13:51:20.150

Hi "Display Name must be at least". I have tested your macro that works. Nice job. However i want to ask you if you please can share your server sync script with me. That would be helpful to me because we are i a big need of categorizing imap emails. Thanks in advance. please answer to jonas@infomentor.se – None – 2012-06-26T09:32:34.840

0

In Gmail, you can organize mail using labels and filters. You can also check multiple accounts from Gmail. So this would be easy to solve if you were willing to give up Outlook.

isuldor

Posted 2011-07-21T05:05:50.547

Reputation: 1 726

not so willing to give up Outlook as I use it to link a lot of things between OneNote – dobrodrummer – 2011-07-21T17:45:37.797