aboutsummaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorinwit <inwit@sindominio.net>2024-06-29 17:14:22 +0200
committerRobin Jarry <robin@jarry.cc>2024-08-20 11:54:34 +0200
commit8c36bb25b4989677d60b8282a565f68c8b5cee21 (patch)
tree72ef6f7c580217227b172adf5a4ca691151ce49e /commands
parentb94b4c00c9c96355c411881b5e5cc42c5f83d159 (diff)
downloadaerc-8c36bb25b4989677d60b8282a565f68c8b5cee21.tar.gz
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 <inwit@sindominio.net> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'commands')
-rw-r--r--commands/account/search.go9
1 files changed, 5 insertions, 4 deletions
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 {