From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell Adams Subject: Re: [OT] Emacs for email? Date: Wed, 2 Dec 2009 11:00:51 -0600 Message-ID: <20091202170051.GK26697@thinkpad.adamsinfoserv.com> References: <87aay17m3z.wl%ucecesf@ucl.ac.uk> <87iqcp3ai5.wl%jemarch@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NFsZa-0007RJ-4A for emacs-orgmode@gnu.org; Wed, 02 Dec 2009 12:01:02 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NFsZW-0007QB-W7 for emacs-orgmode@gnu.org; Wed, 02 Dec 2009 12:01:00 -0500 Received: from [199.232.76.173] (port=57192 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFsZW-0007Pw-Hp for emacs-orgmode@gnu.org; Wed, 02 Dec 2009 12:00:58 -0500 Received: from squirtle.drak.net ([72.52.144.201]:33034) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NFsZV-0004qC-OX for emacs-orgmode@gnu.org; Wed, 02 Dec 2009 12:00:58 -0500 Received: from 206.180.154.148.adsl.hal-pc.org ([206.180.154.148] helo=localhost) by squirtle.drak.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1NFsZK-0000yC-DA for emacs-orgmode@gnu.org; Wed, 02 Dec 2009 11:00:46 -0600 Content-Disposition: inline In-Reply-To: <87iqcp3ai5.wl%jemarch@gnu.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On Wed, Dec 02, 2009 at 12:01:38PM +0100, jemarch@gnu.org wrote: > > I've moved to a "0 size mailbox" approach to handling my email > (which works well with org and, in fact, requires org to work at > all really) so this is not an issue for me. > > That sounds like an interesting approach. Could you elaborate on > that? Yes, I also have problems with my huge longstanding mailboxes > :( Since I use maildir its fairly easy to perform mass operations on email. I have a shell script which nightly moved messages that are over two weeks old and aren't "flagged" to an archive folder, which keeps my normal mailbox access quick. Typically less than 300 messages in any incoming folder, and archives grow forever. Incoming folder: ~/Mail/.Domain.com/Inbox/{cur,tmp,new} Archive folder: ~/Mail/.Archive.Domain.com/Inbox/{cur,tmp,new} # Any directory with an Archive subdir will be autoarchived. # /home/rladams/Maildir/.Adamsinfoserv_com.Inbox is archived to # /home/rladams/Maildir/.Archive.Adamsinfoserv_com.Inbox echo "********** $0 running at `date`" find /home/rladams/Maildir -type d -name .Archive.\* | \ while read MyArchive do SRC=`echo $MyArchive | sed 's/\.Archive//g'` # If file is older than 14 days, and isn't flagged, move it. [ -d ${SRC}/cur ] && { echo "********** Archiving $SRC to $MyArchive." find ${SRC}/cur -type f -mtime +14 ! -name '*,*F*' | \ grep '^/home/rladams/Maildir' | \ while read X do echo mv $X ${MyArchive}/cur mv $X ${MyArchive}/cur done } done ------------------------------------------------------------------ Russell Adams RLAdams@AdamsInfoServ.com PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3