Thread View: news.software.nntp
1 messages
1 total messages
Started by Geoff Gibbs
Wed, 14 Apr 1999 00:00
INN 2.2: mailpost - "First line with leading whitespace!"
Author: Geoff Gibbs
Date: Wed, 14 Apr 1999 00:00
Date: Wed, 14 Apr 1999 00:00
53 lines
2166 bytes
2166 bytes
There is a bug in mailpost, which produces the error message
"First line with leading whitespace!"
when it is fed an e-mail, where the body of the message starts with
a space. (i.e. headers,blank line,space ...)
The bug is in the code for handling header continuation lines. I believe
that the following patch fixes the problem, although you may well be
able to improve the Perl ;-)
Geoff Gibbs
---
UK-Human Genome Mapping Project-Resource Centre,
Hinxton, Cambridge, CB10 1SB, UK
Tel: +44 1223 494530 Fax: +44 1223 494512 E-mail: G.Gibbs@hgmp.mrc.ac.uk
---
*** mailpost.orig Wed Feb 17 09:58:52 1999
--- mailpost Wed Apr 14 14:24:06 1999
***************
*** 152,157 ****
--- 152,159 ----
}
for (;;) {
+ last if defined($line) && ($line =~ /^$/) ;
+
$_ = <STDIN> ;
chomp ;
***************
*** 284,290 ****
${weird_mail_hdrs}
EOF
! print TMPFILE $line, "\n" ; # left over from header parsing loop
print TMPFILE <STDIN>;
# do we really want to add this next line? (inews will append a signature)
print TMPFILE "---\n" ;
--- 286,292 ----
${weird_mail_hdrs}
EOF
! # print TMPFILE $line, "\n" ; # left over from header parsing loop
print TMPFILE <STDIN>;
# do we really want to add this next line? (inews will append a signature)
print TMPFILE "---\n" ;
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads