* Robert Ian Smit <[EMAIL PROTECTED]>, 2002-06-08 10:23 -0400:
> On Sat, Jun 08, 2002 at 12:39:11PM +0300, Jussi Ekholm wrote:
[on archiving]
> Does anyone keep everything from a list like debian-user on their
> hard-drive to have a local archive? I can imagine doing something
> like that, because searching the web-based archives is a pain.
> Is this a practical solution in regards to the size of the mailbox
> (ie. disk usage and speed of searching)?

I use mbox format (faster than Maildir) mailboxes, and a combination
of scoring and copying to archive what I consider to be important.

Essentially, the scoring:

set index_format="%4C %2M%Z (%2N) %[%y%m%d] %-17.17F (%3l) %s"
set score_threshold_delete=0
set score_threshold_flag=30
set score_threshold_read=15
unscore *
score '~A' 20
score '~=' -9999
score '~P|~p|~Q' 20
folder-hook . 'score "~=|(!(~p|~P|~Q|~F)~d>14d)" -9999'
# Flagged as ! is colored cyan
color index cyan default '~F'

This deletes all messages that are either duplicate or not related to
me or not flagged as important, if they are older than two weeks.

folder-hook . 'save-hook . =save.%B'

This saves messages to a folder with the same name as the current
folder but preceded by "save." when you hit "s"

macro   index   \eS       "1\n\eV^T~A\nT(~P|~p|~Q|~F)~r>3w\n;s\n" "Delete old; 
archive" 
macro   pager   \eS       "q1\n\eV^T~A\nT(~P|~p|~Q|~F)~r>3w\n;s\n" "Delete old; 
archive"

When you hit <Esc S>, your surviving messages older than three weeks
are moved to the respective folder preceeded by "save." as set above.
The only problem is if there are no messages. In this case mutt wants
to copy the first message in the folder, and I can't find a way
around that. That's why I've set

#ask for confirmation on moves
folder-hook . 'set move=ask-yes'

I hope this helps!

-Andre

Attachment: msg28760/pgp00000.pgp
Description: PGP signature

Reply via email to