Re: No newline at end of messages?
John L <[email protected]> Fri, 7 Jul 2006 09:01:36 -0400 (EDT)
| Newsgroups | gmane.mail.majordomo.majordomo2.devel |
|---|---|
| Message-ID | <[email protected]> |
Here's my band-aid for the partial last line problem. (I don't call it
a bug, since the bug is in the far too many MIME clients that send
slightly misformatted mail.) It takes a brute force approach and adds
an extra \n at the end of the message file before sending it out. This
means that messages that weren't broken will have an extra \n at the
end, but I can live with that.
In Resend.pm:
sub post_done {
my ($self, $request) = @_;
my $log = new Log::In 30;
my ($ok, $mess);
+ $self->{'post_fh'}->print("\n")
+ or $::log->abort("Unable to write last \en to file: $!");
$self->{'post_fh'}->close()
or $::log->abort("Unable to close post file: $!");
$request->{'file'} = $self->{'post_file'};
Regards,
John Levine, [email protected], Primary Perpetrator of "The Internet for Dummies",
Information Superhighwayman wanna-be, http://johnlevine.com, Mayor
"I dropped the toothpaste", said Tom, crestfallenly.