How to get the list of messages resulting a search (without display)

11 views
Skip to first unread message

Nicolas P. Rougier (gmail)

unread,
Apr 11, 2025, 11:30:23 AMApr 11
to mu-di...@googlegroups.com

hi all,

I'm playing with an alternative layout for mu4e and I've already hacked
quite a lot the mu4e-header-info-custom but I realized it might be
easier to start from the list of messages (resulting from a search)
instead such that I can display them without too much hacks.

What is the best way to get directly this list ? I tried to follow tracks
from the mu4e-search command but then I get lost in all the different
call / indirections.

Nicolas

--
Nicolas P. Rougier —— www.labri.fr/perso/nrougier
Institute of Neurodegenerative Diseases, Bordeaux

Dirk-Jan C. Binnema

unread,
Apr 11, 2025, 12:56:41 PMApr 11
to mu-di...@googlegroups.com
Hi Nicolas,

On Friday Apr 11 2025, Nicolas P. Rougier (gmail) wrote:

> hi all,
>
> I'm playing with an alternative layout for mu4e and I've already hacked
> quite a lot the mu4e-header-info-custom but I realized it might be
> easier to start from the list of messages (resulting from a search)
> instead such that I can display them without too much hacks.
>
> What is the best way to get directly this list ? I tried to follow tracks
> from the mu4e-search command but then I get lost in all the different
> call / indirections.

Yeah, it's considered internal to mu4e, so there's no "royal" way to get
those messages (it has changed a few times as well for optimization
purposes).

But for some experimentation perhaps you can get away with some custom
value for the semi-internal mu4e-headers-append-func; however, note that
this is not meant as a customization point, so YMMV.

Kind regards,
Dirk.

--
Dirk-Jan C. Binnema Helsinki, Finland
e:dj...@djcbsoftware.nl w:www.djcbsoftware.nl
gpg: 6987 9CED 1745 9375 0F14 DA98 11DD FEA9 DCC4 A036

Nicolas P. Rougier (gmail)

unread,
Apr 11, 2025, 3:28:54 PMApr 11
to Dirk-Jan C. Binnema, mu-di...@googlegroups.com
Thanks, I'll use that as a start. Default value is
mu4e~headers-append-handler (msglst), does that mean msglst is the full
list for a search or is it called several times per search?
Reply all
Reply to author
Forward
0 new messages