From 2f3697fe40d4310f111b0ce6098584dff519053d Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Fri, 24 Mar 2006 14:03:00 +0000 Subject: Be verbose about locking INBOX. --- localmb2md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'localmb2md') 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 # -# $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 -- cgit v1.2.3