Subject: | Document how to save messages without carriage returns added |
Apparently the user has no way to use Strip_cr before he uses message_to_file.
So perhaps document some workarounds: (untested)
## $imap->message_to_file( $tempfile, $_ )
## or die "Could not send message_to_file: $@\n";
my $string = $imap->message_string($_)
or die "Could not produce message_string: $@\n";
my $stripped = $imap->Strip_cr($string);
open(my $fh, ">", $tempfile)
or die "Can't open > $tempfile: $!";
print $fh $string or die;
close $fh or die;
Also document what Strip_cr will do upon failure and how to print an error message for it. Thanks.