Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #find emails older than 6 months and move them to another dir
- f=`find $dpath/$email/Maildir/cur -mtime +180`
- if [ $? -eq 0 ]; then
- emaildes=$ddest/$email/Maildir/cur
- mkdir -p ${emaildes}
- mv -v $f $emaildes
- else
- echo "no files found"; continue
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement