Skip to content
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

Multi-account MailMover #324

Open
kirelagin opened this issue Apr 25, 2022 · 2 comments
Open

Multi-account MailMover #324

kirelagin opened this issue Apr 25, 2022 · 2 comments

Comments

@kirelagin
Copy link

As a follow-up to #162, I am looking to setting up notmuch/afew with multiple accounts (within the same maildir), as in the referenced issue. FolderNameFilter works really well, as described there, however I am not satisfied with MailMover.

That’s more of a question rather than a specific proposal. In my case, I am using MailMover to sync tags back to directories (like, Junk and Archive), I imagine, similar to how many other people do this. So, what I’d like to have is an easy way to say that INBOX = 'tag:spam':Junk 'NOT tag:inbox':Archive etc. should apply per-account. IIUC, currently, my only option is to copy-paste each group of rules for each account.

Any ideas on how this can be improved? I mean, adding ad-hoc support specifically for this use-case to MailMover is probably pretty straightforward, but I am not sure whether this would be desired. Maybe there are some more general approaches.

@kirelagin kirelagin changed the title Per-account MailMover with multiple accounts Multi-account MailMover Apr 25, 2022
@GuillaumeSeren
Copy link
Collaborator

GuillaumeSeren commented Apr 26, 2022

Hey @kirelagin ,

So, what I’d like to have is an easy way to say that INBOX = 'tag:spam':Junk 'NOT tag:inbox':Archive etc. should apply per-account. IIUC, currently, my only option is to copy-paste each group of rules for each account.

Pretty-much yes, there is also a way to use disctinct config files but there is still duplication of the INBOX query,
here is an example of what I use (I define a section like this per mail where the mover is working):

# Pro
Pro/INBOX = 'tag:spam':Pro/spam 'tag:sent':Pro/sent
Pro/archive = 'tag:':Pro/INBOX 'tag:spam':Pro/spam 'tag:sent':Pro/sent
Pro/spam = 'NOT tag:spam':Pro/INBOX 'tag:sent':Pro/sent
Pro/sent = 'NOT tag:sent':Pro/INBOX 'tag:spam':Pro/spam

@mjg
Copy link
Contributor

mjg commented Sep 13, 2022

Having to do this for each account for many folders is a bit annoying, yes.
On the other hand: You have to do it once (for setup) only, and different accounts (mail providers) tend to have different defaults such as junk vs spam, upper or lower case, English or translated. In this case you have to do it separately anyways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants