mu icon indicating copy to clipboard operation
mu copied to clipboard

[mu4e rfe] Query API for third-party extensions

Open xzz53 opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. Since mu 1.6, mu4e-alert turned effectively unusable, because query results obtained by calling mu executable and those reported in mu4e fell out of sync (at least read/unread status).

Describe the solution you'd like It would be good to have an API for executing queries which could be used by third-party extensions. Basically something along the lines of mu4e~headers-search-execute, but passing results to a user-provided callback instead of displaying them in a buffer.

Describe alternatives you've considered At present a gross hack is used: mu4e~proc-find is called directly and handlers are overridden for the duration of the call. This is obviously far from ideal.

xzz53 avatar Feb 13 '22 17:02 xzz53

I'll consider it, but I'm reluctant to do so, since it makes future development much harder (having to consider third-party packages and whatever details they depend on).

djcb avatar Feb 18 '22 04:02 djcb

Note, at least mu4e (10.x) has much of the mu4e-alert functionality built-in now. Anyway, such an API is not planned for the foreseeable future, so closing this.

djcb avatar Aug 03 '23 21:08 djcb