[Gllug] Maildir Archiving
Andrew Roberts
ar at nooneishere.co.uk
Thu Mar 13 13:58:37 UTC 2008
On 12/03/2008, countd <countd42 at googlemail.com> wrote:
> What about using find? eg:
> find ~/Maildir/cur -type f -mtime +90 -print0|xargs -0 -i mv {}
> ~/Maildir/.archive/cur
With a GNU mv, the following command can also be used:
find . -print0 | xargs -0 -r mv --target-directory=~/Maildir/.archive/
Also, the '-r' prevents xargs from running the command if the input is empty.
Regards,
Andrew.
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list