Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET IMAP

 AfterLogic Forum : MailBee.NET IMAP
Subject Topic: Change Flag Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Naresh
Newbie
Newbie


Joined: 12 April 2007
Location: India
Online Status: Offline
Posts: 9
Posted: 27 July 2007 at 6:46am | IP Logged Quote Naresh

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 View Naresh's Profile Search for other posts by Naresh
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 27 July 2007 at 7:37am | IP Logged Quote Alex

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 View Alex's Profile Search for other posts by Alex
 
Naresh
Newbie
Newbie


Joined: 12 April 2007
Location: India
Online Status: Offline
Posts: 9
Posted: 24 August 2007 at 2:21am | IP Logged Quote Naresh

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 View Naresh's Profile Search for other posts by Naresh
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 24 August 2007 at 3:36am | IP Logged Quote Andrew

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 View Andrew's Profile Search for other posts by Andrew
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide