Caolan McNamara: properly undo the byte-stuffing of lines starting
with a dot. [GvR change: only unstuff when line starts with two dots.]
This commit is contained in:
parent
9cef99fbf9
commit
2a91cd463a
|
@ -133,6 +133,9 @@ class POP3:
|
|||
list = []; octets = 0
|
||||
line, o = self._getline()
|
||||
while line != '.':
|
||||
if line[:2] == '..':
|
||||
o = o-1
|
||||
line = line[1:]
|
||||
octets = octets + o
|
||||
list.append(line)
|
||||
line, o = self._getline()
|
||||
|
|
Loading…
Reference in New Issue