I also observe the loss of the first line of a base64-encoded block (the line of data being replaced by a blank line) for message/rfc822 also, but curiously not for text/plain, as demonstrated by using
perl myscript | sendmail -i psz with the following script: #!/usr/bin/perl -- require MIME::Base64; $data .= "Hello $_\n" foreach (1..10); print "From: psz\n"; print "To: psz\n"; print "MIME-Version: 1.0\n"; #print "Content-Type: text/plain\n"; # No loss for text/plain print "Content-Type: message/rfc822\n"; print "Content-Transfer-Encoding: base64\n"; print "Subject: [Fwd]\n"; print "\n"; #print "\n"; # Otherwise first line of base64 is lost print MIME::Base64::encode_base64($data); print "\n"; Cheers, Paul Paul Szabo p...@maths.usyd.edu.au http://www.maths.usyd.edu.au/u/psz/ School of Mathematics and Statistics University of Sydney Australia -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org