Repository navigation
Conversation
The message list's and the reader's context menus get "Create a filter from this email". It opens the filter editor with the sender's address and the subject, minus any leading Re:/Fwd:/Fw:, filled in as two conditions that both have to match.
hyprlab
added a commit
that referenced
this pull request
Oct 12, 2026
Changes from the pull request: the entry reads "Create Filter from Message…", in title case like the menu's other entries. Co-Authored-By: Fabio Rotondo <2844375+fsoft72@users.noreply.github.com>
Closed
Owner
|
Agentic reply: Your feature is in the 1.44.0-beta.7 release (x86_64 only). The one change: the entry reads "Create Filter from Message…", in title case like the other entries in those menus. Please test it there and report anything that doesn't look right. It reaches the stable channel with the next stable release. The beta build is in the repo now: |
Closed
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.
What
A Create a filter from this email entry in the message context menu, both in the message list and in the reader. It opens the filter editor on a new rule already filled in from the message:
Re:,Fwd:orFw:(repeated and in any case), so a whole thread matches;The user then picks the action (move to a folder, tag, ...) and saves. The rule is added as a new one and never overwrites an existing rule.
Why
Building a filter for "mail like this one" meant copying the sender and subject by hand into Settings → Filters. Starting from the message is quicker and avoids typos.
How
src/ui/message_row.rs: newRowAction::CreateFilter.src/ui/message_list.rs,src/app.rs: the entry, with thefilter-foldericon, sits next to Add Sender to Contacts in both menus.src/config.rs:FilterRule::draft_from_message()builds the draft, andstrip_reply_prefixes()cleans the subject. An empty subject adds no Subject condition.src/ui/accounts.rs: newAccountsInput::AddFilterFrom(rule).open_filter_page()takes an optional prefill that fills the editor the same way editing does, but saves as a new rule.src/app.rs: the action opens Settings on the Filters page and sends the draft to the accounts panel.po/hylki.pot: the new string.CHANGELOG.md: one entry.Testing
cargo test draft_filter: 3 passed (draft_filter_matches_sender_and_subject,draft_filter_strips_reply_and_forward_prefixes,draft_filter_skips_an_empty_subject).