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: -mm merge plans for 2.6.23
      ... on a reasonably complex box no way do all the inodes and dentries fit into all of RAM, so we just trash everything. ... Okay, but unless I've now managed to really quite horribly confuse myself, that wouldn't have anything to do with _swap_ prefetch would it? ...
      (Linux-Kernel)
    • Auto text at the beginning of each new document
      ... I checked autoformat and can't ... I really don't need to add the CNA to my dictionary, ... would like to remove the trash that is automatically appearing on each new ... I can delete the text and then everything is okay for that ...
      (microsoft.public.word.docmanagement)
    • Re: OT question
      ... Melinda Meahan - take out TRASH to send wrote: ... it's okay -- God will forgive you." ...
      (sci.med.transcription)