![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
I'm guessing the answer to this has to do with some sort of timing, but I
can't figure it out. I have 2 rules on my Inbox. 1) Rule #1 moves mail messages to a PST having a folder _Inbox 2) Rule #2 -- which I believe should fire AFTER rule #1 -- uses a custom script which uses the objMail.Move method to move the message to a different folder, say DestFolder, in another PST. I trace the VBA and have no errors & when It's done, there appears to be a copy of the email message in the DestFolder, because the original message is still sittng in the _InBox folder. If I switch the order of the rules so that the 2nd rule has a higher priority (since Outlook says they process in the order shown), the surprising result is that there is no difference. I still have a copy of the message in BOTH _InBox and DestFolder. I would have thought that if rule 1 fired first and moved the message (based on it's criteria), rule 2 wouldn't see it. If on the other hand, rule 2 fired first and moved it to DestFolder, then rule 1 wouldn't see it, so it wouldn't be in _InBox. I don't understand why there are two copies, particularly since neither the canned rules nor the VBA tries to copy the item -- the both use a *move* directive. Can someone explain this? |
Ads |
#2
|
|||
|
|||
![]()
If you want only the first rule to process the message, add the "stop processing" action to it.
-- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "JoeLiuzzo" wrote in message ... I'm guessing the answer to this has to do with some sort of timing, but I can't figure it out. I have 2 rules on my Inbox. 1) Rule #1 moves mail messages to a PST having a folder _Inbox 2) Rule #2 -- which I believe should fire AFTER rule #1 -- uses a custom script which uses the objMail.Move method to move the message to a different folder, say DestFolder, in another PST. I trace the VBA and have no errors & when It's done, there appears to be a copy of the email message in the DestFolder, because the original message is still sittng in the _InBox folder. If I switch the order of the rules so that the 2nd rule has a higher priority (since Outlook says they process in the order shown), the surprising result is that there is no difference. I still have a copy of the message in BOTH _InBox and DestFolder. I would have thought that if rule 1 fired first and moved the message (based on it's criteria), rule 2 wouldn't see it. If on the other hand, rule 2 fired first and moved it to DestFolder, then rule 1 wouldn't see it, so it wouldn't be in _InBox. I don't understand why there are two copies, particularly since neither the canned rules nor the VBA tries to copy the item -- the both use a *move* directive. Can someone explain this? |
#3
|
|||
|
|||
![]()
Thank you very much. I never noticed that option, as it's never been a
factor in my rules hierarchy before. "Sue Mosher [MVP-Outlook]" wrote: If you want only the first rule to process the message, add the "stop processing" action to it. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "JoeLiuzzo" wrote in message ... I'm guessing the answer to this has to do with some sort of timing, but I can't figure it out. I have 2 rules on my Inbox. 1) Rule #1 moves mail messages to a PST having a folder _Inbox 2) Rule #2 -- which I believe should fire AFTER rule #1 -- uses a custom script which uses the objMail.Move method to move the message to a different folder, say DestFolder, in another PST. I trace the VBA and have no errors & when It's done, there appears to be a copy of the email message in the DestFolder, because the original message is still sittng in the _InBox folder. If I switch the order of the rules so that the 2nd rule has a higher priority (since Outlook says they process in the order shown), the surprising result is that there is no difference. I still have a copy of the message in BOTH _InBox and DestFolder. I would have thought that if rule 1 fired first and moved the message (based on it's criteria), rule 2 wouldn't see it. If on the other hand, rule 2 fired first and moved it to DestFolder, then rule 1 wouldn't see it, so it wouldn't be in _InBox. I don't understand why there are two copies, particularly since neither the canned rules nor the VBA tries to copy the item -- the both use a *move* directive. Can someone explain this? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
AppointmentItem.Move creates a copy? | eric | Add-ins for Outlook | 1 | February 26th 08 12:54 AM |
How to copy (or move) Journals from one folder to another | rdc | Outlook - General Queries | 5 | November 26th 07 09:34 PM |
Copy and move mail to folder | LDMueller | Outlook and VBA | 4 | September 22nd 06 12:45 PM |
Rules do not move message, they copy, How to stop this? | J | Outlook - General Queries | 3 | September 13th 06 12:34 AM |
Make move mean copy.. | Slick_lar | Outlook and VBA | 7 | August 25th 06 04:36 AM |