--- archivemail.orig 2007-08-15 19:41:25.000000000 +0200 +++ archivemail 2007-08-15 22:27:24.000000000 +0200 @@ -1262,7 +1262,10 @@ original = mailbox.MHMailbox(mailbox_name) else: unexpected_error("unknown type: %s" % type) - assert(original) + if not original: + if not options.quiet: + print "Maildir is empty, exiting." + return cache = IdentityCache(mailbox_name)