From 1df80fa32168dfa40e4ddb8d4140c1f2a0dfe9bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radom=C3=ADr=20Pol=C3=A1ch?= Date: Mon, 20 Apr 2020 12:04:55 +0200 Subject: [PATCH] Fixed IMAPClient apped_string returning 0 --- imapsync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imapsync b/imapsync index 542e36d..eed26e9 100755 --- a/imapsync +++ b/imapsync @@ -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" ;