Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Feb : Re: TIdPOP3.Retrieve creates temp files on disk
| Subject: | Re: TIdPOP3.Retrieve creates temp files on disk |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Mon, 26 Feb 2007 14:04:18 |
"Michael Weis" <mweis@qmedtrix.com> wrote in message
news:45e3434e$1@newsgroups.borland.com...
> I'm using Delphi 7's version of the Indy components. When I
> make the call to TIdPOP3.Retrieve in code, a temp file shows
> up in my user's Windows temp folder
The message you downloaded has an attachment in it. Indy has to put
that data somewhere, so it stores it in a temp file.
> Any idea if this is configurable in code, so that the temp file is
> deleted automatically when the Indy class/method is done with it?
The TIdAttachment class (which TIdMessage uses) has a DeleteTempFile
property for that purpose. TIdMessage has a DeleteTempFiles property
that is used to initialize the TIdAttachment.DeleteTempFile property
when attachment data is parsed.
Gambit
none