note 101274 rejected from function.imap-mail-move by danbrown
| From: | danbrown@php.net | Date: | Mon, 06 Dec 2010 19:07:03 +0000 |
| Subject: | note 101274 rejected from function.imap-mail-move by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-174670@lists.php.net to get a copy of this message | ||
Note Submitter: mongi dot gazelle at gmail dot com
----
I am getting an error when calling the imap_mail_move function and I could not figure out the
reason.
A PHP Error was encountered
Severity: Notice
Message: Unknown: IMAP protocol error: Error in IMAP command COPY: Missing arguments (errflg=2)
Filename: Unknown
Line Number: 0
The code:
$retvalue = false;
if ($this->_mb = imap_open($this->getMailBox($folder),$this->user, $this->pass ))
{
$move = "processed";
$retvalue = @imap_mail_move($this->_mb, $index, imap_utf7_encode($move), 0);
imap_expunge($this->_mb);
imap_close($this->_mb);
}
return $retvalue;