New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need option to disable copying per multi-match in MailMover #242
Comments
Hey, Yes I use it mostly to move, according to the tag of a message (unread, spam, archived) and to sync its state to the imap server, its been in a refactoring discussion for some time now, so ideas and patches are welcome.
You can do that by using more precise query, as you are showing at the begin at the beginning,
This is actually the behavior of the proposal I've made for the mailmover(#189), feel |
Exactly, still your example still lacks a little to showcase the scale of the problem :) I had seen #189 but it isn't obvious from description if it allows to accomplish what I thought for. |
I see some huge activity in commits history. |
Recent commits went into cleaning things up (dropping py2 support, implementing some best practices), and adding some tests for some aspects of MailMover.
I think the PR needs a rebase on latest master, and some more tests.
|
Copying mails matching multiple queries is supposed to be killer feature, but it creates too much frustration for me. In my setup I manage every action-item in
=INBOX
and expect auto-archiving of full threads, when I removeunread
andflagged
tags from ALL mails in these threads.This is what I have configured in notmuch:
And that's how I'm forced to use it in
afew
:As you can see -- it's a hellish labour to ensure all tags are independent.
I want option to disable copying messages into two matching locations -- and apply rules line by line.
So I could simplify query to simply:
To implement this,
afew
must shadow select emails to automatically prevent considering them for next query automatically. Or simply execute each line one by one and immediately move messages and update notmuch db -- to prevent next line matching already moved messages.Alternative variant, to accomodate both worlds -- copying and not -- expects to extend config format -- so queries inside single assignments will copy, but next assignments will be executed only after full DB sync.
I.e. first query allows copying, but next one will work with clean state after first completes.
It's a pity, that you can't have same key multiple times in config.
What can we do to achieve desired option?
The text was updated successfully, but these errors were encountered: