public function copy($numbers, MailboxInterface $mailbox): void
    {
        if (!\imap_mail_copy($this->resource->getStream(), $this->prepareMessageIds($numbers), $mailbox->getEncodedName(), \CP_UID)) {
            throw new MessageCopyException(\sprintf('Messages cannot be copied to "%s"', $mailbox->getName()));
        }
    }
public function copy($numbers, MailboxInterface $mailbox): void
    {
        if (!\imap_mail_copy($this->resource->getStream(), $this->prepareMessageIds($numbers), $mailbox->getEncodedName(), \CP_UID)) {
            throw new MessageCopyException(\sprintf('Messages cannot be copied to "%s"', $mailbox->getName()));
        }
    }
public function copy ( $ numbers , MailboxInterface $ mailbox ) : void { if ( ! \ imap_mail_copy ( $ this -> resource -> getStream ( ) , $ this -> prepareMessageIds ( $ numbers ) , $ mailbox -> getEncodedName ( ) , \ CP_UID ) ) { throw new MessageCopyException ( \ sprintf ( 'Messages cannot be copied to "%s"' , $ mailbox -> getName ( ) ) ) ; } }
Bulk copy messages.

@param array|MessageIterator|string $numbers Message numbers
@param MailboxInterface             $mailbox Destination Mailbox to copy the messages to

@throws \Ddeboer\Imap\Exception\MessageCopyException
Bulk copy messages .