From 8c36bb25b4989677d60b8282a565f68c8b5cee21 Mon Sep 17 00:00:00 2001 From: inwit Date: Sat, 29 Jun 2024 17:14:22 +0200 Subject: search: allow searching for forwarded messages Commands :search and :filter allow the use of certain flags (read, replied...) as search criteria. Allow for the use of the forwarded flag too. Changelog-added: Forwarded messages can now be searched for and filtered in notmuch and maildir. Signed-off-by: inwit Acked-by: Robin Jarry --- commands/account/search.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'commands/account/search.go') diff --git a/commands/account/search.go b/commands/account/search.go index d9dfc684..5c2eaec7 100644 --- a/commands/account/search.go +++ b/commands/account/search.go @@ -87,10 +87,11 @@ func (s *SearchFilter) ParseUnread(arg string) error { } var flagValues = map[string]models.Flags{ - "seen": models.SeenFlag, - "answered": models.AnsweredFlag, - "flagged": models.FlaggedFlag, - "draft": models.DraftFlag, + "seen": models.SeenFlag, + "answered": models.AnsweredFlag, + "forwarded": models.ForwardedFlag, + "flagged": models.FlaggedFlag, + "draft": models.DraftFlag, } func (s *SearchFilter) ParseFlag(arg string) error { -- cgit