2002-04-15 00:12:54 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2004-08-18 14:15:21 +00:00
|
|
|
<!-- $Revision: 1.9 $ -->
|
2002-04-15 00:12:54 +00:00
|
|
|
<!-- splitted from ./en/functions/imap.xml, last change in rev 1.2 -->
|
|
|
|
<refentry id="function.imap-setflag-full">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>imap_setflag_full</refname>
|
|
|
|
<refpurpose>Sets flags on messages</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
|
|
|
<title>Description</title>
|
|
|
|
<methodsynopsis>
|
2002-10-09 14:55:05 +00:00
|
|
|
<type>bool</type><methodname>imap_setflag_full</methodname>
|
|
|
|
<methodparam><type>resource</type><parameter>stream</parameter></methodparam>
|
2002-04-15 00:12:54 +00:00
|
|
|
<methodparam><type>string</type><parameter>sequence</parameter></methodparam>
|
|
|
|
<methodparam><type>string</type><parameter>flag</parameter></methodparam>
|
2004-08-18 14:15:21 +00:00
|
|
|
<methodparam choice="opt"><type>string</type><parameter>options</parameter></methodparam>
|
2002-04-15 00:12:54 +00:00
|
|
|
</methodsynopsis>
|
|
|
|
<para>
|
2004-03-08 09:18:45 +00:00
|
|
|
This function causes a store to add the specified
|
|
|
|
<parameter>flag</parameter> to the flags set for the messages
|
|
|
|
in the specified <parameter>sequence</parameter>.
|
2002-04-15 00:12:54 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
The flags which you can set are "\\Seen", "\\Answered",
|
2002-06-10 08:04:06 +00:00
|
|
|
"\\Flagged", "\\Deleted", and "\\Draft" (as defined
|
2002-04-15 00:12:54 +00:00
|
|
|
by RFC2060).
|
|
|
|
</para>
|
|
|
|
<para>
|
2004-03-08 09:18:45 +00:00
|
|
|
<parameter>options</parameter> are a bit mask and may contain
|
|
|
|
the single option:
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<simpara>
|
|
|
|
<constant>ST_UID</constant> - The sequence argument contains UIDs
|
|
|
|
instead of sequence numbers
|
|
|
|
</simpara>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
2002-04-15 00:12:54 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
<example>
|
|
|
|
<title><function>imap_setflag_full</function> example</title>
|
|
|
|
<programlisting role="php">
|
|
|
|
<![CDATA[
|
2003-07-16 17:25:02 +00:00
|
|
|
<?php
|
2003-12-15 16:55:22 +00:00
|
|
|
$mbox = imap_open("{your.imap.host:143}", "username", "password")
|
2003-12-18 17:46:56 +00:00
|
|
|
or die("can't connect: " . imap_last_error());
|
2002-04-15 00:12:54 +00:00
|
|
|
|
2003-12-15 16:55:22 +00:00
|
|
|
$status = imap_setflag_full($mbox, "2,5", "\\Seen \\Flagged");
|
2002-04-15 00:12:54 +00:00
|
|
|
|
2003-12-18 17:46:56 +00:00
|
|
|
echo gettype($status) . "\n";
|
|
|
|
echo $status . "\n";
|
2002-04-15 00:12:54 +00:00
|
|
|
|
|
|
|
imap_close($mbox);
|
2003-07-16 17:25:02 +00:00
|
|
|
?>
|
2002-04-15 00:12:54 +00:00
|
|
|
]]>
|
|
|
|
</programlisting>
|
|
|
|
</example>
|
2004-03-08 09:18:45 +00:00
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
See also: <function>imap_clearflag_full</function>.
|
|
|
|
</para>
|
2002-04-15 00:12:54 +00:00
|
|
|
</refsect1>
|
|
|
|
</refentry>
|
|
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
|
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|