#!/usr/bin/env python3 # vim:fileencoding=utf-8 from mailbox import mbox mb = mbox('mbox2') del mb[len(mb)-1] mb.close()