Author |
|
Naresh Newbie
Joined: 12 April 2007 Location: India
Online Status: Offline Posts: 9
|
Posted: 27 July 2007 at 6:46am | IP Logged
|
|
|
Hi,
How do i manually set the flag of the message in order to find whether a message was replied or forwarded.
Can i modify the existing mail from the mailbox?
Is there any way to set messageIndex for the uploaded message manually? (UploadMessage)
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 27 July 2007 at 7:37am | IP Logged
|
|
|
Quote:
How do i manually set the flag of the message in order to find whether a message was replied or forwarded.
|
|
|
Set SystemMessageFlags.Answered flag with Imap.SetMessageFlags method.
Quote:
Can i modify the existing mail from the mailbox?
|
|
|
That's impossible. You can only download it, delete, and then upload the changed copy. This is basic constraint of all email protocols to preserve integrity of emails and avoid loss of synchronization when the same mail database is maintained by different mail clients accessing the same mailbox.
Quote:
Is there any way to set messageIndex for the uploaded message manually? (UploadMessage) |
|
|
No. The server always assigns it itself. You can, however, determine which UID value has been assigned by the server if it supports UIDPLUS. You can use Imap.UploadMessage for this.
Regards,
Alex
|
Back to Top |
|
|
Naresh Newbie
Joined: 12 April 2007 Location: India
Online Status: Offline Posts: 9
|
Posted: 24 August 2007 at 2:21am | IP Logged
|
|
|
If we download a message, it's flag will set to SEEN. How can i avoid it?
I do not want to change the flag to SEEN for those messages which are marked as Answerd or Draft.
For example,
'Download the message
Dim msg As MailMessage = _   ;   ;   ; imp.DownloadEntireMessage(env.MessageNumber.ToString, False)
|
Back to Top |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 24 August 2007 at 3:36am | IP Logged
|
|
|
You should open the folder in read-only mode via Imap.ExamineFolder method or if you need to open folder in read-write mode via Imap.SelectFolder method, you may reset the flag via Imap.SetMessageFlags method after downloading message.
Best regards,
Andrew
|
Back to Top |
|
|