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 Questions

Status
Not open for further replies.

Sleidia

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

Hello,

I've spent hours, days .... weeks(!) reading the manual, but still can't find answers to my questions regarding the use of some IMAP functions and their miscellaneous properties.

From now, I'm gonna list all those questions on this thread and see if some of you can provide even partial but useful comments.

Question number ONE : imap_setflag_full

In imap_setflag_full($mbox, "2,5", "\\Seen \\Flagged"); we have the string sequence "2,5" but I fail to understand if it is safe or not to choose any sequence I want regardless of the message structure.
For example, if I apply a "Flagged" flag on all incoming messages exclusively at "2,5", is it possible that I could overwrite some precious information in that particular place? What are the implications of such a method?

Thanks a lot !


 
As I understand it the argument lists the UID's for the messages that are affected by setting the flags.
An UID is an unique identifier that will not change over time while a message sequence number may change whenever the content of the mailbox changes.
More:
This function causes a store to add the specified flag to the flags set for the messages in the specified sequence.
...
ST_UID - The sequence argument contains UIDs instead of sequence numbers

So the example in the PHP documentation seems to apply the flags to the messages with UID 2 and 5.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top