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

FolderNameFilter: support messages that exist in multiple locations #152

Closed
wants to merge 1 commit into from

Conversation

wyleyr
Copy link
Contributor

@wyleyr wyleyr commented Jul 20, 2017

In handle_message, tag a message on the basis of the folder names
in all the filesystem paths for that message.

This improves support in particular for GMail, where the same message
may be stored in several different directories. Notmuch knows to
group these together, and notmuch.message.Message.get_filenames()
returns all the paths for the given message. This change simply runs
the previous code in a loop over these paths.

In handle_message, tag a message on the basis of the folder names
in *all* the filesystem paths for that message.

This improves support in particular for GMail, where the same message
may be stored in several different directories.  Notmuch knows to
group these together, and notmuch.message.Message.get_filenames()
returns all the paths for the given message.  This change simply runs
the previous code in a loop over these paths.
@wyleyr
Copy link
Contributor Author

wyleyr commented Jul 20, 2017

Oh shoot, I see that a very similar PR is already open: #145. My patch takes a different (slightly more naive) approach. Closing...sorry for the noise.

@GuillaumeSeren
Copy link
Collaborator

Hey @wyleyr , 🍺
thank you for the PR, I rebased #74 into #145 (on latest master),
but lack a bit on reviewers if want you can have a look and add your feedback.

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

Successfully merging this pull request may close these issues.

None yet

2 participants