Thunderbird's Search Messages Dialog Box

User Help for Mozilla Thunderbird
User avatar
Oracle68
Posts: 79
Joined: November 3rd, 2005, 3:09 pm

Thunderbird's Search Messages Dialog Box

Post by Oracle68 »

I use the Search Messages function a lot. Right clicking on a folder in Thunderbird, you get the option of then selecting Search Messages. The Search Messages Dialog Box comes up.

In this dialog box, there is a menu in the Results area. It has Subject, Date, Search by Corespondents, Location and a little box that allows you to customize the Menu.

I am trying to figure out how to add menu buttons permanently. I would like to permanently add READ to this menu.

How do I do it?

I have tried searching the web (I get millions of responses, none relevant in the first 10 pages). I have tried searching the Forum (I get thousands of pages). I am now asking in a new thread as I cannot find anything that relates to what I want (might be a wording issue on my part).

Would someone please help me?

Thanks in advance

Ed
The Dawg
Be The Man You Dog Thinks You Are!!
User avatar
DanRaisch
Moderator
Posts: 127187
Joined: September 23rd, 2004, 8:57 pm
Location: Somewhere on the right coast

Re: Thunderbird's Search Messages Dialog Box

Post by DanRaisch »

As far as I am aware that change would only be possible by tweaking the code for the program itself.
User avatar
Oracle68
Posts: 79
Joined: November 3rd, 2005, 3:09 pm

Re: Thunderbird's Search Messages Dialog Box

Post by Oracle68 »

DanRaisch wrote:As far as I am aware that change would only be possible by tweaking the code for the program itself.

Since I am able to adjust this menu using the Customize Menu button, it stands to reason that one should be able to add one of those Customize(d) Buttons permantly.

It is really annoying to have to customize the menu EVERY time I use this function.

Ed
The Dawg
Be The Man You Dog Thinks You Are!!
User avatar
Oracle68
Posts: 79
Joined: November 3rd, 2005, 3:09 pm

Re: Thunderbird's Search Messages Dialog Box

Post by Oracle68 »

Oracle68 wrote:
DanRaisch wrote:The results of the search are displayed dynamically so there is no way to retain the user's selection of column headings. But you don't need the button on the toolbar to change the status of a message from Read to Unread or vice versa. Just select the message in the list and press the "M" key to toggle from the current state to the opposite. That is, if the message is marked as Read, pressing "M" will result in the message being marked as Unread.
I just found this in MY messages dated Feb Thu 19th 2015 4:18pm. It appears that I have asked this question before. Has the answer changed?

Ed
The Dawg
Be The Man You Dog Thinks You Are!!
User avatar
DanRaisch
Moderator
Posts: 127187
Joined: September 23rd, 2004, 8:57 pm
Location: Somewhere on the right coast

Re: Thunderbird's Search Messages Dialog Box

Post by DanRaisch »

Not that I am aware of.
User avatar
Oracle68
Posts: 79
Joined: November 3rd, 2005, 3:09 pm

Re: Thunderbird's Search Messages Dialog Box

Post by Oracle68 »

DanRaisch wrote:Not that I am aware of.

Thank you Dan!
The Dawg
Be The Man You Dog Thinks You Are!!
morat
Posts: 6404
Joined: February 3rd, 2009, 6:29 pm

Re: Thunderbird's Search Messages Dialog Box

Post by morat »

You would need to create an extension. (too difficult for a normal user)

Reference
http://dxr.mozilla.org/comm-esr52/searc ... hDialog.js
http://dxr.mozilla.org/comm-esr52/searc ... Dialog.xul
User avatar
Oracle68
Posts: 79
Joined: November 3rd, 2005, 3:09 pm

Re: Thunderbird's Search Messages Dialog Box

Post by Oracle68 »

morat wrote:You would need to create an extension. (too difficult for a normal user)

Reference
http://dxr.mozilla.org/comm-esr52/searc ... hDialog.js
http://dxr.mozilla.org/comm-esr52/searc ... Dialog.xul
Apparently, I am not a "normal" user. LOL I don't understand the code snipits or what to change them to.

The second one seems to be a Chrome reference - at least Chrome is in the "path"
The Dawg
Be The Man You Dog Thinks You Are!!
morat
Posts: 6404
Joined: February 3rd, 2009, 6:29 pm

Re: Thunderbird's Search Messages Dialog Box

Post by morat »

I can set the column states with the userChromeJS extension.

Code: Select all

/* Thunderbird userChrome.js */

(function () {

if (location == "chrome://messenger/content/messenger.xul") {}
if (location == "chrome://messenger/content/messageWindow.xul") {}
if (location == "chrome://messenger/content/messengercompose/messengercompose.xul") {}

if (location == "chrome://messenger/content/SearchDialog.xul") {

  setTimeout(function () {
    gFolderDisplay.setColumnStates({
      subjectCol: { visible: true },
      correspondentCol: { visible: Services.prefs.getBoolPref("mail.threadpane.use_correspondents") },
      senderCol: { visible: !Services.prefs.getBoolPref("mail.threadpane.use_correspondents") },
      unreadButtonColHeader: { visible: true }, // Read column
      dateCol: { visible: true },
      locationCol: { visible: true },
    }); 
  }, 1000);

}

})();
http://userchromejs.mozdev.org/
http://userchromejs.mozdev.org/faq.html

Instructions:

1. install userChromeJS extension
2. close email client
3. create or edit the userChrome.js file in the chrome folder in the profile folder
4. open email client with the -purgecaches command line option

