user.js

User Help for Mozilla Thunderbird
Post Reply
dewey40
Guest

user.js

Post by dewey40 »

I am trying to download messages from multiple accounts on start up of TBird and I have created the user.js file but can't seem to get it in the right folder to make the behavior function. I am new to the open source environment so probably am missing something simple but need some help.
Thanks
Old Persist
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post by Old Persist »

Put it in your profile in the same folder as prefs.js and abook.mab. On Windows XP that would be C:\Documents and Settings\user\Application Data(a hidden folder)\Thunderbird\Profiles\default\random number.slt\user.js
One thing about user.js - the grammar must be perfect. If you forget to put a ; at the end of a line or something Thunderbird will stop reading it at the syntax error and give up, so if it doesn't seem to be working, look at every little detail. I find the easiest way to get it right is to copy and paste lines across from prefs.js.
Dewey
Posts: 8
Joined: December 12th, 2003, 7:41 pm
Location: Wichita, Kansas, USA
Contact:

Post by Dewey »

Thanks so much. Now I am in the right location and have copied the following:

// Download mail from all accounts on startup
user_pref("mail.check_all_imap_folders_for_new", true)

Is this incorrect?
User avatar
R4F
Posts: 999
Joined: December 7th, 2003, 12:13 pm
Location: Netherlands

Post by R4F »

Code: Select all

// Download mail from all accounts on startup
user_pref("mail.check_all_imap_folders_for_new", true);
[size=9:0df8c2550c]Firefox Help | Nederlands
Thunderbird Help | Nederlands[/size:0df8c2550c]
User avatar
!!!!cdn!
Posts: 250
Joined: December 7th, 2003, 2:58 pm
Location: Latitude 53ish
Contact:

[ 59 ]

Post by !!!!cdn! »

As always chromedit is a good way of editing such files, w/o needing to know where they go : )
!!!!cdn!
-- http://extensionroom.mozdev.org/#chromedit -- http://themes.mozdev.org/ --
Mozilla/5.0 (X11; U; Linux i686; en-*; rv:*.*) Gecko/200*mmdd Mozilla Firebird/*.*
Old Persist
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post by Old Persist »

Dewey wrote:

Code: Select all

// Download mail from all accounts on startup
user_pref("mail.check_all_imap_folders_for_new", true)
R4F wrote:

Code: Select all

// Download mail from all accounts on startup
user_pref("mail.check_all_imap_folders_for_new", true);
Can you see the difference between the two? The computer can. One has a ; at the end and the other doesn't.
Dewey
Posts: 8
Joined: December 12th, 2003, 7:41 pm
Location: Wichita, Kansas, USA
Contact:

Post by Dewey »

This is true, but it doesn't work with or without the ;.
Old Persist
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post by Old Persist »

What Operating System are you using? If it's Windows, have you set it to show file extensions of known file types? If not, and you've made the file with a text editor it may well be called user.js.txt but Windows will be hiding the .txt so to you it looks like it's called user.js. I don't use imap so I've never set that pref but for me

Code: Select all

user_pref("mail.server.server1.login_at_startup", true);
seems to do the same thing, it checks for new mail when Thunderbird starts. You'll need to put lines for server2,3..however many accounts you have.
User avatar
!!!!cdn!
Posts: 250
Joined: December 7th, 2003, 2:58 pm
Location: Latitude 53ish
Contact:

[ 60 ]

Post by !!!!cdn! »

again chromedit : ]
!!!!cdn!
-- http://extensionroom.mozdev.org/#chromedit -- http://themes.mozdev.org/ --
Mozilla/5.0 (X11; U; Linux i686; en-*; rv:*.*) Gecko/200*mmdd Mozilla Firebird/*.*
User avatar
Äkiidoll
Posts: 5473
Joined: August 16th, 2003, 2:03 pm
Location: USA
Contact:

multiple accts/servers

Post by Äkiidoll »

Like Persist said:

Code: Select all

user_pref("mail.server.server1.login_at_startup", true);
user_pref("mail.server.server2.login_at_startup", true);
user_pref("mail.server.server3.login_at_startup", true);
user_pref("mail.server.server4.login_at_startup", true);

. o 0 (who needs the instabilty some extensions create) :roll:
I thought chromedit is for userChrome.css/userContent.css :?
Geck0 r0cks
A prisoner of Christ Jesus, by His stripes I was healed
User avatar
R4F
Posts: 999
Joined: December 7th, 2003, 12:13 pm
Location: Netherlands

Post by R4F »

It does user.js (editable) and prefs.js (read-only) as well.
[size=9:0df8c2550c]Firefox Help | Nederlands
Thunderbird Help | Nederlands[/size:0df8c2550c]
User avatar
!!!!cdn!
Posts: 250
Joined: December 7th, 2003, 2:58 pm
Location: Latitude 53ish
Contact:

[ 67 ]

Post by !!!!cdn! »

ChromEdit - User File Editor

and it's one of the more stable extensions : P

allows editing of user.js as well as userChrome/userContent

chromedit was the name it was given, when it was a snippet [ http://snippets.mozdev.org/ ]

prefs.js in an up coming version, R4F has a pre-release
Last edited by !!!!cdn! on December 14th, 2003, 1:42 pm, edited 1 time in total.
!!!!cdn!
-- http://extensionroom.mozdev.org/#chromedit -- http://themes.mozdev.org/ --
Mozilla/5.0 (X11; U; Linux i686; en-*; rv:*.*) Gecko/200*mmdd Mozilla Firebird/*.*
User avatar
R4F
Posts: 999
Joined: December 7th, 2003, 12:13 pm
Location: Netherlands

[ 65 ]

Post by R4F »

I was here first. +2 means nothing.
[size=9:0df8c2550c]Firefox Help | Nederlands
Thunderbird Help | Nederlands[/size:0df8c2550c]
LupoSol
Guest

Re: multiple accts/servers

Post by LupoSol »

Caetck wrote:Like Persist said:

Code: Select all

user_pref("mail.server.server1.login_at_startup", true);
user_pref("mail.server.server2.login_at_startup", true);
user_pref("mail.server.server3.login_at_startup", true);
user_pref("mail.server.server4.login_at_startup", true);

. o 0 (who needs the instabilty some extensions create) :roll:
I thought chromedit is for userChrome.css/userContent.css :?
Geck0 r0cks


I'm sorry but this isn't clear for me.

Say I have two accounts, as follows:

1) pop3 = mail.hostingstudio.net

2) say username is joe.bloggs@hostingstudio.net for account 1 and jack.bloggs@hostingstudio.net for acccount 2

3) say password is blabla1 for account 1 and blabla2 for account 2

What would I have to writwe so that it checks the mail automatically at start up?

Also, can I set TB so that it checks emails on ALL these accounts ( I have 15 email addresses!) every 5 minutes?

Thanks for your help.
Post Reply