Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-17 Thread Remco Rijnders
On Mon, Feb 15, 2021 at 05:07:54PM +, Chris wrote in <20210215170754.GA532393@esprimo>: Does no one else ever delete mail messges? :-) I use the following in my .muttrc: # Folder hooks folder-hook =Junk 'push ~r>14d' This sets to delete mails older than 14 days from my Junk folder any tim

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Patrick Shanahan
* Cameron Simpson [02-15-21 17:06]: > On 15Feb2021 17:07, Chris Green wrote: > >Does no one else ever delete mail messges? :-) > > Hmm: > > [~/mail]fleet2*1> ls -ldh spam* > -rw-rw-r-- 1 cameron cameron 1.7G 16 Feb 08:43 spam > -rw-rw-r-- 1 cameron cameron 609M 16 Feb 08:46

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Cameron Simpson
On 16Feb2021 09:05, Cameron Simpson wrote: >On 15Feb2021 17:07, Chris Green wrote: >>Does no one else ever delete mail messges? :-) > >Hmm: >[~/mail]fleet2*1> ls -ldh spam* >-rw-rw-r-- 1 cameron cameron 1.7G 16 Feb 08:43 spam >-rw-rw-r-- 1 cameron cameron 609M 16 Feb 08:46 spa

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Cameron Simpson
On 15Feb2021 17:07, Chris Green wrote: >Does no one else ever delete mail messges? :-) Hmm: [~/mail]fleet2*1> ls -ldh spam* -rw-rw-r-- 1 cameron cameron 1.7G 16 Feb 08:43 spam -rw-rw-r-- 1 cameron cameron 609M 16 Feb 08:46 spam-definite Possibly not. Can you tell mairix to

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Felix Finch
On 20210215, Angel M Alganza wrote: On Mon, Feb 15, 2021 at 12:49:53PM -0800, Felix Finch wrote: On 20210215, Kevin J. McCarthy wrote: You could write a script, I guess, something like: cd $header_cache_dir rm -f * How well would that play with existing mutt sessions? I run several mutts i

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Angel M Alganza
On Mon, Feb 15, 2021 at 12:49:53PM -0800, Felix Finch wrote: On 20210215, Kevin J. McCarthy wrote: You could write a script, I guess, something like: cd $header_cache_dir rm -f * How well would that play with existing mutt sessions? I run several mutts inside tmux (local mail, work IMAP mai

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Felix Finch
On 20210215, Kevin J. McCarthy wrote: You could write a script, I guess, something like: cd $header_cache_dir rm -f * cd $mutt_folder_dir for mb in *; do mutt -e 'set quit=yes; push ""' -f $mb done How well would that play with existing mutt sessions? I run several mutts inside tmux (local

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Angel M Alganza
On Mon, Feb 15, 2021 at 08:04:10PM +, Chris Green wrote: I have (for example) about 6000 messages in my sentmail folder, it loads in less than a second. It is a *lot* faster since I installed an NVME SSD. Well, in that case it might not be such an improvement to use the header cache and

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Chris Green
On Mon, Feb 15, 2021 at 08:51:35PM +0100, Angel M Alganza wrote: > On Mon, Feb 15, 2021 at 07:40:58PM +, Chris Green wrote: > > > Where does mutt keep these header caches then? > > I have 'set header_cache=~/.mutt/cache/'. > > > I don't have set header_cache set for the good reason that mutt

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Kevin J. McCarthy
On Mon, Feb 15, 2021 at 10:12:50AM -0800, Felix Finch wrote: On 20210215, Kevin J. McCarthy wrote: once in a while you may want to regenerate your header caches. Is there any way to do that from the command line? You could write a script, I guess, something like: cd $header_cache_dir rm -f

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Angel M Alganza
On Mon, Feb 15, 2021 at 07:40:58PM +, Chris Green wrote: Where does mutt keep these header caches then? I have 'set header_cache=~/.mutt/cache/'. I don't have set header_cache set for the good reason that mutt doesn't download mail from anywhere, it's all here on my desktop. The cache

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Angel M Alganza
On Mon, Feb 15, 2021 at 11:17:42AM -0800, Kevin J. McCarthy wrote: at a certain point the cache will lose some efficiency by sheer size. From time to time I simply delete the whole contents of my ~/.mutt/cache directory to keep it a bit more efficient. A kind of prune function would be neat

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Chris Green
On Mon, Feb 15, 2021 at 11:17:42AM -0800, Kevin J. McCarthy wrote: > On Mon, Feb 15, 2021 at 06:03:20PM +, Chris Green wrote: > > Is that mutt's header caches? > > Yes, that's what I meant to say. :) > > > If so I don't tend to leave mutt running all the time, I assume it > > refreshes things

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Kevin J. McCarthy
On Mon, Feb 15, 2021 at 06:03:20PM +, Chris Green wrote: Is that mutt's header caches? Yes, that's what I meant to say. :) If so I don't tend to leave mutt running all the time, I assume it refreshes things whenever it's started does it? Unfortunately, for header caches, "refreshing" do

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Sam Kuper
On Mon, Feb 15, 2021 at 06:00:47PM +, Chris Green wrote: > It's odd that none of the "maildir works like this" descriptions I > could find had anything about deleting mails. I agree. That's an unfortunate gap in the literature. -- A: When it messes up the order in which people normally read

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Angel M Alganza
On Mon, Feb 15, 2021 at 06:12:39PM +, Chris Green wrote: > mails in my junk catching directories, is it OK/safe to do it like this? Other ones are error messages from a remote server which I usually don't care about but occasionally I want to look at. Oh, that's interesting. I might be

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Chris Green
On Mon, Feb 15, 2021 at 09:54:06AM -0800, Kevin J. McCarthy wrote: > On Mon, Feb 15, 2021 at 04:21:11PM +, Chris Green wrote: > > I currently have the following two lines in my crontab to delete old > > mails in my junk catching directories, is it OK/safe to do it like > > this? > > > >20

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Chris Green
On Mon, Feb 15, 2021 at 05:39:26PM +, Sam Kuper wrote: > On Mon, Feb 15, 2021 at 04:21:11PM +, Chris Green wrote: > > This isn't specifically mutt but it's definitely to do with managing > > mail and there's lots of knowledgeable people here. > > > > I currently have the following two line

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Angel M Alganza
On Mon, Feb 15, 2021 at 05:07:54PM +, Chris Green wrote: Does no one else ever delete mail messges? :-) I do, and I try to be ruthless doing it. Since I copy every single piece of email into my IMAP 'bak' mailfolder, where it sits for 180 days before it is automatically deleted, I make s

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Chris Green
On Mon, Feb 15, 2021 at 09:54:06AM -0800, Kevin J. McCarthy wrote: > On Mon, Feb 15, 2021 at 04:21:11PM +, Chris Green wrote: > > I currently have the following two lines in my crontab to delete old > > mails in my junk catching directories, is it OK/safe to do it like > > this? > > > >20

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Felix Finch
On 20210215, Kevin J. McCarthy wrote: That should be fine. The only caveat is header caching. If you delete messages outside of mutt, those messages won't be removed from the header cache. Probably not a big deal for "junk catching" folders, but once in a while you may want to regenerate you

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Chris Green
On Mon, Feb 15, 2021 at 06:55:54PM +0100, Angel M Alganza wrote: > On Mon, Feb 15, 2021 at 04:21:11PM +, Chris Green wrote: > > > mails in my junk catching directories, is it OK/safe to do it like this? > > > >20 02 * * * find /home/chris/mail/Ju/*/cur -type f -mtime +7 -exec rm {} > > \

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Felix Finch
On 20210215, Chris Green wrote: On Mon, Feb 15, 2021 at 12:32:28PM -0500, José María Mateos wrote: On Mon, Feb 15, 2021 at 05:07:54PM +, Chris Green wrote: > Does no one else ever delete mail messges? :-) I do, but for Junk / Trash I just set expiration times on those folders on my e-mail p

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Angel M Alganza
On Mon, Feb 15, 2021 at 04:21:11PM +, Chris Green wrote: mails in my junk catching directories, is it OK/safe to do it like this? 20 02 * * * find /home/chris/mail/Ju/*/cur -type f -mtime +7 -exec rm {} \; 30 02 * * * find /home/chris/mail/Ju/*/new -type f -mtime +7 -exec rm {} \;

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Kevin J. McCarthy
On Mon, Feb 15, 2021 at 04:21:11PM +, Chris Green wrote: I currently have the following two lines in my crontab to delete old mails in my junk catching directories, is it OK/safe to do it like this? 20 02 * * * find /home/chris/mail/Ju/*/cur -type f -mtime +7 -exec rm {} \; 30 02 * * *

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Sam Kuper
On Mon, Feb 15, 2021 at 04:21:11PM +, Chris Green wrote: > This isn't specifically mutt but it's definitely to do with managing > mail and there's lots of knowledgeable people here. > > I currently have the following two lines in my crontab to delete old > mails in my junk catching directories

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Chris Green
On Mon, Feb 15, 2021 at 12:32:28PM -0500, José María Mateos wrote: > On Mon, Feb 15, 2021 at 05:07:54PM +, Chris Green wrote: > > Does no one else ever delete mail messges? :-) > > I do, but for Junk / Trash I just set expiration times on those folders on > my e-mail provider (Fastmail) so I d

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread José María Mateos
On Mon, Feb 15, 2021 at 05:07:54PM +, Chris Green wrote: Does no one else ever delete mail messges? :-) I do, but for Junk / Trash I just set expiration times on those folders on my e-mail provider (Fastmail) so I don't even have to think about that. Cheers, -- José María (Chema) Mateo

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Chris Green
On Mon, Feb 15, 2021 at 05:58:25PM +0100, Matthias Beyer wrote: > On 15-02-2021 16:38:43, Chris Green wrote: > > On Mon, Feb 15, 2021 at 05:26:09PM +0100, Matthias Beyer wrote: > > > On 15-02-2021 16:21:11, Chris Green wrote: > > > > I currently have the following two lines in my crontab to delete

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Matthias Beyer
On 15-02-2021 16:38:43, Chris Green wrote: > On Mon, Feb 15, 2021 at 05:26:09PM +0100, Matthias Beyer wrote: > > On 15-02-2021 16:21:11, Chris Green wrote: > > > I currently have the following two lines in my crontab to delete old > > > mails in my junk catching directories > > > > I mean, how man

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Chris Green
On Mon, Feb 15, 2021 at 05:26:09PM +0100, Matthias Beyer wrote: > On 15-02-2021 16:21:11, Chris Green wrote: > > I currently have the following two lines in my crontab to delete old > > mails in my junk catching directories > > May I ask why? I mean, how many tens of GB of mail do you get each yea

Re: Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Matthias Beyer
On 15-02-2021 16:21:11, Chris Green wrote: > I currently have the following two lines in my crontab to delete old > mails in my junk catching directories May I ask why? I mean, how many tens of GB of mail do you get each year so that it is necessary to delete stuff? Matthias signature.asc Descr

Deleting old maildir messages, is what I'm doing OK?

2021-02-15 Thread Chris Green
This isn't specifically mutt but it's definitely to do with managing mail and there's lots of knowledgeable people here. I currently have the following two lines in my crontab to delete old mails in my junk catching directories, is it OK/safe to do it like this? 20 02 * * * find /home/chris/