On Thu, Dec 27, 2001 at 09:41:11PM +0100, Michael Wagner <[EMAIL PROTECTED]> wrote:
> On Donnerstag, 27. Dez. 2001 at 18:33:53, Thomas Hurst wrote:
> > I have a script scan all my mailspools (I use mbox) and move anything
> > older than a week to archive/<year>/<mailbox>/<month>-<year>-<mailbox> -
> > this keeps my active mail easily to hand, and searching for older mail's
> > as easy as I need it to be.
> 
> I have for this a folder-hook. It looks like this:
> 
> folder-hook =mutt-users$ 'push T~r>2w!~F\n\;s'

I have a similar folder-hook:

folder-hook 
"=(ntbugtraq|bugtraq|fbsd-de-questions|fbsd-security|fbsd-chat|fbsd-arch|fbsd-hackers|fbsd-stable|mutt(-devel)?|gnupg)$"
 "push 
\"<tag-pattern>~d>2w\n<untag-pattern>~F|~D|~O|~N\n<tag-prefix-cond><save-message>\n\n<sync-mailbox><first-entry><next-new><redraw-screen>\""

> And also I have a save-hook for this:
> 
> save-hook "~L mutt-users" =Archiv/mutt-users-archiv

I set the save-hooks in many folder-hooks. But the effect is similar. 

> The only thing, which does not work correct, is, then I enter the
> folder mutt-users and there is no message which is older than 2
> weeks, mutt always wants to save the message on which the cursor
> stays. How can I change my folder-hook, that mutt don't show such a
> behaviour.

I have written a small patch to address this problem, look for
"<tag-prefix-cond>" in the folder-hook. You can find the patch on my
homepage (www.rachinsky.de). It is tested with FreeBSD Port of
1.3.23.2.

> PS: Some time ago I also worked with a script which invoked grepmail,
>     but now I think, it's better to make it with mutt.

I want to use a small script to move very old mails to compressed
folders, it should work, but it is still untested. I attach it.

Nicolas

Attachment: move_mail.sh
Description: Bourne shell script

Reply via email to