Board index » delphi » TIdIMAP4.Retrieve hangs application
vimalkanth
Delphi Developer |
TIdIMAP4.Retrieve hangs application2005-05-10 12:16:45 PM delphi207 Hi, I'm using Indy 904 beta and Delphi 5 to read messages from IMAP4 server. Can anyone tell me 1)how to retrieve only unread messages. 2)Application hangs when there is any unread messages while retrieving a single message or all the messages (both read & unread) from the server. MailMessage: TIdMessage; IdIMAP41: TIdIMAP4; .... .... ... IdIMAP41.Host := hostname; IdIMAP41.Username := username; IdIMAP41.Password := password; if IdIMAP41.Connected = false then IdIMAP41.Connect(1); IdIMAP41.SelectMailBox('INBOX'); IdIMAP41.Retrieve(1,MailMessage); /// applciation hangs here Can anyone provide me a solution how to get only unread messages and how to solve the 'application hangs' issue? Thanks in advance. Vimal |