Re: Managing Maildirs

From: Bill Campbell (freebsd_at_celestial.com)
Date: 12/19/03

  • Next message: Eric Anderson: "Re: Managing Maildirs"
    Date: Fri, 19 Dec 2003 11:00:55 -0800
    To: freebsd-isp@freebsd.org
    
    

    On Fri, Dec 19, 2003, Odhiambo Washington wrote:
    >Hiya all,
    >
    >Okay. I have users who are not "very familiar with these thing, you
    >know" as they always tell me ;)
    >Noone cleans their Trash folder when they access their mail via the imap
    >server. I would like to do it for them, but I am not sure I get it
    >right. I have read the man page of find, but just to be sure, can I do
    >
    >1. find /home/*/Maildir/.Trash/ -type f | xargs rm ??
    >2. find /var/spool/virtual/*/*/Maildir/.Trash/ -type f -exec rm {} \;
    >
    >The * in (1) is like /home/wash/Maildir/.Trash/ and the * in (2)
    >is like /var/spool/virtual/domain.tld/user1/Maildir/
    >
    >How are others dealing with this situation? Any good tools?

    Number one above will do the trick and is far more efficient than using the
    ``find ...-exec'', although you might want to modify it to only nuke mail
    over a certain age. To nuke all trash over 30 days old:

            find /home/*/Maildir/.Trash -type f -mtime +30 | xargs rm

    Bill

    --
    INTERNET:   bill@Celestial.COM  Bill Campbell; Celestial Software LLC
    UUCP:               camco!bill  PO Box 820; 6641 E. Mercer Way
    FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
    URL: http://www.celestial.com/
    Breathe fire, slay dragons, and take chances. Failure is temporary, regret
    is eternal.
    _______________________________________________
    freebsd-isp@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-isp
    To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"
    

  • Next message: Eric Anderson: "Re: Managing Maildirs"

    Relevant Pages

    • Re: OT - Washer and dryer combos
      ... Melinda Meahan - take out TRASH to reply wrote: ... Of course, if you can live with it, it would be okay. ... RaeMorrill wrote: ... No more forgetting to toss the clothes in the ...
      (sci.med.transcription)
    • Re: total failure of Kyoto wont stop Gores global warming nonsense
      ... Just because you don't get it is no reason for the rest of us to trash ... Kyoto. ... Okay, how about the fact that China and India are exempt from sanctions ...
      (alt.politics)
    • Re: Brand Upon the Brain -- Help me decide
      ... to put it on my shelf next to 8 1/2 or throw it in the ... trash. ...  Is it okay to like this one? ... imagine the coincidence required for two people to like BRAND ...
      (rec.arts.movies.current-films)
    • Re: Why are most who post here not American?
      ... Like anyone gives a shit what a eurotrash drunken scotsman thinks. ... Okay, who brought the trash over from the US political groups. ...
      (soc.culture.scottish)
    • Re: Why are most who post here not American?
      ... Like anyone gives a shit what a eurotrash drunken scotsman thinks. ... Okay, who brought the trash over from the US political groups. ...
      (soc.culture.scottish)