Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IMAP FLAGS

Status
Not open for further replies.

Sleidia

Technical User
Joined
May 4, 2001
Messages
1,284
Location
FR

Hello,

I'm trying to make a script flag messages as "Seen" so that they are not checked again by the script the next time it is ran.

But there are 2 problems :

1) In ...
imap_setflag_full($mbox,"2,5","\\Seen");
... I fail to understand what is "2,5" , what it represents and how to build it. It is said to be a "string sequence" in the documentation, but still, it doesn't tell anything to me.
Instead of "2,5", could I simply use the message number (ie: "2")??

2) If a script flags a message as "seen", then, will outlook be able to retrieve it definitively? I'm not sure about the implication of the use of this flag, actually.

Thanks a lot to the ones who will help.
Have a nice day.
 

Wow, nobody ever use the imap_setflag_full function??

Every google search would bring :

Description
string imap_setflag_full ( int stream, string sequence, string flag, string options)


This function causes a store to add the specified flag to the flags set for the messages in the specified sequence.

The flags which you can set are "\\Seen", "\\Answered", "\\Flagged", "\\Deleted", "\\Draft", and "\\Recent" (as defined by RFC2060).

The options are a bit mask with one or more of the following:



ST_UID The sequence argument contains UIDs instead of
sequence numbers




Perhaps I'm stupid, but it doesn't mean anything to me.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top