Hello Patrick, No using TSyncPop3Cli is discouraged.
I cannot check at moment. But the component has a data socket, FSocket probably or similar. You can use the messageloop from this one if you sete on this TWSocket MultiThread to true. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Thursday, August 17, 2006, 02:44, Patrick Wong wrote: > Thank you for your response. >> Or use the messageLoop of TWSocket if you dont need to receive custom >> messages. Set Multithreaded to true. > But may I know how? I am not quite familiar with Delphi. From the > Pop3prot.hpp MultiThreaded is a protected bool of TSyncPop3Cli, which > is inherited from TPop3Cli. Should I use TSyncPop3Cli instead? >>From Arno's previous message, >> 1 - Create the Pop3Cli instance in Execute >> 2 - Assign properties and events >> 3 - Connect >> 4 - Start your MessageLoop > It would be great if a sample code excerpt that you can kindly show > me. Should the worker thread call connect once, and other functions > in every mail retrieval cycle? My thought was to connect -> get mails > -> delete mails ->quit in every cycle. > Many thanks. -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
