Question:
Goodday,
I want to retrieve 2 mailflags, Seen and Answered (using IMAP v9.3.2)
Email = IMAP.FetchSingle(UID,1)
flag_seen = IMAP.GetMailFlag(Email,'Seen') seen is with a backslash in front of it
flag_answered = IMAP.GetMailFlag(Email,'Answered') answered is with a backslash in front of it
I noticed that flag_seen and flag_answered always resulted in 0.
After adding a LASTERRORTEXT, I received the following :
ChilkatLog: GetMailFlag: DllDate: Aug 5 2012 UnlockPrefix: STREAMSIMAPMAILQ Username: STEENDORP:Piombo Architecture: Little Endian; 32-bit Language: ActiveX VerboseLogging: 0 flagName: ckx-imap-seen flag header field not found. --GetMailFlag --ChilkatLog
What am I doing wrong ?? Thanks in advance
This is a problem that (I believe) is fixed in v9.4.0. The FetchSingle method was not adding the "ckx-imap-*" header fields as it should.
Nope :-/
ChilkatLog: GetMailFlag: DllDate: Dec 12 2012 UnlockPrefix: STREAMSIMAPMAILQ Username: STEENDORP:Piombo Architecture: Little Endian; 32-bit Language: ActiveX VerboseLogging: 0 flagName: ckx-imap-seen flag header field not found. --GetMailFlag --ChilkatLog
Check to see if these new builds fix the problem:
http://www.chilkatsoft.com/preRelease/ChilkatImap.zip (Contains ChilkatImap.dll)
http://www.chilkatsoft.com/preRelease/ChilkatMail2.zip (Contains ChilkatMail2.dll)
The email object is contained within ChilkatMail2.dll, and the IMAP object is contained within ChilkatImap.dll. I was not able to reproduce the problem with this pre-release of v9.4.1
Works fine now thanks !
Oops, cheered too soon ...
I have an unread mail, and the flag returns 1. Answered-flag works fine
I alse noticed a problem that perhaps is linked to the flag-problem.
When I retrieve an unread mail from the server. Chilkat automatically flags the mail as "Read" on the server.
Any news about the flags please ?
Still flagging unread mails as read ...