Move to/Recent: more folders [SOLVED]

Discussion of general topics about Mozilla Thunderbird
Locked
User avatar
Freee!!
Posts: 15562
Joined: January 28th, 2005, 5:52 am
Location: Home, with my son!
Contact:

Move to/Recent: more folders [SOLVED]

Post by Freee!! »

Does anybody know where to change (increase) the number of folders shown in the Recent list when moving (or copying) messages in Thunderbird?

I found that I have about 17 folders I daily move messages to and it is getting to be a bit annoying that just when I am about to move a message to a certain folder, that folder has just dropped out of the Recent list.

Thunderbird 17.0.6 on Windows 7 (64 bit).
Last edited by Freee!! on May 26th, 2013, 12:19 pm, edited 1 time in total.
morat
Posts: 6404
Joined: February 3rd, 2009, 6:29 pm

Re: Move to/Recent: more folders

Post by morat »

You would need to create an extension to change the max number.

http://mxr.mozilla.org/comm-release/sou ... 6ed652#160
User avatar
Freee!!
Posts: 15562
Joined: January 28th, 2005, 5:52 am
Location: Home, with my son!
Contact:

Re: Move to/Recent: more folders

Post by Freee!! »

That looks pretty hard-coded to me. I wouldn't even know where to start creating an extension for that. And the name of the variable/constant appears in neither the executable nor the profile, so editing the executable (something I have done before) is also out of the question.
morat
Posts: 6404
Joined: February 3rd, 2009, 6:29 pm

Re: Move to/Recent: more folders

Post by morat »

The folderWidgets.xml file is in the omni.ja file. The omni.ja file is not optimized, like the Firefox omni.ja file.

Command Prompt:

cd /d C:\Program Files\Mozilla Thunderbird
copy omni.ja omni.ja.17.0.6esr.backup
unzip omni.ja chrome\messenger\content\messenger\folderWidgets.xml
gvim chrome\messenger\content\messenger\folderWidgets.xml

Code: Select all

- <field name="_MAXRECENT">15</field>
+ <field name="_MAXRECENT">3</field>

zip omni.ja chrome\messenger\content\messenger\folderWidgets.xml
del chrome\messenger\content\messenger\folderWidgets.xml
rd /s chrome\messenger
thunderbird -purgecaches

That works for me. I am not sure how to change the _MAXRECENT value with an extension.
User avatar
Freee!!
Posts: 15562
Joined: January 28th, 2005, 5:52 am
Location: Home, with my son!
Contact:

Re: Move to/Recent: more folders

Post by Freee!! »

I applied the change you described (increased the number to 25), let's see if it works. Thanks so far.

EDIT:
After restarting with '-purgecaches' (overlooked), the Recent list showed 25 entries.

Thanks very much.
morat
Posts: 6404
Joined: February 3rd, 2009, 6:29 pm

Re: Move to/Recent: more folders [SOLVED]

Post by morat »

You're welcome.

PS,

This works for me with an extension.

http://kb.mozillazine.org/Bindings

userChrome.css

Code: Select all

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

menupopup[type="folder"] {
  -moz-binding: url("chrome://userchrome/content/userChrome.xml#maxRecent") !important;
}

userChrome.xml

Code: Select all

<?xml version="1.0"?>
<!DOCTYPE bindings>
<bindings xmlns="http://www.mozilla.org/xbl"
          xmlns:xbl="http://www.mozilla.org/xbl"
          xmlns:html="http://www.w3.org/1999/xhtml"
          xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  <binding id="maxRecent"
           extends="chrome://messenger/content/folderWidgets.xml#folder-menupopup">
    <implementation>
      <field name="_MAXRECENT">3</field>
    </implementation>
  </binding>
</bindings>

Rod Whiteley's chrome.xpi extension is obsolete.

Fix: viewtopic.php?p=12655643#p12655643

And remember to use the -purgecaches command line option.
ilNebbioso
Posts: 2
Joined: September 10th, 2014, 7:46 am

Re: Move to/Recent: more folders [SOLVED]

Post by ilNebbioso »

Hello!
I manually edited the xml file as morat suggested in his first reply.
After purgecaching (!), on Thunderbird 31.1 worked like a charm.
Thank you!!!!
User avatar
LIMPET235
Moderator
Posts: 39936
Joined: October 19th, 2007, 1:53 am
Location: The South Coast of N.S.W. Oz.

Re: Move to/Recent: more folders [SOLVED]

Post by LIMPET235 »

Locking due to old age.
[Ancient Amateur Astronomer.]
Win-10-H/64 bit/500G SSD/16 Gig Ram/450Watt PSU/350WattUPS/Firefox-115.0.2/T-bird-115.3.2./SnagIt-v10.0.1/MWP-7.12.125.

(Always choose the "Custom" Install.)
Locked