This project is read-only.

Flagging messages

Jun 9, 2008 at 3:00 PM
I was tried to mark as read a message from my mailbox using the IMAP class but it doesn't work.
It seems that it blocks in the SendAndReceive method when using the command 

"UID STORE {0} +FLAGS (\\Seen)" at the following line:


sResult = m_useSSL ? m_rdr.ReadLine() : m_oRdStrm.ReadLine();

I am not using ssl authentification therefore  m_useSSL  is false.

m_oRdStrm is a streamReader and it is NOT null.

ANybody has an idea why it is blocking (the server is not responing and exists from debugging mode)

Jun 9, 2008 at 3:11 PM
Edited Jun 9, 2008 at 3:11 PM
This is a simple bug, simply update the command string to this:

"UID STORE {0} +FLAGS (\\Seen)\r\n"

it's hanging on that command because the IMAP server will not process a command until it receives a \r\n.
Jun 9, 2008 at 3:23 PM
Thanks a lot !!!
Jun 9, 2008 at 3:51 PM
Thanks a lot !!!
Jun 9, 2008 at 3:52 PM
Thanks a lot !!!