Outlook saves sent messages when it is not supposed to

  • Thread starter Thread starter Frank
  • Start date Start date
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?
 
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?
 
Back
Top