From 223e2f9802fcf279badbbc6b27dc4b450206db86 Mon Sep 17 00:00:00 2001 From: Nikolaus Schulz Date: Mon, 4 Aug 2008 20:15:08 +0200 Subject: Cosmetics: in verbose mode, report current mailbox early This is now before we do the sanity checking, so in verbose mode, we don't error out before having said that we now turn attention to the current mailbox. --- archivemail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archivemail.py b/archivemail.py index 47d1888..619d9c5 100755 --- a/archivemail.py +++ b/archivemail.py @@ -1095,6 +1095,7 @@ def archive(mailbox_name): os.umask(077) # saves setting permissions on mailboxes/tempfiles final_archive_name = make_archive_name(mailbox_name) + vprint("archiving '%s' to '%s' ..." % (mailbox_name, final_archive_name)) check_archive(final_archive_name) dest_dir = os.path.dirname(final_archive_name) if not dest_dir: @@ -1112,7 +1113,6 @@ def archive(mailbox_name): if fuid != os.getuid(): user_error("'%s' is owned by someone else!" % mailbox_name) - vprint("archiving '%s' to '%s' ..." % (mailbox_name, final_archive_name)) old_temp_dir = tempfile.tempdir try: # create a temporary directory for us to work in securely -- cgit v1.2.3