Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #173137
| From | Jochen Spieker <ml@well-adjusted.de> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Mutt and monthly delete old messages |
| Date | 2016-10-02 23:30 +0200 |
| Message-ID | <snWuB-3G8-1@gated-at.bofh.it> (permalink) |
| References | <slFex-4Zu-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
Mark Fletcher:
>
> So I was thinking of implementing a policy of deleting messages from
> this mail folder on my PC (the one Mutt is looking at) on a say monthly
> basis.
If you prefer a mutt-only solution (without archivemail) you could also
use a hook to mark all mails older than 30 days for deletion whenever
you open the corresponding mailbox.
Untested, adapt "debian" to match your mailbox name:
folder-hook =debian 'push "<delete-pattern> ~d>30d\n"'
Mutt will then mark older messages for deletion when you enter the
mailbox and ask for confirmation when you quit mutt, change to a
different mailbox or press '$'.
J.
--
I am not scared of death but terrified of people in Tommy Hilfiger
sweatshirts.
[Agree] [Disagree]
<http://archive.slowlydownward.com/NODATA/data_enter2.html>
Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread
Mutt and monthly delete old messages Mark Fletcher <mark27q1@gmail.com> - 2016-09-26 16:40 +0200
Re: Mutt and monthly delete old messages Brian <ad44@cityscape.co.uk> - 2016-09-26 17:10 +0200
Re: Mutt and monthly delete old messages Mark Fletcher <mark27q1@gmail.com> - 2016-09-27 01:00 +0200
Re: Mutt and monthly delete old messages Jonathan Dowland <jmtd@debian.org> - 2016-10-03 12:00 +0200
Re: Mutt and monthly delete old messages Jochen Spieker <ml@well-adjusted.de> - 2016-10-02 23:30 +0200
csiph-web