aboutsummaryrefslogtreecommitdiffstats
path: root/interimap
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2016-03-13 00:02:03 +0100
committerGuilhem Moulin <guilhem@fripost.org>2016-03-13 00:02:03 +0100
commit862d890b59e80997b84bca3f32099dadcd9d6622 (patch)
tree19007b9ce88473cda3718f143c2166fb1391f5de /interimap
parentb89ff54eb28bbbf25d3bf6634a6055d014beaebf (diff)
parentd5fbcc37f0298bc05cab29b38b115e3fcd08738d (diff)
Merge branch 'master' into debian
Diffstat (limited to 'interimap')
-rwxr-xr-xinterimap2
1 files changed, 1 insertions, 1 deletions
diff --git a/interimap b/interimap
index a6e2d06..b714480 100755
--- a/interimap
+++ b/interimap
@@ -63,7 +63,7 @@ my $COMMAND = do {
usage(1) if defined $COMMAND and (($COMMAND eq 'delete' and !@ARGV) or ($COMMAND eq 'rename' and $#ARGV != 1));
usage(1) if defined $COMMAND and (defined $CONFIG{watch} or defined $CONFIG{notify});
usage(1) if $CONFIG{target} and !(defined $COMMAND and ($COMMAND eq 'delete'or $COMMAND eq 'rename'));
-$CONFIG{watch} = $CONFIG{notify} ? 900 : 60 unless $CONFIG{watch};
+$CONFIG{watch} = $CONFIG{notify} ? 900 : 60 if (defined $CONFIG{watch} or $CONFIG{notify}) and !$CONFIG{watch};
@ARGV = map {uc $_ eq 'INBOX' ? 'INBOX' : $_ } @ARGV; # INBOX is case-insensitive
die "Invalid mailbox name $_" foreach grep !/\A([\x01-\x7F]+)\z/, @ARGV;