diff --git a/roles/i3/files/newmail b/roles/i3/files/newmail index 49dc9b3..50ade4f 100755 --- a/roles/i3/files/newmail +++ b/roles/i3/files/newmail @@ -8,7 +8,7 @@ if [ -z "$LABEL" ]; then LABEL='New: ' fi -nb_new=$(find "$MAILBOX_DIR" -type d -name new -not -empty -execdir ls '{}' \+ | wc -l) +nb_new=$(find "${MAILBOX_DIR[@]}" -type d -name new -not -empty -execdir ls '{}' \+ | wc -l) if [ "$nb_new" -gt 0 ]; then echo "${LABEL}${nb_new}"