Forum Moderators: coopster
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!
\Seenand
\Flagged) to the flags set for the messages in the specified sequence (in this case, messages 2 and 5 of the open mailbox).
2.3.2. Flags Message AttributeA list of zero or more named tokens associated with the message. A flag
is set by its addition to this list, and is cleared by its removal.
You are correct in that the PHP manual has limited information regarding the intracacies of the IMAP functions, but the developers were fairly straighforward about that in the IMAP Functions manual page [php.net]...
This document can't go into detail on all the topics touched by the provided functions. Further information is provided by the documentation of the c-client library source (docs/internal.txt). and the [...related...] RFC documents...
In this case, the RFC that may provide more answers and insight is RFC2060 [ietf.org].