Forum Moderators: coopster

Message Too Old, No Replies

IMAP Questions

         

humandesigner

11:08 am on Apr 25, 2004 (gmt 0)

10+ Year Member




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!

coopster

5:47 pm on Apr 26, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



You are only dealing with the Flags Message Attribute. What you are doing here causes a store to add the specified flags (
\Seen
and
\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 Attribute

A 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].

humandesigner

6:16 pm on Apr 26, 2004 (gmt 0)

10+ Year Member



Thanks a lot Coopster! ;)

Now I know that I can flag every incoming message safely regardless of the string sequence. I wasn't sure about that.

More questions are about the come ... I hope you'll be around ;)

Have a beautiful day.

coopster

6:18 pm on Apr 26, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



As with anything, test, test, test first :)