summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/poplib.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/poplib.py b/Lib/poplib.py
index 118811c..97a9b0d 100644
--- a/Lib/poplib.py
+++ b/Lib/poplib.py
@@ -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()