A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Move appears to copy



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 6th 08, 07:33 PM posted to microsoft.public.outlook.program_vba
JoeLiuzzo
external usenet poster
 
Posts: 4
Default Move appears to copy

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  
Old March 6th 08, 11:31 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Move appears to copy

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  
Old March 7th 08, 08:51 PM posted to microsoft.public.outlook.program_vba
JoeLiuzzo
external usenet poster
 
Posts: 4
Default Move appears to copy

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 11:20 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.