Board index » delphi » Indy 9: Delete attachments with TIdMessage

Indy 9: Delete attachments with TIdMessage


2004-08-24 06:27:22 PM
delphi234
How can I delete an attachment (if I know the filename) with TIdMessage?
Thank you.
 
 

Re:Indy 9: Delete attachments with TIdMessage

Boris Zibrat writes:
Quote
How can I delete an attachment (if I know the filename) with
TIdMessage?
The same way as with any TCollection/TCollectionItem descendant..
Loop through the collection, find filename=theoneyouwant then
delete(index)..