Re: Slightly OT: I'm looking for a tool to merge maildirs

2022-01-24 Thread Claus Assmann
I recently wrote something like that but for mailboxes.  It uses
formail etc and requires that each mail has a Message-Id (which
some didn't have...).
Look into the -D and -s options of formail, maybe it works for
maildirs too?


Re: Slightly OT: I'm looking for a tool to merge maildirs

2022-01-24 Thread Chris Green
On Mon, Jan 24, 2022 at 10:34:39AM +1100, raf wrote:
> On Mon, Jan 24, 2022 at 10:24:41AM +1100, Cameron Simpson  
> wrote:
> 
> > On 23Jan2022 10:46, Chris Green  wrote:
> > >This is a bit off topic for mutt specifically but it's about doing
> > >things to the mail I read using mutt, so it's not *very* OT.  :-)
> > 
> > Had you considered a shell script which invokes mutt with -e to copy 
> > messages tagged by criteria from a mail folder to your archive folder?
> > 
> > Cheers,
> > Cameron Simpson 
> 
> That sounds clever and simple. I was thinking of
> https://github.com/lefcha/imapfilter but you'd need to
> know lua, and have imap access (rather than just file
> system access) to both sets of messages.
> 
Yes, there's quite a few similar imap/maildir utilities but they mostly
seem aimed at pulling stuff off a [remote] IMAP server to an archive
locally.  I've looked at several in my search.

-- 
Chris Green


Re: Slightly OT: I'm looking for a tool to merge maildirs

2022-01-24 Thread Chris Green
On Mon, Jan 24, 2022 at 10:24:41AM +1100, Cameron Simpson wrote:
> On 23Jan2022 10:46, Chris Green  wrote:
> >This is a bit off topic for mutt specifically but it's about doing
> >things to the mail I read using mutt, so it's not *very* OT.  :-)
> 
> Had you considered a shell script which invokes mutt with -e to copy 
> messages tagged by criteria from a mail folder to your archive folder?
> 
That's a good idea, thank you.  I have done things like this before
(i.e. an mbox to maildir script using mutt), not very fast but who
cares, it can take some hours for all I care.

I think it may need a separate process to de-duplicate the destination
but that's OK.

-- 
Chris Green