note 125347 added to function.imap-mail-move
| From: | phpmanual at NOSPAMPLEASE dot headbank dot co dot uk | Date: | Thu, 10 Sep 2020 12:57:35 +0000 |
| Subject: | note 125347 added to function.imap-mail-move | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-215092@lists.php.net to get a copy of this message | ||
Be aware that this function returning TRUE doesn't necessarily mean anything actually happened.
It counts as "success" if all messages matching the range you supply were moved; however
that includes if there were _no_ matching messages to move.
So suppose you supply a sequence-number or UID that's invalid, e.g. because it's no
longer present in the source folder:
<?php
$res = imap_mail_move($stream, '99999', 'DestFolder', CP_UID);
var_dump($res); // bool(true)
?>
It's up to you to validate the desired message(s) before moving, and/or afterwards.
----
Server IP: 45.112.84.4
Probable Submitter: 103.51.167.36 (proxied: 87.75.113.64)
----
Manual Page -- http://php.net/manual/en/function.imap-mail-move.php
Edit -- https://master.php.net/note/edit/125347
Del: integrated -- https://master.php.net/note/delete/125347/integrated
Del: useless -- https://master.php.net/note/delete/125347/useless
Del: bad code -- https://master.php.net/note/delete/125347/bad+code
Del: spam -- https://master.php.net/note/delete/125347/spam
Del: non-english -- https://master.php.net/note/delete/125347/non-english
Del: in docs -- https://master.php.net/note/delete/125347/in+docs
Del: other reasons-- https://master.php.net/note/delete/125347
Reject -- https://master.php.net/note/reject/125347
Search -- https://master.php.net/manage/user-notes.php