Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / March 2008

Tip: Looking for answers? Try searching our database.

Move appears to copy

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JoeLiuzzo - 06 Mar 2008 19:33 GMT
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?
Sue Mosher [MVP-Outlook] - 06 Mar 2008 23:31 GMT
If you want only the first rule to process the message, add the "stop processing" action to it.

Signature

Sue Mosher, Outlook MVP
  Author of Microsoft Outlook 2007 Programming:
    Jumpstart for Power Users and Administrators
   http://www.outlookcode.com/article.aspx?id=54

> I'm guessing the answer to this has to do with some sort of timing, but I
> can't figure it out.
[quoted text clipped - 25 lines]
>
> Can someone explain this?
JoeLiuzzo - 07 Mar 2008 20:51 GMT
Thank you very much.  I never noticed that option, as it's never been a
factor in my rules hierarchy before.

> If you want only the first rule to process the message, add the "stop processing" action to it.
>
[quoted text clipped - 27 lines]
> >
> > Can someone explain this?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.