Display the Outlook icon in the notification area for messages, not in the inbox

I have rules for moving some email messages to different folders. I would like this to still display the envelope in the notification area, but there is no way to do this in the rules wizard. It looks like I had to either have a "run a script" or "take a custom action" rule to allow either vba or c / c ++ respectively.

Anyone have a better solution?

0


source to share


4 answers


You can also achieve this not with a rule, but with a rule similar to an action in code. For example:

Private Sub Application_NewMailEx(ByVal EntryIDCollection As String)

   Dim mai As Object
   Dim strEntryId

    For Each strEntryId In Split(EntryIDCollection, ",")
        Set mai = Application.Session.GetItemFromID(strEntryId)
        If mai.Parent = "Inbox" Then
            If mai.SenderEmailAddress = "the-email-address-the-rule-applies-to" Then
                mai.Move Application.GetNamespace("MAPI").GetFolderFromID("the-entry-ID-of-the-folder-you-want-to-move-the-message-to")
            End If
        End If
        Set mai = Nothing
    Next
End Sub

      

How to get folder id (i.e. folder login id):

This is just a manual way, you can make a recursive procedure, but for simple purposes this is fine. For example, I had a structure like:

Mailbox - My_Name_Here

     Inbox

          The Subfolder I'm Looking For

     Sent Items

     ...

      

So, in the Immediate window, I typed:

? Application.GetNamespace("MAPI").Folders(1)

      

and increased the number until I received "Mailbox - My_Name_Here"

then I typed:



? Application.GetNamespace("MAPI").Folders(the_number_of_my_mailbox).Folders(1)

      

increasing the number until I receive an Inbox.

Then:

? Application.GetNamespace("MAPI").Folders(the_number_of_my_mailbox).Folders(the_number_of_my_Inbox).Folders(1)

      

increasing the number until you get "The subfolder I'm looking for"

Then:

? Application.GetNamespace("MAPI").Folders(the_number_of_my_mailbox).Folders(the_number_of_my_Inbox).Folders(the_number_of_the_subfolder_i_was_looking_for).EntryID

      

And it was: the input id of the folder where I wanted to move the message. You understand, I'm sure :)

+1


source


Check out MailAlert , an Outlook plug-in that does just that. It still works in Outlook 2007 (although I have had some instability since I recently installed it, which may or may not be related).



+1


source


The new version of Mail Alert that has just been released will allow you to manage the notification icon, as well as pop-up alert and sound alerts. Here are some of the new features in version 2.0:

  • Audible alerts - play a sound for incoming emails
  • Notification Area Alerts - Displays the notification area icon (system tray)
  • Programmatic Alerts - launches a program and can transmit information from an incoming email message to this program
  • Disable function - quickly disable all alerts.
  • Microsoft Outlook 2007 support
  • Support for multiple monitors.
  • Exchange Unicode Server Support
  • And more desktop alert options:
    • Aero Glass Style Warning Window (Windows Vista)
    • The ability to easily close the warning window
    • The ability to quickly open, reply [to all] or forward a message directly from the buttons of the notification window.
    • The ability to convert a message into a task, mark the message for later viewing or move the message to another folder; everything directly from the context menu of the alert window
    • Ability to set the default position of alerts wherever you want.
    • Confidential option requires a click before showing a preview of the message body.
+1


source


Step 1 of the Rule Wizard has the option "Display Desktop Alert". he does the trick. this wizard can be started when editing a specific rule.

+1


source







All Articles