MAIL="$(< scripts\mails.txt)" #mails from mails.txt file
for MAIL in $MAILS; do
zmmailbox -z -m $MAILS cf -c red "/SPAM"
zmmailbox -z -m $MAILS afrl "Spam" active any header "subject" contains "your account" header "subject" contains "facebook" header "subject" contains "google" header "subject" contains "paypal" header "subject" contains "virus" header "subject" contains "invoice" fileinto "SPAM" stop
done
但每当我运行它(作为zimbra用户)时,我都会收到以下错误:
./fillter-set.sh: line 5: syntax error near unexpected token `zmmailbox'
./fillter-set.sh: line 5: `zmmailbox -z -m $MAILS cf -c red "/SPAM"'
任何人都可以告诉我我做错了什么以及如何修复脚本以便我可以运行它?