Merge pull request #218 from exander77/master

Fixed IMAPClient apped_string returning 0
This commit is contained in:
Gilles LAMIRAL 2020-04-20 14:51:33 +02:00 committed by GitHub
commit 63a409b090
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10190,7 +10190,7 @@ sub append_message_on_host2
$max_msg_size_in_bytes = max( $string_len, $max_msg_size_in_bytes ) ;
$new_id = $mysync->{imap2}->append_string( $h2_fold, ${ $string_ref }, $h1_flags, $h1_date ) ;
myprint( debugmemory( $mysync, " at A2" ) ) ;
if ( ! $new_id){
if ( ! defined $new_id){
my $subject = subject( ${ $string_ref } ) ;
my $error_imap = $mysync->{imap2}->LastError || q{} ;
my $error = "- msg $h1_fold/$h1_msg {$string_len} could not append ( Subject:[$subject], Date:[$h1_date], Size:[$h1_size], Flags:[$h1_flags] ) to folder $h2_fold: $error_imap\n" ;