Re: [twsocket] Attached file

2012-01-16 Thread Angus Robertson - Magenta Systems Ltd
How do I read and save a document attached to the email? I'm using and SyncPop3Cli MimeDecodeEx. thanks Look at the OverbyteIcsMimeDemo which allows you to decode emails previously saved as text files. Basically, call the DecodeFileEx with the file name or DecodeStreamEx with the stream,

Re: [twsocket] Attached file

2012-01-16 Thread Alfonso Del Vecchio
I apologize for my English because I'm not very experienced. In my application, thanks to the demo OverbyteIcsMimeDemo I was able to manage all information related to the email. I've identified the parties and taken measures to turn them from html to text (there is about a command that

Re: [twsocket] Attached file

2012-01-16 Thread Angus Robertson - Magenta Systems Ltd
My problem is to open the attached files and / or save them for later use. The actual content for each of the attachments is in MimeDecodeEx.PartInfos [x].PartStream, so to save that to a file you simply use TFileStream methods, such as SaveToFile (FileName). Obviously you have to search the

Re: [twsocket] Attached file

2012-01-16 Thread Alfonso Del Vecchio
I apologize, but a concrete example will help me to understand. I get the mail consisting of the following three parts: Part 0 Content: multipart / mixed Size: 0 name: FileName: encoding: charset: ApplType: Content Id: Part 1 Content: text / plain Size: 61 name: FileName: Encoding:

Re: [twsocket] Attached file

2012-01-16 Thread Alfonso Del Vecchio
I apologize if I insist, but a concrete example will help me to understand better. I get an email with the following three parts: Part 0 Content: multipart / mixed Size: 0 name: FileName: encoding: charset: ApplType: Content Id: Part 1 Content: text / plain Size: 61 name: FileName: Encoding:

Re: [twsocket] Attached file

2012-01-16 Thread Angus Robertson - Magenta Systems Ltd
I apologize if I insist, but a concrete example will help me to understand better. I get an email with the following three parts: MimeDecodeEx.PartInfos [2].PartStream.SaveToFile (MimeDecodeEx.PartInfos [2].PFileName); where 2 is the part number. Angus -- To unsubscribe or