2017-07-13 Archivemail is a tool to extract old messages from mboxes and put them in a separate mbox, which it gzips to save space. I use it every once in a while. Today I wanted to run it as root on the mbox of a user. It failed with: ``'bob' is owned by someone else!''. Sure it it, but I was root. As the manpage didn't help, I took a look into code of the python script and patched it: --- /usr/bin/archivemail 2011-07-10 15:57:42.000000000 +0200 +++ /usr/local/bin/archivemail 2017-07-13 20:37:45.147551554 +0200 @@ -1103,7 +1103,7 @@ except OSError, e: user_error(str(e)) else: - if fuid != os.getuid(): + if fuid != os.getuid() and os.getuid() != 0: user_error("'%s' is owned by someone else!" % mailbox_name) old_temp_dir = tempfile.tempdir http://marmaro.de/lue/ markus schnalke