Fix PR#3, submitted by Skip Montanaro: if no space appears after the
colon, the first character of the value is lost.
diff --git a/Lib/rfc822.py b/Lib/rfc822.py
index 8721994..a147155 100644
--- a/Lib/rfc822.py
+++ b/Lib/rfc822.py
@@ -158,7 +158,7 @@
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.