[Dovecot] Differences when expire plugin and cronjob?

Steffen Kaiser skdovecot at smail.inf.fh-brs.de
Fri Jan 30 10:22:34 EET 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 30 Jan 2009, Noel Butler wrote:

> We found it much easier to use a daily cron to clear out old crap
>
> find /var/vmail/*/*/*/*/Maildir/{.Junk,.Trash}/ -name "*.mx*" -mtime +10
> -print | /usr/bin/perl -nle 'unlink;'

Which won't work necessarily because of "command line exceeded" errors :)

If you have a GNU find, you could use "-delete" with find, or -print0 in 
combination with "xargs -r0 rm". This _should_ have even better 
performance.

Nevertheless, I'm quite happy with find myself.

Bye.

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBSYK4zHWSIuGy1ktrAQKlUgf+O4hyNKrojkA4bPcoEXFSUeMDABgJVd9p
b/W0RxrSx9mmiroDAsKz3PdhCgrH6Wgzcs1GsmJDKEXSp538pf5rII27X3ngiuJB
YqbsCA2YOdLNMfWpedu3r2TngL+qglmC/g8vB9rub4o/TgnFtyIYGsMGiVlx2JSy
V1gsQWI2Yd988sw+cVZEHmlekhancm0VHApBKKmCURLrS1dIlzRhROUF+wW1B0Ix
TgBPbIkxqTSDPJwxG6dBFA+7e9IDudZy5IZmt8WZow+gC5OlZRyIV2IGlgjoPKBH
2g9ACbehnuM3JM561dIQ9nfLZMXJS9ggEEU32SlbOXc/ZWLH2MNkjQ==
=UkPR
-----END PGP SIGNATURE-----


More information about the dovecot mailing list