Skip to content

Commit 91a4618

Browse files
committed
imap_mail_move() does actually copy and delete
Cf. <https://github.com/php/php-src/issues/7719>.
1 parent c470f26 commit 91a4618

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

reference/imap/functions/imap-mail-copy.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@
5757
<listitem>
5858
<simpara>
5959
<constant>CP_MOVE</constant> - Delete the messages from
60-
the current mailbox after copying
60+
the current mailbox after copying. If this flag is set, the function
61+
behaves identically to <function>imap_mail_move</function>.
6162
</simpara>
6263
</listitem>
6364
</itemizedlist>

reference/imap/functions/imap-mail-move.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
</methodsynopsis>
1717
<para>
1818
Moves mail messages specified by <parameter>message_nums</parameter> to the
19-
specified <parameter>mailbox</parameter>.
19+
specified <parameter>mailbox</parameter>.
20+
Note that the mail messages are actually <emphasis>copied</emphasis> to the
21+
<parameter>mailbox</parameter>, and the original messages are flagged for deletion.
22+
That implies that the messages in <parameter>mailbox</parameter> are assigned new UIDs.
2023
</para>
2124
</refsect1>
2225
<refsect1 role="parameters">

0 commit comments

Comments
 (0)