From d8957d6802551c6510974667e102027ed07a0fa5 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 6 Oct 1999 15:19:19 +0000 Subject: [PATCH] Fix PR#3, submitted by Skip Montanaro: if no space appears after the colon, the first character of the value is lost. --- Lib/rfc822.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/rfc822.py b/Lib/rfc822.py index 87219949c32..a147155900e 100644 --- a/Lib/rfc822.py +++ b/Lib/rfc822.py @@ -158,7 +158,7 @@ class Message: if headerseen: # It's a legal header line, save it. list.append(line) - self.dict[headerseen] = string.strip(line[len(headerseen)+2:]) + self.dict[headerseen] = string.strip(line[len(headerseen)+1:]) continue else: # It's not a header line; throw it back and stop here.