[Dovecot] Need a quick, safe method to empty /home/user/Maildir/{.Junk, .Trash}

2008-06-12 Thread Jeff Kowalczyk
I have some (Thunderbird client, dovecot-1.0.13, Maildir) users who get an appalling amount of spam-with-attachment, and it's causing backups to take an inordinate amount of time. I'll implement some quota and server-side spam management when I go to dovecot-1.1, but in the meantime: What is the

Re: [Dovecot] Need a quick, safe method to empty /home/user/Maildir/{.Junk, .Trash}

2008-06-12 Thread Bill Cole
At 9:22 AM -0400 6/12/08, Jeff Kowalczyk wrote: I have some (Thunderbird client, dovecot-1.0.13, Maildir) users who get an appalling amount of spam-with-attachment, and it's causing backups to take an inordinate amount of time. I'll implement some quota and server-side spam management when I go

Re: [Dovecot] Need a quick, safe method to empty /home/user/Maildir/{.Junk, .Trash}

2008-06-12 Thread Kyle Wheeler
On Thursday, June 12 at 11:10 AM, quoth Bill Cole: What is the safest way to empty all messages within, but not delete, the following folders from the server command line: /home/user/Maildir/.Junk /home/user/Maildir/.Trash I don't want the Thunderbird-2.0.14 client to report corrupt indexing,

Re: [Dovecot] Need a quick, safe method to empty /home/user/Maildir/{.Junk, .Trash}

2008-06-12 Thread Alexander Prinsier
Jeff Kowalczyk wrote: Any thoughts on a variant using find -name that could safely iterate over /home/*/Maildir for all users? Otherwise I would script it in python. What about: find /home/*/Maildir/.Junk/cur -type f -delete Alexander

Re: [Dovecot] Need a quick, safe method to empty /home/user/Maildir/{.Junk, .Trash}

2008-06-12 Thread Jeff Kowalczyk
On Thu, 12 Jun 2008 19:07:36 +0200, Alexander Prinsier wrote: Jeff Kowalczyk wrote: Any thoughts on a variant using find -name that could safely iterate over /home/*/Maildir for all users? Otherwise I would script it in python. What about: find /home/*/Maildir/.Junk/cur -type f -delete

Re: [Dovecot] Need a quick, safe method to empty /home/user/Maildir/{.Junk, .Trash}

2008-06-12 Thread Kyle Wheeler
On Thursday, June 12 at 01:02 PM, quoth Jeff Kowalczyk: On Thu, 12 Jun 2008 10:19:48 -0500, Kyle Wheeler wrote: If you have a *TON* of messages in those folders (i.e. several thousand), your shell may complain that there are too many arguments to the rm command. If that happens, these may be

Re: [Dovecot] Need a quick, safe method to empty /home/user/Maildir/{.Junk, .Trash}

2008-06-12 Thread Benjamin R. Haskell
On Thu, 12 Jun 2008, Kyle Wheeler wrote: On Thursday, June 12 at 01:02 PM, quoth Jeff Kowalczyk: On Thu, 12 Jun 2008 10:19:48 -0500, Kyle Wheeler wrote: If you have a *TON* of messages in those folders (i.e. several thousand), your shell may complain that there are too many arguments to the

Re: [Dovecot] Need a quick, safe method to empty /home/user/Maildir/{.Junk, .Trash}

2008-06-12 Thread Jurvis LaSalle
On Jun 12, 2008, at 9:22 AM, Jeff Kowalczyk wrote: I have some (Thunderbird client, dovecot-1.0.13, Maildir) users who get an appalling amount of spam-with-attachment, and it's causing backups to take an inordinate amount of time. /home/user/Maildir/.Junk /home/user/Maildir/.Trash What

Re: [Dovecot] Need a quick, safe method to empty /home/user/Maildir/{.Junk, .Trash}

2008-06-12 Thread Timo Sirainen
On Thu, 2008-06-12 at 11:10 -0400, Bill Cole wrote: At 9:22 AM -0400 6/12/08, Jeff Kowalczyk wrote: I have some (Thunderbird client, dovecot-1.0.13, Maildir) users who get an appalling amount of spam-with-attachment, and it's causing backups to take an inordinate amount of time. I'll

Re: [Dovecot] Need a quick, safe method to empty /home/user/Maildir/{.Junk, .Trash}

2008-06-12 Thread Bill Cole
At 1:17 AM +0300 6/13/08, Timo Sirainen wrote: On Thu, 2008-06-12 at 11:10 -0400, Bill Cole wrote: [...] However, I DO clobber the dovecot-uidlist in .Trash as part of my monthly housekeeping because it tends to get very large All the expunged messages get removed from it the next time a

Re: [Dovecot] Need a quick, safe method to empty /home/user/Maildir/{.Junk, .Trash}

2008-06-12 Thread Timo Sirainen
On Thu, 2008-06-12 at 19:28 -0400, Bill Cole wrote: At 1:17 AM +0300 6/13/08, Timo Sirainen wrote: On Thu, 2008-06-12 at 11:10 -0400, Bill Cole wrote: [...] However, I DO clobber the dovecot-uidlist in .Trash as part of my monthly housekeeping because it tends to get very large All