login about faq

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

asked Mar 08 '13 at 08:14

SSWGlenn's gravatar image

SSWGlenn
681012

edited Mar 08 '13 at 08:18


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.

link

answered Mar 08 '13 at 09:14

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

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
link

answered Mar 08 '13 at 09:21

SSWGlenn's gravatar image

SSWGlenn
681012

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

link

answered Mar 11 '13 at 14:28

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

Works fine now thanks !

link

answered Mar 12 '13 at 04:30

SSWGlenn's gravatar image

SSWGlenn
681012

Oops, cheered too soon ...

I have an unread mail, and the flag returns 1. Answered-flag works fine

link

answered Mar 12 '13 at 04:43

SSWGlenn's gravatar image

SSWGlenn
681012

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.

link

answered Mar 13 '13 at 06:44

SSWGlenn's gravatar image

SSWGlenn
681012

Any news about the flags please ?

Still flagging unread mails as read ...

link

answered May 15 '13 at 06:16

SSWGlenn's gravatar image

SSWGlenn
681012

1

Set the PeekMode property. (The IMAP server sets an email's "SEEN" flag when the email is downloaded - unless the client sends a modified command to access the email in "peek mode")

(May 15 '13 at 08:29) chilkat ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×175
×1

Asked: Mar 08 '13 at 08:14

Seen: 1,410 times

Last updated: May 15 '13 at 08:29

powered by OSQA