Configure o seu Squirrelmail para utilizar o diretório attach ao invés de gravar tudo em data. Aí sim, use o script enviado por nosso amigo Willian. Eu acho mais seguro.
Abraços! 2008/3/3, William Grzybowski <[EMAIL PROTECTED]>: > > On Mon, Mar 03, 2008 at 02:08:17AM -0300, Ari Arantes wrote: > > Pessoal, > > > > Alguém tem algum script para limpar os arquivos temporários do > > attachment_dir do Squirrelmail? > > > > Costuma-se rodar algo assim em cron diario: > > set -e > > test -d /var/spool/squirrelmail/attach || exit 0 > > cd /var/spool/squirrelmail/attach > > find \ > -maxdepth 1 \ > -xdev \ > -type f \ > \! -name '*.*' \ > \! -name '*_*' \ > -atime +2 \ > -print0 \ > | xargs \ > -0 \ > --no-run-if-empty \ > rm -- > > > > > > Os arquivos são do tipo: > > > > ./squirrel/data/bkRzg5JFrB47CmQ2TEXg4oheB2ov949C > > ./squirrel/data/dXJrXVhoRyFDH8uda5luJwtqHaF7HfbG > > ./squirrel/data/YvO8AB9sHKm7tXwmtf4auD1SQ10vQOGt > > ./squirrel/data/hJQyNTzWiVeowB0ClaWCyWhA4fsze8QR > > ./squirrel/data/AvlzT6NfKieI180XFULQVVY6DvELHn0A > > ./squirrel/data/sp2gZL2kmAUZ08rNzL37TmToX8inRFH0 > > ./squirrel/data/voEql3tTOUjDwhGcwxYUwwZWWq21wFY > > > > E acumulam muitos arquivos desses, desperdiçando espaço em disco sem > > necessidade. > > > > Porém não podem apagar os .pref, .abook, .cal, .sig e outros. > > > > Obrigado, > > > > Ari > > ------------------------- > > Histórico: http://www.fug.com.br/historico/html/freebsd/ > > Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd > > > -- > William Grzybowski /"\ > Jabber: [EMAIL PROTECTED] \ / ASCII Ribbon Campaign > Curitiba/PR - Brazil (GMT -3:00) X against HTML email & vCards > ......... / \ > > ------------------------- > Histórico: http://www.fug.com.br/historico/html/freebsd/ > Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd > -- Atenciosamente, Edilson Azevedo (11) 3371-7066 (12) 8156-5590 Gtalk: [EMAIL PROTECTED] Skype: apropos.consultoria 'Dear God I've sealed my fate running through hell, heaven can wait'. ------------------------- Histórico: http://www.fug.com.br/historico/html/freebsd/ Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd