search for: doonsubfolders

Displaying 1 result from an estimated 1 matches for "doonsubfolders".

2006 Apr 29
1
How to notify dovecot that maildir contents is changed by third-party helper ?
...SpamToFolder() # $1 = spam folder to consume spam { local dir2check=$(dirname $1)/$INBOX_DIRNAME find "$dir2check" -type f | while read f; do IsSpamFile "$f" && $doit $MV "$f" "${1}/$INBOX_DIRNAME" done } DoOnSubFolders() # $1 = dirmask to find, $2 = action to apply { find $VMAIL_TOPDIR/ -mindepth $FIND_DEPTH -maxdepth $FIND_DEPTH \ -type d -iname "$1" \ | while read d; do "$2" "$d" done } #========= Main ============...