{{ message }}
Allow to tag sent messages with same tags as message being replied to#581
Closed
larskotthoff wants to merge 3 commits into
Closed
Allow to tag sent messages with same tags as message being replied to#581larskotthoff wants to merge 3 commits into
larskotthoff wants to merge 3 commits into
Conversation
gauteh
reviewed
Oct 21, 2018
gauteh
left a comment
Member
There was a problem hiding this comment.
I think this looks good, see inline comment.
Member
There was a problem hiding this comment.
Probably better to use on_message here, takes care of cleaning up the parent_msg. Might also be better to instantiate a NotmuchMessage on parent_msg, there is already a get_tags function which is more robust. NotmuchMessage should be cheap objects.
Contributor
Author
There was a problem hiding this comment.
Thanks, I'll have a look at that.
Contributor
2 tasks
Member
|
Lars Kotthoff writes on October 20, 2018 21:56:
This PR introduces special values to `accounts.<account>.additional_sent_tags`, namely '*' (apply all tags that the message being replied to, if any, has), and '-<tag>' (to exclude tags from being applied). For example, the option "foo,*,-attachment" applies the tag "foo" and any tags the message being replied to has, except for "attachment".
Does the syntax also work for the general `mail.sent_tags`?
|
Contributor
Author
|
Good idea, I'll add that. |
Contributor
Author
|
I've changed the code to use |
Member
|
Lars Kotthoff writes on October 22, 2018 18:04:
I've changed the code to use `NotmuchMessage`. Turns out that this syntax for the general `mail.sent_tags` was already supported because I'm doing the processing after merging in those tags.
Merged, thanks. Sorry for the delay. Could you please update the
configuration reference for the two relevant config options?
|
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This PR introduces special values to
accounts.<account>.additional_sent_tags, namely*(apply all tags that the message being replied to, if any, has), and-<tag>(to exclude tags from being applied). For example, the option "foo,*,-attachment" applies the tag "foo" and any tags the message being replied to has, except for "attachment".