Roundcube Community Forum

Release Support => Release Discussion => Topic started by: gdimakop on May 16, 2017, 08:49:05 AM

Title: Searching for X-Headers
Post by: gdimakop on May 16, 2017, 08:49:05 AM
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
Title: Re: Searching for X-Headers
Post by: rm13 on May 16, 2017, 07:06:14 PM
That's the only option in the default search tool. You could look into a plugin.
Title: Re: Searching for X-Headers
Post by: gdimakop on May 26, 2017, 08:51:05 AM
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