Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 471089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:57:03+00:00 2026-05-12T23:57:03+00:00

I have rules set to move some email messages into different folders. I would

  • 0

I have rules set to move some email messages into different folders. I would like this to still show the envelope in the notification area but there is no option in the rules wizard to do this. It looks like I would either have to have the rule “run a script” or “perform a custom action” allowing either vba or c/c++ respectively.

Anyone else have a better solution?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T23:57:03+00:00Added an answer on May 12, 2026 at 11:57 pm

    You can also achieve it not by using a rule, but doing the rule-like 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 the folder ID (i.e., entryID of the folder):

    This is just a manual way, you could make a recursive procedure but for simple purposes this is fine. For instance, 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 got “Mailbox – My_Name_Here”

    then, I typed:

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

    increasing the number until I got “Inbox”.

    Then:

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

    increasing the number until I got “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 that was it: the entryID of the folder I wanted to move the message to. You get the point, I’m sure 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a class that looks something like this: class ClassA { public: float
I have a window that contains different functional areas of an account. The details,
I have a data-structure such that: SecurityPolicy 1<---* SecurityPolicyRule Therefore, a SecurityPolicy can have
I have the following Execution statement which creates a table (using data from another
Suppose I have a substitution S and list Xs , where each variable occurring
I have a subdomain called sub.domain2.com which I want to point to domain1.com/folder/ I
I am trying to set up my project (built in Codeigniter) in Apache/2.0.52 (CentOS)
I have a console app that watches a folder (Manual code... not using the
Can I display a single message for the multiple form fields in CodeIgniter? For
Working on an ASP.NET MVC 3 (Razor) application, that's mainly concerned with UGC (user

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.