Revision: 2005
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 13, 2006 04:05 by berkes
Initial Code
for file in `grep -lr 'Subject: Undelivered' /path/to/Maildir/cur`; do mv $file /path/to/backup/; done
Initial URL
Initial Description
Move all mails with a certain subject (in this case starting with the word "Undelivered" into a backup dir. It is by no means a mail filter, I needed it to clean out the maildirectory after a HDD crash wich caused over 1000000 (one million) local bouces and thus Undelivered mails and stuff.
Initial Title
Move all mails with a certain subject into a backup dir.
Initial Tags
Bash
Initial Language
Bash