MozillaZine

Extension "manually sort folders"

Discussion of general topics about Mozilla Thunderbird
Tatie26
 
Posts: 14
Joined: April 16th, 2019, 9:35 am

Post Posted December 11th, 2019, 7:39 am

Hi everyone, :D :D

I used the extension "manually sort folders" to choose the same folder when i opened thunderbird.
but this extension not works along with thunderbird 68.3.0.
so i ask you if you know another extension or a manual config for always have the same folder when i open thunderbird ( i want for example when i open thunderbird a folder name "tatie" to be selected.

How can i do because when i opened thunderbird, it opened the last folder i viewed.

THANKS a lot for yours replies and sorry for my bad english, i am french.

Best regards :) :) :)

morat
 
Posts: 3910
Joined: February 3rd, 2009, 6:29 pm

Post Posted December 11th, 2019, 8:09 am

Are you using the most recent version?

You can open the dialog like so...

* Menu Bar > Tools > Manually sort folders

If the extension has a bug, then you can create a new issue on the GitHub page.

Manually sort folders
http://addons.thunderbird.net/thunderbird/addon/15102
http://github.com/protz/Manually-Sort-Folders/issues

Manually sort folders 2.0.2
Thunderbird 68.3.0
Windows 7 SP1 32-bit

Tatie26
 
Posts: 14
Joined: April 16th, 2019, 9:35 am

Post Posted December 11th, 2019, 9:11 am

Hi
:D :D
Thanks a lot for your reply but these extension no works along in thunderbird 68.3.0 with win 10

i don't know how to do.
:D
Best regards.

tanstaafl
Moderator

User avatar
 
Posts: 46810
Joined: July 30th, 2003, 5:06 pm

Post Posted December 11th, 2019, 12:16 pm

I just installed "Manually sort folders 2.0.2" on 68.3.0 under Windows 10 Home version 1909 (with yesterdays patch tuesday patches) and used it to change the order of my accounts in the folder pane. Then I used it to change the sort order of my gmail account folders with "use plain string compare". However, the extra settings to change what folder it opens in doesn't seem to work.

It looks like most of the add-on works fine, just not the feature you care about. I foudn https://github.com/protz/Manually-Sort- ... /issues/92 - Startup folder does not work even if set #92. One suggestion was:

"trick to make it work... delete the file session.json
But it should be erased always we close Thunderbird.
Then, once Thunderbird is closed to the desired folder, set the file session.json to read-only.
That should work."

If that works you might not like the side effects. "Default windows layout. This includes data on what tabs are open. Thunderbird (3.0 and later) deletes this file after reading the settings. Its re-created and the layout saved when Thunderbird terminates normally."

http://webcache.googleusercontent.com/s ... hunderbird

morat
 
Posts: 3910
Joined: February 3rd, 2009, 6:29 pm

Post Posted December 11th, 2019, 12:46 pm

The startup folder feature works here.

Maybe it is a 64-bit only bug.
Last edited by morat on December 13th, 2019, 11:03 am, edited 1 time in total.

tanstaafl
Moderator

User avatar
 
Posts: 46810
Joined: July 30th, 2003, 5:06 pm

Post Posted December 11th, 2019, 3:47 pm

I noticed two copies of a 2147942487 error (very cryptic, I expected some text with it) in the error console. It disappeared when I removed the add-on and restarted.

Tatie26
 
Posts: 14
Joined: April 16th, 2019, 9:35 am

Post Posted December 12th, 2019, 5:03 am

Thanks a lot for yours replies. :D :D

However I found this on internet:

http://kb.mozillazine.org/Show_Inbox_wh ... hunderbird
but I cannot make the target link of the shortcut:

IMAP
In an IMAP account, a URI folder looks like:
imap: // username @ server / folder
For example: imap: //someone@imap.example.net/INBOX

where i can find my username and it is for an address in hotmail.com. (the imap server is imap-mail.outlook.com).
can you please tell me how to put this address in the target of the shortcut?

