summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2006-03-24 14:03:00 +0000
committerJonas Smedegaard <dr@jones.dk>2006-03-24 14:03:00 +0000
commit2f3697fe40d4310f111b0ce6098584dff519053d (patch)
tree87c476b0ad4a6762f4599507d6c2735dfc454021
parent9dba313ddcd5c5df899c09c44c12aea714c6c63f (diff)
Be verbose about locking INBOX.
-rwxr-xr-xlocalmb2md4
1 files changed, 3 insertions, 1 deletions
diff --git a/localmb2md b/localmb2md
index 0e9fe5e..b5864c4 100755
--- a/localmb2md
+++ b/localmb2md
@@ -3,7 +3,7 @@
# /usr/local/sbin/adduser.local
# Copyright 2005-2006 Jonas Smedegaard <dr@jones.dk>
#
-# $Id: localmb2md,v 1.6 2006-03-24 13:54:46 jonas Exp $
+# $Id: localmb2md,v 1.7 2006-03-24 14:03:00 jonas Exp $
#
# Convert user account from mailboxes below /var/mail/ and ~/mail/ to
# maildirs below ~/Maildir/ .
@@ -38,6 +38,7 @@ fi
# Avoid incoming mail while messing with INBOX
if [ -e "/var/mail/$USER" ]; then
+ echo "Locking INBOX"
mail-lock
mail-touchlock &
# Save the PID of the mail-touchlock process
@@ -58,6 +59,7 @@ if [ -e "/var/mail/$USER" ]; then
# Allow incoming mail again
kill "${BADGER}"
mail-unlock
+ echo "INBOX unlocked again"
fi
# Convert secondary mailboxes