summaryrefslogtreecommitdiff
path: root/localmb2md
diff options
context:
space:
mode:
Diffstat (limited to 'localmb2md')
-rwxr-xr-xlocalmb2md6
1 files changed, 3 insertions, 3 deletions
diff --git a/localmb2md b/localmb2md
index ace50b5..b2872fd 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.9 2006-08-06 19:10:10 jonas Exp $
+# $Id: localmb2md,v 1.10 2006-08-20 20:36:04 jonas Exp $
#
# Convert user account from mailboxes below /var/mail/ and ~/mail/ to
# maildirs below ~/Maildir/ .
@@ -43,12 +43,12 @@ done
# Bail out if custom procmailrc is in the way
if [ -n "$mkprocmailrc" ] && [ -f ~/.procmailrc ]; then
- if egrep -v -q '^DEFAULT=\$HOME/Maildir/$' ~/.procmailrc; then
+ if ! grep -q -x 'DEFAULT=\$HOME/Maildir/' ~/.procmailrc; then
cat <<EOF
ERROR: non-Maildir-aware ~/.procmailrc exists already.
Please edit manually to include the following line:
- DEFAULT=$HOME/Maildir/
+ DEFAULT=\$HOME/Maildir/
Make sure other rules use Maildirs too, if needed.
EOF