diff --git a/fmbox.py b/fmbox.py index 067aeea..b5fa2c7 100644 --- a/fmbox.py +++ b/fmbox.py @@ -79,6 +79,7 @@ def __init__(self, path): raise NoSuchMailboxError(path) self._mbox_position = self._file.tell() self._last_from_line = self._file.readline().replace(linesep, b'') + self._file.seek(0) def __iter__(self): return self