thank you so much. :) :)
Have a good day :)

tanstaafl
Moderator

User avatar
 
Posts: 46810
Joined: July 30th, 2003, 5:06 pm

Post Posted December 12th, 2019, 7:59 am

http://kb.mozillazine.org/Folder_URIs

If your hotmail address was tatie@hotmail.com you would use imap://tatie@imap-mail.outlook.com/INBOX
The username in that KB article is the portion of the email address to the left of the '@' in the email address.

I added a boolean named mail.server.login.at.startup and set it to false, using the config editor. That fixed the problem with setting the start folder in manually sort folders. That was a workaround mentioned in http://kb.mozillazine.org/Show_Inbox_wh ... hunderbird that I had forgotten about. You can add a setting by right clicking in the body of the config editor and selecting new from the list box.

The KB wiki is frequently unreachable lately. You can enter the URL in https://cachedview.com/ and select google webcache to see a cached version of the KB article.

morat
 
Posts: 3910
Joined: February 3rd, 2009, 6:29 pm

Post Posted December 12th, 2019, 9:56 am

@Tatie26

Here is how to show the selected folder url using the error console.

Code: Select all
alert(GetFirstSelectedMsgFolder().URI); // don't guess, test

Instructions:

* open config editor
* set devtools.chrome.enabled preference to true
* tools > developer tools > error console
* copy and paste code into error console
* press enter to run

Error Console command line
http://developer.mozilla.org/en-US/docs/Tools/Browser_Console#Browser_Console_command_line

@tanstaafl

I got these preferences in the config editor.

* mail.server.default.login_at_startup ; false (default)
* mail.server.server1.login_at_startup ; true

I can't find the mail.server.login.at.startup preference in the mozilla source code.

Tatie26
 
Posts: 14
Joined: April 16th, 2019, 9:35 am

Post Posted December 13th, 2019, 4:16 am

Hi everybody :D :D :D

I try to make what you said :
"If your hotmail address was tatie@hotmail.com you would use imap://tatie@imap-mail.outlook.com/INBOX"

but i fails, it doesn't work.
i don't know why, perhaps il forget some space...
could you please the exact sentence i must enter in the target link ? with the -mail..

THANKS a lot and best regards. :lol:

morat
 
Posts: 3910
Joined: February 3rd, 2009, 6:29 pm

Post Posted December 13th, 2019, 9:07 am

You can use the userChromeJS extension to select the folder at startup. (for advance users only)

Code: Select all
/* Thunderbird userChrome.js */

if (location == "chrome://messenger/content/messenger.xul") {
  setTimeout(function () {
    SelectFolder("imap://example%40gmail.com@imap.googlemail.com/INBOX");
  }, 1000);
}

userChromeJS by jikamens
http://addons.thunderbird.net/thunderbird/addon/986610

Instructions:

1. install userChromeJS extension
2. close email client
3. create or edit the userChrome.js file in the chrome folder
4. remember to change the folder url
5. open email client

You do not need to purge the caches with jikamens' version.

userChromeJS by alta88 (obsolete)
http://userchromejs.mozdev.org/
http://userchromejs.mozdev.org/faq.html
Last edited by morat on December 13th, 2019, 10:01 am, edited 1 time in total.

Tatie26
 
Posts: 14
Joined: April 16th, 2019, 9:35 am

Post Posted December 13th, 2019, 9:24 am

:) Hi

Thanks very much for your help, il will try soon what you explains to me.

A BIG THANKS FOR EVERYONE of this forum which is very interesting.

morat
 
Posts: 3910
Joined: February 3rd, 2009, 6:29 pm

Post Posted December 13th, 2019, 9:56 am

The knowledge base article is wrong.

Show Inbox when starting Thunderbird
http://kb.mozillazine.org/Show_Inbox_when_starting_Thunderbird

1. thunderbird.exe -mail <folder url>
2. thunderbird.exe -mail <message url>

