Outlook saves sent messages when it is not supposed to


F

Frank

I have Outlook 2003 and Windows Vista.

Under Email options, I’ve unselected the “save copies of messages in
Sent Items folder”

I created a rule to be applied when receiving a message:

If the subject contains vuvuzela, permanently delete the message and
reply using an .oft file whose subject line contains vuvuzela.

Then I created a rule to be applied after sending a message:

Move a copy to the Sent Item folder except if the subject contains
vuvuzela

If I send a message with vuvuzela in the subject, the item is not
saved.

However, when replying using the .oft file, it does save the message
in the Sent Items folder.

I can I correct this?

Can it be done using VBA?
 
Ad

Advertisements

K

Ken Slovak

What needs to be done is to set a property on the mail item before it's
sent, DeleteAfterSubmit = true. That will delete the item rather than put it
in Sent Items after the item is sent out.

The SaveSentMessageFolder property, which is set to a MAPIFolder, will save
the item to the specified folder instead of to Sent Items.

Either property can be set using VBA code, or in the Item_Open() code of the
OFT. Of course in recent versions of Outlook code won't run in a custom form
or OFT unless it's published.

From a rule you can run a script, which is a specially formatted VBA Sub.
That could set either property.




I have Outlook 2003 and Windows Vista.

Under Email options, I’ve unselected the “save copies of messages in
Sent Items folder”

I created a rule to be applied when receiving a message:

If the subject contains vuvuzela, permanently delete the message and
reply using an .oft file whose subject line contains vuvuzela.

Then I created a rule to be applied after sending a message:

Move a copy to the Sent Item folder except if the subject contains
vuvuzela

If I send a message with vuvuzela in the subject, the item is not
saved.

However, when replying using the .oft file, it does save the message
in the Sent Items folder.

I can I correct this?

Can it be done using VBA?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top