Virtual "all mails" folder in Dovecot to improve search
necrevistonnezr last edited by necrevistonnezr
Based on the feedback I received to a request for Snappymail (https://github.com/the-djmaze/snappymail/issues/196) :
The virtual folder must be configured in Dovecot and not through SnappyMail.
The other is implemented and hopefully works when mailserver supports it.
There is no other option as searching in multiple folders through php requires many calls to imap server and then results must be combined.
Maybe in a future version with caching it might be done.
I suggest adding the Virtual Folder plugin to Dovecot (https://doc.dovecot.org/configuration_manual/virtual_plugin/)
This way, it seems to be possible to add a virtual "all mail" folder that allows (web) mail clients to search all mail at once as several don't seem to have implemented a account-wide search for mails.
Thanks for bringing this up, since I am interested in this as well. Annoys me to great extent that K-9 search does not work despite us adding solr support.
Last I checked, I thought this was a client side limitation. They had to implement IMAP4 Multimailbox SEARCH Extension. But reading further, it seems dovecot doesn't support this.
I found this really cool page saying which imap server supports what - https://www.imapwiki.org/Specs
This whole thread is an interesting read - https://dovecot.org/pipermail/dovecot/2020-May/118823.html