<<< Date Index >>>     <<< Thread Index >>>

Re: Deleting old messages



* Ian Partridge <ian@xxxxxxxxxxxxx> [2003-12-05 13:00 +0000]:
> How can I write a hook such that when a mailbox is
> opened, only the 30 highest-numbered messages are retained and
> the rest are purged (not just marked for deletion)?

The following should work (untested, with default key bindings).
folder-hook something ':set sort=reverse-threads\nD~m>30\n$:set sort=threads\n'

Nicolas