IMAP Command to Marks Mail as Read / UnRead

This is a discussion on IMAP Command to Marks Mail as Read / UnRead within the IMAP forums in Other Technologies category; Hi, I am reading mails from mail sever using IMAP, but as soon as I read the unread mails there are marked as Read in mail server. But I need to them again to Mark as "UnRead". Any one knows IMAP to command to Mark Message as Read/UnRead. Thanks naamala...

Go Back   Application Development Forum > Other Technologies > IMAP

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 03-22-2008, 03:27 AM
naamala
Guest
 
Default IMAP Command to Marks Mail as Read / UnRead

Hi,

I am reading mails from mail sever using IMAP, but as soon as I
read the unread mails there are marked as Read in mail server.

But I need to them again to Mark as "UnRead".

Any one knows IMAP to command to Mark Message as Read/UnRead.


Thanks
naamala
Reply With Quote
  #2  
Old 03-22-2008, 03:48 AM
Matthias Hanft
Guest
 
Default Re: IMAP Command to Marks Mail as Read / UnRead

naamala schrieb:
>
> Any one knows IMAP to command to Mark Message as Read/UnRead.


You have to delete the "\Seen" flag. Have a look into
ftp://ftp.rfc-editor.org/in-notes/rfc3501.txt (STORE
command). Example to mark messages 2 to 4 as unread:

A003 STORE 2:4 -FLAGS (\Seen)

-Matt
Reply With Quote
  #3  
Old 03-22-2008, 04:33 AM
naamala
Guest
 
Default Re: IMAP Command to Marks Mail as Read / UnRead

On Mar 22, 12:48 pm, Matthias Hanft <m...@hanft.de> wrote:
> naamala schrieb:
>
>
>
> > Any one knows IMAP to command to Mark Message as Read/UnRead.

>
> You have to delete the "\Seen" flag. Have a look intoftp://ftp.rfc-editor.org/in-notes/rfc3501.txt(STORE
> command). Example to mark messages 2 to 4 as unread:
>
> A003 STORE 2:4 -FLAGS (\Seen)
>
> -Matt


Hi,
Thanks Matt.

Just gone through the rfc. it's working...

I forgot "-" is to remove the flags.

thanks
naamala
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 02:26 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.