Author Topic: Searching for X-Headers  (Read 3728 times)

Offline gdimakop

  • Newbie
  • *
  • Posts: 3
Searching for X-Headers
« 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

Offline rm13

  • Full Member
  • ***
  • Posts: 129
Re: Searching for X-Headers
« Reply #1 on: May 16, 2017, 07:06:14 PM »
That's the only option in the default search tool. You could look into a plugin.

Offline gdimakop

  • Newbie
  • *
  • Posts: 3
Re: Searching for X-Headers
« Reply #2 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