Roundcube Community Forum

 

Searching for X-Headers

Started by gdimakop, May 16, 2017, 08:49:05 AM

Previous topic - Next topic

gdimakop

Hi everyone,

Can I search for X- custom headers using the default search tool? I know, I can check the "Entire message" but we explicitly want to search for that header.

RC 1.2.4

Thank you.
GD

rm13

That's the only option in the default search tool. You could look into a plugin.

gdimakop

Hi again,

For searching for custom X-headers (e.g. x-sender)

I found out that I only have to add the line below in skins/larry/templates/mail.html within id="searchmenu" <div>

<li role="menuitem"><label><input type="checkbox" name="s_mods[]" value="x-sender" id="s_mod_x-sender" onclick="UI.set_searchmod(this)" /> <span><roundcube:label name="sender" /></span></label></li>

Is there a nice way extending mail.html template without injecting 'custom' lines in default one?

Thank you