i.e.

thunderbird.exe -purgecaches
ThunderbirdPortable.exe -purgecaches

You have to purge the caches only after creating or editing the userChrome.js file.

userChromeJS 2.0 (signed)
Thunderbird 52.5.0
Windows 7 SP1 32-bit
User avatar
Oracle68
Posts: 79
Joined: November 3rd, 2005, 3:09 pm

Re: Thunderbird's Search Messages Dialog Box

Post by Oracle68 »

[quote="morat"]I can set the column states with the userChromeJS extension.

Am I wrong in thinking that you are now talking Chrome, as in the Google Chrome Browser (which I only use except when Firefox won't work with a website)?

I am not opposed to using this but ....Old School Security Nut here....

Ed
The Dawg
Be The Man You Dog Thinks You Are!!
User avatar
DanRaisch
Moderator
Posts: 127187
Joined: September 23rd, 2004, 8:57 pm
Location: Somewhere on the right coast

Re: Thunderbird's Search Messages Dialog Box

Post by DanRaisch »

Am I wrong in thinking that you are now talking Chrome, as in the Google Chrome Browser
Yes you are. The reference here is to chrome as in elements that are be used to change the way Mozilla applications' interface looks. morat is speaking of an extension that facilitates the user of that functionality.
See this article for more information: http://kb.mozillazine.org/index.php?tit ... ntable=yes
morat
Posts: 6404
Joined: February 3rd, 2009, 6:29 pm

Re: Thunderbird's Search Messages Dialog Box

Post by morat »

Oracle68 wrote:Old School Security Nut
userChromeJS 2.0 is signed by Mozilla.

Extension Signing
http://wiki.mozilla.org/Add-ons/Extension_Signing

If I try to install an unsigned extension like userChromeJS 1.7 in Firefox ESR 52, then I get the following error message.
This add-on could not be installed because it has not been verified.
Thunderbird does not require extensions to be signed, but I would trust signed extensions that work in Firefox.

MD5, SHA1, SHA256 for userchromejs-2.0-sm+tb+fx.xpi file:

371759c10b3553e8b04a11c5e43a9a3a
3cccc21f3c5798c4f663ae1d754143ad0a446b8a
c72bdf4c4d815ee29bacaab54368ffc242d0e970f8ca9ff21f2d5901f1d891ac

userChrome.js
http://kb.mozillazine.org/index.php?title=UserChrome.js
User avatar
Oracle68
Posts: 79
Joined: November 3rd, 2005, 3:09 pm

Re: Thunderbird's Search Messages Dialog Box

Post by Oracle68 »

DanRaisch wrote:
Am I wrong in thinking that you are now talking Chrome, as in the Google Chrome Browser
Yes you are. The reference here is to chrome as in elements that are be used to change the way Mozilla applications' interface looks. morat is speaking of an extension that facilitates the user of that functionality.
See this article for more information: http://kb.mozillazine.org/index.php?tit ... ntable=yes

Ok, THanks....I did not know that.

Ed
The Dawg
Be The Man You Dog Thinks You Are!!
User avatar
Oracle68
Posts: 79
Joined: November 3rd, 2005, 3:09 pm

Re: Thunderbird's Search Messages Dialog Box

Post by Oracle68 »

DanRaisch wrote:
Am I wrong in thinking that you are now talking Chrome, as in the Google Chrome Browser
Yes you are. The reference here is to chrome as in elements that are be used to change the way Mozilla applications' interface looks. morat is speaking of an extension that facilitates the user of that functionality.
See this article for more information: http://kb.mozillazine.org/index.php?tit ... ntable=yes

LMAO

To create this file, use your operating system tools.

Go to your profile folder. Then go to the chrome folder there, creating it if necessary. In the chrome folder, create a plain text file
named userChrome.css. Copy and paste the following line as the first line of the file (if it doesn't already exist). This is called the
namespace line and you must not alter it. Anything you add later on should always be below it

@namespace url("http://www.mozilla.org/keymaster/gateke ... s.only.xul");

Is this for real?! [there.is.only.xul]
The Dawg
Be The Man You Dog Thinks You Are!!
User avatar
Oracle68
Posts: 79
Joined: November 3rd, 2005, 3:09 pm

Re: Thunderbird's Search Messages Dialog Box

Post by Oracle68 »

morat wrote:
Oracle68 wrote:Old School Security Nut
userChromeJS 2.0 is signed by Mozilla.

Extension Signing
http://wiki.mozilla.org/Add-ons/Extension_Signing

If I try to install an unsigned extension like userChromeJS 1.7 in Firefox ESR 52, then I get the following error message.
This add-on could not be installed because it has not been verified.
Thunderbird does not require extensions to be signed, but I would trust signed extensions that work in Firefox.

MD5, SHA1, SHA256 for userchromejs-2.0-sm+tb+fx.xpi file:

371759c10b3553e8b04a11c5e43a9a3a
3cccc21f3c5798c4f663ae1d754143ad0a446b8a
c72bdf4c4d815ee29bacaab54368ffc242d0e970f8ca9ff21f2d5901f1d891ac

userChrome.js
http://kb.mozillazine.org/index.php?title=UserChrome.js
Morat, you are advocating the .js file with extension and Dan is advocating the .css with - http://www.mozilla.org/keymaster/gateke ... s.only.xul" in it.

Are they the same thing?

Ed
The Dawg
Be The Man You Dog Thinks You Are!!
Post Reply