Cannot Delete sent item attachment

  • Thread starter Thread starter GrahamElse
  • Start date Start date
G

GrahamElse

I'm trying to delete an attachment from a sent item using
VB. I'm using the Sentitems folder itemadd event to
detect a msg and then delete as follows...
If objAtt.Type = olByValue Then
If UCase(Right(objAtt.FileName, 3)) = "BAM" Then
objAtt.delete
End If
End If
.... no errors appear but when you look at the msg, the
attachment is still there. This code works fine on Inbox
items. I have noticed that if you right click an
attachment in the sent items preview pane, the Remove
action is greyed out but is available if you open the
item. Do you have to do something special with a sent
item?
 
Hey - it's simple really isn't it?
I think the difference was that with the inbox items I
moved them to a subfolder after processing which must be
an implied save.
Thanks very much - it just didn't occur to me to save it!
 
Back
Top