Subject: | LF -> CRLF not done for messages uploaded from strings |
It appears that the new Mail::IMAPClient doesn't correctly convert bare
LF to CRLF when uploading a message from a string. Patch is attached.
Subject: | Mail-IMAPClient-3.05-bare-newlines.patch |
--- lib/Mail/IMAPClient.pm.orig 2008-02-20 03:01:31.000000000 -0500
+++ lib/Mail/IMAPClient.pm 2008-04-14 16:34:59.000000000 -0400
@@ -2306,6 +2306,8 @@
my $count = $self->Count($self->Count+1);
+ $text =~ s/\r?\n/\r\n/g;
+
my $command = "$count APPEND $folder " . ($flags ? "$flags " : "") .
($date ? "$date " : "") . "{" . length($text) . "}\r\n";