Bug 2810

Summary: "QuickSearch Button Bar" plugin
Product: Claws Mail (GTK 2) Reporter: Abhay S. Kushwaha <clawsmail>
Component: OtherAssignee: users
Status: NEW ---    
Severity: enhancement CC: removed-gdpr
Priority: P3    
Version: 3.9.1   
Hardware: PC   
OS: All   

Description Abhay S. Kushwaha 2012-11-20 15:09:20 UTC
In more ideas on how to get things done even quicker, what would be nice if the quicksearch bar can be enhanced with a plugin to add a tool bar above or below it which stores "global" or "folder-specific" quicksearch rules assigned to buttons. So shifting from different "views" of a message list is as simple as clicking on buttons when this bar is displayed.
Comment 1 Holger Berndt 2012-11-21 15:01:07 UTC
You can use the python plugin to script some shortcuts. Creating a global quicksearch rule is quite easy:

1. Load the Python plugin
2. Choose Tools -> Python scripts -> Browse 
   (or navigate your file browser to ~/.claws-mail/python-scripts manually)
3. Go into the "main" subdirectory
4. Create a file called "qs-from-me" with the following line as content:
   clawsmail.quicksearch_search("clawsmail@kushwaha.com", clawsmail.QUICK_SEARCH_FROM)
5. Back in Claws Mail, choose Tools -> Python scripts -> Refresh
   (or restart Claws Mail)

Now, you have a menu item under Tools -> Python scripts that triggers a specific quicksearch. You can assign a shortcut to it, or put it into the main toolbar at your liking.

If required, the script could be extended to e.g. pop up a list of quicksearch rules specific to the currently selected folder, or whatever. But that would require some scripting knowledge.
Comment 2 Abhay S. Kushwaha 2012-11-27 09:16:42 UTC
Thanks Holger. That's definitely a possible workaround, but it would still be nice to have this in the app that is easier for users to configure without requiring python or learning scripting. I'm sure this enhancement, once implemented, will prove to be a very user-friendly way of achieving faster switching between quicksearch filters.
Comment 3 Abhay S. Kushwaha 2018-09-20 09:13:58 UTC
*** Bug 4091 has been marked as a duplicate of this bug. ***