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

Multiple accounts with afew #162

Closed
dchrzanowski opened this issue Aug 20, 2017 · 7 comments
Closed

Multiple accounts with afew #162

dchrzanowski opened this issue Aug 20, 2017 · 7 comments

Comments

@dchrzanowski
Copy link

One thing I am missing is to setup afew to move messages between folders after tagging. It all works fine with just one account under ~/Mail, however, I want to operate on 3 separate accounts which would be ~/Mail/Account1 ~/Mail/Account2 ~/Mail/Account3

How do I configure afew to move messages based on tags in specific accounts?

@flokli
Copy link
Member

flokli commented Aug 22, 2017

I do have a similar setup with multiple accounts, and add account-specific tags via FolderNameFilter.

I use a combination of server-side initial sorting via sieve, and afews MailMover to move mails matching a specific query to another folder (things like moving manually tagged junk to a junk folder). This should also work across accounts, as its just a separate maildir (although I didn't test that on my own)

Please see the docs and report back if something is unclear.

@flokli flokli closed this as completed Aug 22, 2017
@dchrzanowski
Copy link
Author

dchrzanowski commented Aug 22, 2017

Ok I'll look into setting up FolderNameFilter this seems exactly what I am after. The docs lack an example of how to set this up for multiple accounts. It would be handy to have it there.

So if I use maildir_separator = / as the default delimiter then how do I reference the tags in the mail mover? Account1INBOX Account1-INBOX Account1/INBOX

Thank you very much for your help!

@flokli
Copy link
Member

flokli commented Aug 22, 2017

account1/INBOX: 'tag:foo':account2/foodir

should move all mails tagged with foo from account1/INBOX to account2/foodir.

@flokli
Copy link
Member

flokli commented Aug 22, 2017

@Grimscythe1983 In case you want to improve the documentation here, pull requests are warmly welcome :-)

@dchrzanowski
Copy link
Author

I am going to test the multiple account setup as soon as I'll get a chance and I'll write up some docs on that. No bother ;-)

@flokli
Copy link
Member

flokli commented Aug 23, 2017

Great, thanks!

@dchrzanowski
Copy link
Author

I am pleased to inform that the FolderNameFilter works like a charm. I should have some time over the weekend to create a section in the docs for that.

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

2 participants