昨日から,MewでHyper Estraierを利用しているのですが,~/Mail/spam内のSPAMメールまで検索の対象にしてしまってます。SPAMメールを検索の対象にしないために,mewestを以下のように変更しました。
# "find"'s regular expression is NOT portable, sigh... # "[0-9]*" matches both "123" and "234.mew". ${FIND} "`path_conv \"${TGTDIR}\"`" \ -type d -name "trash" -prune -o \ -type d -name "spam" -prune -o \ # ← この行を追加。 -type d -name ${INDEXDIR} -prune -o \ -type f \( -name "[0-9]" -o -name "[0-9]*[0-9]" -o -name "[0-9]*.mew" \) -print |\ ${ESTCMD} gather -cl -fm -cm -sd -xh "`path_conv \"${BASEDIR}/${INDEXDIR}\"`" - > ${OUTPUT} ||\ cleanup_lock_exit "Indexing new messages...failed"