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 to set some routing rules in my php application, and they should
I already have a few rules set up redirecting users, like none www to
I have a Firstname and Lastname fields, I have set rules to 'required' but
I have function like this: function gi_insert() { if(!IS_AJAX){ $this->load->library('form_validation'); $this->form_validation->set_rules('name', 'Naslov', 'trim|required|strip_tags'); $this->form_validation->set_rules('body',
In my .htaccess file I have a set of rules as follows: RewriteRule ^dir/page1$
I have a fairly complex set of rewrite rules to give my site pages
I currently have a .htaccess file set up with this rule: RewriteRule ^([a-zA-Z0-9_-]+)$ user\.php?user=$1
I have this rules in apache: RewriteRule ^seccion/([^/\.]+)/?$ index.php?tipo=seccion&slug=$1 [L] RewriteRule ^seccion/([^/\.]+)/pag/([0-9]+)$ index.php?tipo=seccion&slug=$1&page=$2 [QSA,L]
I have some iptables rules which redirect requests for port 80 onto our application
I have two CSS rules following each other: .some td:first-child:before { content:url('path/to/image.png') ; }

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.