Roundcube Community Forum

 

How to setting message preview show full headers?

Started by kec, October 20, 2014, 02:27:58 AM

Previous topic - Next topic

kec

Hi All

I am roundcube  administrator in my company.
We want to modify message preview header to show all information in default values.
I have modified roundcubemail/skins/larry/uj.js

@@ -152,6 +152,9 @@ function rcube_mail_ui()
           .addEventListener('afterhide-headers', function() { layout_messageview(); });
         $('#previewheaderstoggle').click(function(e){ toggle_preview_headers(); return false });

+ // force all headers on
+ $('#preview-allheaders').attr('display', 'table');
+
         // add menu link for each attachment
         $('#attachment-list > li').each(function() {
           $(this).append($('<a class="drop"></a>').click(function() { attachmentmenu(this); }));



To setting default message preview with full headers
But,It doesn't work.

Anyone know how to setting or modify it ?


JohnDoh

The option to show all headers in the preview pane is remembered per user. to expand it default, in skins/larry/uj.js, try adding:


// show all headers in preview pane by default
if (key == 'previewheaders' && (prefs[key] == undefined || prefs[key] == null)) {
  prefs[key] = 1;
}


at the end of the get_prefs() function, around line 94 in 1.0.3.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more...