emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Russell Adams <RLAdams@AdamsInfoServ.Com>
To: emacs-orgmode@gnu.org
Subject: Re: [OT] Emacs for email?
Date: Wed, 2 Dec 2009 11:00:51 -0600	[thread overview]
Message-ID: <20091202170051.GK26697@thinkpad.adamsinfoserv.com> (raw)
In-Reply-To: <87iqcp3ai5.wl%jemarch@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

  parent reply	other threads:[~2009-12-02 17:01 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-01 21:34 [OT] Emacs for email? Keith Lancaster
2009-12-01 22:59 ` Ben Finney
2009-12-02  7:59   ` Tassilo Horn
2009-12-02  8:31     ` Ben Finney
2009-12-02  9:23       ` bluedian
2009-12-01 23:28 ` David Bremner
2009-12-01 23:36 ` Nick Dokos
2009-12-01 23:57 ` Darlan Cavalcante Moreira
2009-12-02  0:39   ` Keith Lancaster
2009-12-02 14:22     ` Leo
2009-12-02 18:38       ` David Neu
2009-12-02 22:48         ` Eric Schulte
2009-12-02 23:08         ` Keith Lancaster
2009-12-03  5:21         ` Rémi Vanicat
2009-12-02 13:43   ` Matt Price
2009-12-02 21:04     ` David Maus
2009-12-03 16:53       ` Matt Price
2009-12-03 21:55         ` Darlan Cavalcante Moreira
2009-12-02  0:40 ` Matt Lundin
2009-12-02  1:02 ` Henri-Paul Indiogine
2009-12-02  8:03   ` Tassilo Horn
2009-12-02  2:15 ` Dan Davison
2009-12-02  2:56   ` Russell Adams
2009-12-02  6:36     ` Manuel Hermenegildo
2009-12-02  6:39     ` Gour
2009-12-03  7:05     ` Russell Adams
2009-12-03  6:38       ` Rémi Vanicat
2009-12-03  8:22         ` Ulf Stegemann
2009-12-03 11:25           ` Matt Lundin
2009-12-03 10:53       ` Bernt Hansen
2009-12-02  6:30 ` Xavier Maillard
2009-12-02  9:37 ` Eric S Fraga
2009-12-02 11:01   ` jemarch
2009-12-02 14:24     ` Eric S Fraga
2009-12-02 16:31       ` jemarch
2009-12-02 20:30         ` David Maus
2009-12-02 17:31       ` Rémi Vanicat
2009-12-02 18:33       ` Eric Schulte
2009-12-02 19:03       ` Matt Lundin
2009-12-02 17:00     ` Russell Adams [this message]
2009-12-02 12:58 ` Otto Diesenbacher
2009-12-03 17:10   ` Henri-Paul Indiogine
2009-12-03 17:51     ` Matt Lundin
2009-12-03 19:53       ` Enrico Indiogine

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091202170051.GK26697@thinkpad.adamsinfoserv.com \
    --to=rladams@adamsinfoserv.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).