unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* moving mail to another maildir based on tags and renaming files
@ 2022-05-23 21:02 erik colson
  2022-05-23 21:19 ` inwit
  2022-05-24  0:48 ` João Pedro
  0 siblings, 2 replies; 9+ messages in thread
From: erik colson @ 2022-05-23 21:02 UTC (permalink / raw)
  To: notmuch

Hi,

I would like to move mails selected by a notmuch query
(i.e. "tag:movethismailtobox-ThisBox") to *ThisBox*
I need this to somewhat still have usable access through my phone IMAP
client.

I am actually using afew already, but as I have 1000+ mailboxes it is
unmaintainable to create the rules manually.

So I am thinking to either modify the afew-configuration file with
another script (=not nice) or either write a script myself.

It wouldn't be very difficult to generate the necessary
  notmuch search --output=files ... | xargs mv ...
  
but, there is a catch: I use isync to synchronize my mails with my IMAP
server and therefor I must rename every message file when moving it.  As
I am not enough aware of maildir and IMAP servers, I am pretty ignorant
to what the new filename should be.

So I wanted to check if somebody else already wrote some
bash/perl/whatever script which handles this ?

thx
-- 
erik colson

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-05-24 14:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-23 21:02 moving mail to another maildir based on tags and renaming files erik colson
2022-05-23 21:19 ` inwit
2022-05-23 22:01   ` erik colson
2022-05-24  9:15     ` inwit
2022-05-24  9:45       ` erik colson
2022-05-24 12:26         ` David Bremner
2022-05-24 14:08           ` erik colson
2022-05-24  0:48 ` João Pedro
2022-05-24  8:49   ` erik colson

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).