Hello, I'm attaching a test case that prints "2" when run on python 2.7.12rc2 or 3.5.2, even though the mailbox as opened with mutt or pretty much anything else only contains one message.
Enrico -- GPG key: 4096R/634F4BD1E7AD5568 2009-05-08 Enrico Zini <[email protected]>
512248.mbox
Description: application/mbox
import mailbox
mb = mailbox.mbox("512248.mbox")
print(len(list(mb)))
signature.asc
Description: PGP signature

