INN commit: trunk/frontends (mailpost.in)

INN Commit Russ_Allbery at isc.org
Thu May 14 05:43:04 UTC 2009


    Date: Wednesday, May 13, 2009 @ 22:43:04
  Author: iulius
Revision: 8462

Add a colon after the space following a header name.
SMTP does not require it whereas NNTP does.

Thanks to D. Stussy for having pointed out that issue.

Modified:
  trunk/frontends/mailpost.in

-------------+
 mailpost.in |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Modified: mailpost.in
===================================================================
--- mailpost.in	2009-05-12 18:48:33 UTC (rev 8461)
+++ mailpost.in	2009-05-14 05:43:04 UTC (rev 8462)
@@ -194,6 +194,9 @@
 	next ;
     }
 
+    # Add a space after the colon following a header name, if not present.
+    s/:/: / if ($_ !~ /^[^:]+: /);
+
     # On the first header, $line will be undefined.
     ($_, $line) = ($line, $_) ; # Swap $line and $_.
 
@@ -233,7 +236,7 @@
     if (/^Return-Path:\s*/sio) {
 	$path = $';
 	$path = $1 if ($path =~ /\<([^\>]*)\>/);
-	push at errorText, "((path: $path))\n";
+	push @errorText, "((path: $path))\n";
 	next;
     }
 




More information about the inn-committers mailing list