Sunday, January 5, 2014

How to Disable 'Sort by Subject' in Roundcube Webmail

In Roundcube Webmail, accidentally clicking on the Subject column header triggers an expensive mailbox-wide sort operation. On large mail folders with thousands of messages, sorting by subject can freeze the UI and create heavy server load. Here is how to disable sorting on the Subject column while keeping date and status sorting intact.

File: program/steps/mail/func.inc • Target: Subject header click handler

Step-by-Step Fix

  1. Open program/steps/mail/func.inc in your text editor.
  2. Search for ./#sort (typically around line 440–445).
  3. Locate the onclick attribute generation:
    'onclick' => 'return ' . JS_OBJECT_NAME . ".command('sort','" . $col . "',this)"
  4. Replace it with a no-op handler for the subject column (or globally):
    'onclick' => 'return true'

Save the file. Clicking the Subject column header will no longer initiate slow sorting queries.

How Google Antigravity Solved the Mysterious NVIDIA Sleep Reboot on My Dell Inspiron 7567 (Ubuntu Linux)

If you run modern Ubuntu or Linux on a Dell Inspiron 15 Gaming (7567) or a similar 7th-gen Intel laptop paired with an NVIDIA GeForce GTX ...