Re: No newline at end of messages?
"John R Levine" <[email protected]> 7 Jul 2006 21:04:36 -0400
| Newsgroups | gmane.mail.majordomo.majordomo2.devel |
|---|---|
| Message-ID | <[email protected]> |
> What change did you make to mj_enqueue, and why didn't it work?
I tried the same sort of thing in mj_enqueue, add \n to the end of the
message, but the problem is due to MIME flattening inside mj2, which
throws away everything after the MIME terminator.
> The post_done routine is not called for messages posted by mj_queuerun.
Eww. Where do they open and close the file with the message to be sent?
>
> Michael
>
> John L wrote:
> > 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.
> >
> > .
> >
>
>
Regards,
John Levine, [email protected], Primary Perpetrator of "The Internet for Dummies",
Information Superhighwayman wanna-be, http://www.johnlevine.com, Mayor
"A book is a sneeze." - E.B. White, on the writing of Charlotte's Web