Code: Select all
thunderbird.exe -mail "imap://example%40gmail.com@imap.googlemail.com/INBOX"

Code: Select all
thunderbird.exe -mail "imap-message://example%40gmail.com@imap.googlemail.com/INBOX#123"

The command line option (1) fails.
The command line option (2) succeeds.

You can open a message with the -mail <url> command line option. You cannot select a folder with a command line option.

Code: Select all
thunderbird.exe --help

Usage: thunderbird.exe [ options ... ] [URL]
       where options include:

  -h or --help       Print this message.
  -v or --version    Print Thunderbird version.
  -P <profile>       Start with <profile>.
  --profile <path>   Start with profile at <path>.
  --migration        Start with migration wizard.
  --ProfileManager   Start with ProfileManager.
  --no-remote        Do not accept or send remote commands; implies
                     --new-instance.
  --new-instance     Open new instance, not a new window in running instance.
  --UILocale <locale> Start with <locale> resources as UI Locale.
  --safe-mode        Disables extensions and themes for this session.
  --allow-downgrade  Allows downgrading a profile.
  --MOZ_LOG=<modules> Treated as MOZ_LOG=<modules> environment variable,
                     overrides it.
  --MOZ_LOG_FILE=<file> Treated as MOZ_LOG_FILE=<file> environment variable,
                     overrides it. If MOZ_LOG_FILE is not specified as an
                     argument or as an environment variable, logging will be
                     written to stdout.
  --console          Start Thunderbird with a debugging console.
  --headless         Run without a GUI.
  --save-recordings  Save recordings for all content processes to a directory.
  -addressbook       Open the address book at startup.
  -compose [ <options> ] Compose a mail or news message. Options are specified
                     as string "option='value,...',option=value,..." and
                     include: from, to, cc, bcc, newsgroups, subject, body,
                     message (file), attachment (file), format (html | text).
                     Example: "to=john@example.com,subject='Dinner tonight?'"
  --jsconsole        Open the Browser Console.
  --jsdebugger       Open the Browser Toolbox.
  --wait-for-jsdebugger Spin event loop until JS debugger connects.
                     Enables debugging (some) application startup code paths.
                     Only has an effect when `--jsdebugger` is also supplied.
  --devtools         Open DevTools on initial load.
  --start-debugger-server [ws:][ <port> | <path> ] Start the debugger server on
                     a TCP port or Unix domain socket path. Defaults to TCP port
                     6000. Use WebSocket protocol if ws: prefix is specified.
  -mail              Open the mail folder view.
  -mail <URL>        Open the message specified by this URL.
  -news              Open the news client.
  --recording <file> Record drawing for a given URL.
  --recording-output <file> Specify destination file for a drawing recording.
  -setDefaultMail    Set this app as the default mail client.
  -options           Open the options dialog.
  -file              Open the specified email file.

Here is how to show the selected message url using the error console.

Code: Select all
(function () {
  var msgHdr = gFolderDisplay.selectedMessage;
  var msgUri = msgHdr.folder.getUriForMsg(msgHdr);
  alert(msgUri);
})();

Tatie26
 
Posts: 14
Joined: April 16th, 2019, 9:35 am

Post Posted December 14th, 2019, 6:10 am

Hi Morat

Thanks a lot for your explanations but i fail to create these target link. :(
Can i send you a private message with my mail for help to me ?

Best regards.
Have a nice day. :) :)

morat
 
Posts: 3910
Joined: February 3rd, 2009, 6:29 pm

Post Posted December 14th, 2019, 7:01 am

You cannot select a folder at startup by creating a desktop shortcut.

The information in the knowledge base article is incorrect.

Show Inbox when starting Thunderbird
http://kb.mozillazine.org/Show_Inbox_when_starting_Thunderbird

Command line switch for startup folder given URI not working
http://bugzilla.mozilla.org/show_bug.cgi?id=560032

For reading only as Bugzilla is not a forum.

Return to Thunderbird General


Who is online

Users browsing this forum: No registered users and 3 guests