Kaydet (Commit) 3a15dca1 authored tarafından Jack Jansen's avatar Jack Jansen

Skip old-style 'From name time' lines at beginning of message.

üst fbe6d33f
......@@ -86,11 +86,17 @@ class Message:
self.headers = list = []
self.status = ''
headerseen = 0
firstline = 1
while 1:
line = self.fp.readline()
if not line:
self.status = 'EOF in headers'
break
# Skip unix From name time lines
if firstline and (line[:5] == 'From '
or line[:6] == '>From '):
continue
firstline = 0
if self.islast(line):
break
elif headerseen and line[0] in ' \t':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment