Login  
Search All Forums
Dart Home | PowerTCP Mail for ActiveX | Custom Development Reply | PowerTCP Mail for ActiveX Topics | Forums   
AuthorForum: PowerTCP Mail for ActiveX
Topic: IMAP Seen and Recent
User72

Posts: 11
Member Since: 04/16/02
posted April 22, 2002 11:45 AM

Got a quickie for you guys:

Does Seen/Recent attributes auto-update on read/download of the messages? if not, how do I change them ?

Thanks in advance
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted April 22, 2002 12:44 PM


Hi,
These flags are automatically changed by the server. They can be examined for a particular message via the Message.Attribute(msgRecent) and Message.Attribute(msgSeen) properties.
-ken

K M Drake
Dart Tech Support
User72

Posts: 11
Member Since: 04/16/02
posted April 23, 2002 11:25 AM

That doesn't seem to work for me...

I do a Folder.get msgGetPreview for all the folder and ALL the messages have the Recent and Seen attribute .. look this:
----------------------------------------
if message(rowcount).attribute(msgRecent) then
 negrita = "<b>": finNegrita = "</b>"
else
 negrita = "": finNegrita = ""
end if
----------------------------------------

this is inside a loop ... message() is a msg array loaded right after a .get msgGetPreview command...

ALL the messages are false.. so all messages are unseen and I get always bold rows...

I tried to change it for :

if not message(rowcount).attribute(attrMsgSeen) then

and the result is the same....

After finding that I tried to change those flags with .put but it didn't work either... can u gimme any way to fix it ? I'm using IMAP... not POP3, so I should be able to update messages

Thanks in advance
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted April 23, 2002 1:02 PM


Hi,
You can add and remove flags:
box.Put "\Seen", imapPutFlagsRemove 'mark all as unseen
box.Put "\Seen", imapPutFlagsAdd, "1" 'mark 1 as seen

Doing a preview will not affect the Seen flag, but if you do a Get on the content, the messages retrieved will be marked as Seen.
-ken

K M Drake
Dart Tech Support
User72

Posts: 11
Member Since: 04/16/02
posted April 24, 2002 3:18 AM

I have done a GetContent and the Seen flag didn't set ... maybe I should try again.. but I think it didn't work...

Thanks for the info anyway
Reply | PowerTCP Mail for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX