Subject: | Method migrate, return from append_string not checked. |
The problem lies in method migrate. If a message fails to copy, the
failure is not reported, and migrate ends as if all messages are copied.
$new_mid is not checked in 2.2.9. I have quickly added some code
shown below. Also a patch is included.
if ( $size <= $bufferSize ) {
my $new_mid = $peer->append_string($peer->Massage($folder),
$self->message_string($mid) ,$flags,
$intDate) ;
if (!defined( $new_mid )) {
$self->LastError("Unable to append to $folder on target mailbox. ".
$peer->LastError );
return undef;
}
$self->_debug("Copied message $mid in folder $folder to
" .
$peer->User .
'@' . $peer->Server .
"IMAPClient.pm" line 755 of 3772 --20%--
Message body not shown because it is not plain text.