+1 vote

I have a question...

If I see the unseen messages... I process this message, but i don't like that this email message is marked as "seen" before i put a line like eml.seen = true or something like that.

I need to put manually the state of seen or unseen, not automatically.

Is possible?,

Thanks.

by

1 Answer

0 votes
 
Best answer

Yes it's possible. You need use **Imap.Peek*** methods e.g. Imap.PeekMessageByUID. Those methods don't set the \Seen flag on the email messages they use.

Then, after you processed the message, you can use
Imap.MarkMessageSeenByUID to set the \Seen flag or Imap.MarkMessageUnSeenByUID to remove it.

by (301k points)
...