beim Aufruf folgender Function

PHP-Code:
 function getHeaders(){

                
$searchtyps=array('NEWSLETTER','Newsletter','newsletter','INFORMATION','Information','information','Sparbrief','SPARBRIEF','sparbrief','sparbrief-extrablatt');

                
$num=imap_num_msg($this->hdl);
                
$mailbox="INBOX.technik";
                for(
$x=1;$x<$num;$x++)
                {
                  
                        
$header=imap_header($this->hdl,$x);
                        
$wert=$header->from;
                        
$this->outputstring.=$x.")  ".$wert[0]->mailbox;
                        if(
in_array($wert[0]->mailbox,$searchtyps))
                        {
                          
$mailuid=imap_uid($this->hdl,$x);
                          
$mailuidarray[]=$mailuid;
                         
                          
$this->outputstring.="  wurde verschoben!";
                           }
                        
                       
$this->outputstring.="

"
;
                       
                }
                
                 
imap_mail_copy($this->hdl,$mailuid,$mailbox,CP_MOVE);

        } 
erhalte ich diese Fehlermedung

Notice: (null)(): COPY failed: Sequence invalid (errflg=2) in Unknown on line 0
warum?

Danke