Results 1 to 6 of 6

Thread: Script for Thunderbird configuration

  1. #1
    coolguy123 Guest

    Script for Thunderbird configuration

    We are going to use thunderbird as email client in our comapny. I have got msi file for the software deployment. but i would like to know is there any way to automate client configuration ( such as logon script) based upon the windows login.

    any help would be appreciated.

    Thanks,

  2. #2
    coolguy123 Guest

    Re: Script for Thunderbird configuration

    I have got a script from the following location.

    http://forums.mozillazine.org/viewtopic.php?t=57260

    I am posting the script here for your reference. But can someone help me what are the changes i should made in this to work in my organisaztion.


    ---------SCRIPT START---------
    @echo off

    IF NOT EXIST "%ProgramFiles%\Thunderbird\Thunderbird.exe" GOTO END
    IF EXIST "%APPDATA%\Thunderbird" GOTO MANDATORYCONFIG

    ECHO.
    ECHO Setting up new Thunderbird user profile - Standby for Action!

    ECHO.
    echo Creating default profile....
    "%programfiles%\Thunderbird\thunderbird.exe" -createprofile default

    ECHO.
    Echo Customizing profile...

    call :GetProfileName

    for /f "Tokens=2*" %%m in ('net user %USERNAME% /domain ^| find "Full Name"' ) do set FULLNAME=%%n

    SET TBPREFS=%APPDATA%\Thunderbird\Profiles\default\%TBPROFILE%\prefs.js

    ECHO user_pref("mail.account.account1.identities", "id1"); >> "%TBPREFS%"
    ECHO user_pref("mail.account.account1.server", "server1");>> "%TBPREFS%"
    ECHO user_pref("mail.account.account2.server", "server2");>> "%TBPREFS%"
    ECHO user_pref("mail.accountmanager.accounts", "account1,account2");>> "%TBPREFS%"
    ECHO user_pref("mail.accountmanager.defaultaccount", "account1");>> "%TBPREFS%"
    ECHO user_pref("mail.accountmanager.localfoldersserver", "server2");>> "%TBPREFS%"
    ECHO user_pref("mail.identity.id1.compose_html", false);>> "%TBPREFS%"
    ECHO user_pref("mail.identity.id1.draft_folder", "imap://%username%@server.mycompany.com/Drafts");>> "%TBPREFS%"
    ECHO user_pref("mail.identity.id1.drafts_folder_picker_mode", "0");>> "%TBPREFS%"
    ECHO user_pref("mail.identity.id1.encryption_cert_name", "");>> "%TBPREFS%"
    ECHO user_pref("mail.identity.id1.encryptionpolicy", 0);>> "%TBPREFS%"
    ECHO user_pref("mail.identity.id1.fcc_folder", "imap://%username%@server.mycompany.com/Sent");>> "%TBPREFS%"
    ECHO user_pref("mail.identity.id1.fcc_folder_picker_mode", "0");>> "%TBPREFS%"
    ECHO user_pref("mail.identity.id1.fullName", "%FULLNAME%");>> "%TBPREFS%"
    ECHO user_pref("mail.identity.id1.reply_on_top", 1);>> "%TBPREFS%"
    ECHO user_pref("mail.identity.id1.sign_mail", false);>> "%TBPREFS%"
    ECHO user_pref("mail.identity.id1.signing_cert_name", "");>> "%TBPREFS%"
    ECHO user_pref("mail.identity.id1.smtpServer", "smtp1");>> "%TBPREFS%"
    ECHO user_pref("mail.identity.id1.stationery_folder", "imap://%username%@server.mycompany.com/Templates");>> "%TBPREFS%"
    ECHO user_pref("mail.identity.id1.useremail", "%username%@mycompany.com");>> "%TBPREFS%"
    ECHO user_pref("mail.identity.id1.valid", true);>> "%TBPREFS%"
    ECHO user_pref("mail.root.imap", "C:\\DOCUMENTS AND SETTINGS\\%username%\\APPLICATION DATA\\Thunderbird\\Profiles\\default\\%TBPROFILE%\\ImapMail");>> "%TBPREFS%"
    ECHO user_pref("mail.root.none", "C:\\DOCUMENTS AND SETTINGS\\%username%\\APPLICATION DATA\\Thunderbird\\Profiles\\default\\%TBPROFILE%\\Mail");>> "%TBPREFS%"
    ECHO user_pref("mail.server.server1.capability", 25137);>> "%TBPREFS%"
    ECHO user_pref("mail.server.server1.directory", "C:\\DOCUMENTS AND SETTINGS\\%username%\\Local Settings\\APPLICATION DATA\\Thunderbird\\Profiles\\default\\%TBPROFILE%\\ImapMail\\server.mycompany.com");>> "%TBPREFS%"
    ECHO user_pref("mail.server.server1.hostname", "server.mycompany.com");>> "%TBPREFS%"
    ECHO user_pref("mail.server.server1.isSecure", true);>> "%TBPREFS%"
    ECHO user_pref("mail.server.server1.login_at_startup", true);>> "%TBPREFS%"
    ECHO user_pref("mail.server.server1.name", "%username%@mycompany.com");>> "%TBPREFS%"
    ECHO user_pref("mail.server.server1.port", 993);>> "%TBPREFS%"
    ECHO user_pref("mail.server.server1.type", "imap");>> "%TBPREFS%"
    ECHO user_pref("mail.server.server1.userName", "%username%");>> "%TBPREFS%"
    ECHO user_pref("mail.server.server2.directory", "C:\\DOCUMENTS AND SETTINGS\\%username%\\APPLICATION DATA\\Thunderbird\\Profiles\\default\\%TBPROFILE%\\Mail\\Local Folders");>> "%TBPREFS%"
    ECHO user_pref("mail.server.server2.hostname", "Local Folders");>> "%TBPREFS%"
    ECHO user_pref("mail.server.server2.name", "Local Folders");>> "%TBPREFS%"
    ECHO user_pref("mail.server.server2.type", "none");>> "%TBPREFS%"
    ECHO user_pref("mail.server.server2.userName", "nobody");>> "%TBPREFS%"
    ECHO user_pref("mail.smtp.defaultserver", "smtp1");>> "%TBPREFS%"
    ECHO user_pref("mail.smtpserver.smtp1.auth_method", 1);>> "%TBPREFS%"
    ECHO user_pref("mail.smtpserver.smtp1.hostname", "server.mycompany.com");>> "%TBPREFS%"
    ECHO user_pref("mail.smtpserver.smtp1.port", 26);>> "%TBPREFS%"
    ECHO user_pref("mail.smtpserver.smtp1.try_ssl", 2);>> "%TBPREFS%"
    ECHO user_pref("mail.smtpserver.smtp1.username", "%username%");>> "%TBPREFS%"
    ECHO user_pref("mail.smtpservers", "smtp1");>> "%TBPREFS%"
    ECHO user_pref("mail.startup.enabledMailCheckOnce", true);>> "%TBPREFS%"


    :MANDATORYCONFIG
    call :GetProfileName

    ECHO.
    Echo Applying mandatory settings...

    SET TBPREFS=%APPDATA%\Thunderbird\Profiles\default\%TBPROFILE%\user.js

    ECHO user_pref("ldap_2.autoComplete.directoryServer", "ldap_2.servers.mycompany");> "%TBPREFS%"
    ECHO user_pref("ldap_2.autoComplete.useDirectory", true);>> "%TBPREFS%"
    ECHO user_pref("ldap_2.prefs_migrated", true);>> "%TBPREFS%"
    ECHO user_pref("ldap_2.servers.history.filename", "history.mab");>> "%TBPREFS%"
    ECHO user_pref("ldap_2.servers.history.replication.lastChangeNumber", 0);>> "%TBPREFS%"
    ECHO user_pref("ldap_2.servers.mycompany.auth.savePassword", true);>> "%TBPREFS%"
    ECHO user_pref("ldap_2.servers.mycompany.description", "My Company");>> "%TBPREFS%"
    ECHO user_pref("ldap_2.servers.mycompany.filename", "abook-1.mab");>> "%TBPREFS%"
    ECHO user_pref("ldap_2.servers.mycompany.position", 3);>> "%TBPREFS%"
    ECHO user_pref("ldap_2.servers.mycompany.replication.lastChangeNumber", 0);>> "%TBPREFS%"
    ECHO user_pref("ldap_2.servers.mycompany.uri", "ldap://server.mycompany.com:389/OU=Departments, DC=subdomain, DC=mycompany, DC=com??sub?(objectclass=User)");>> "%TBPREFS%"
    ECHO user_pref("ldap_2.servers.pab.filename", "abook.mab");>> "%TBPREFS%"
    ECHO user_pref("ldap_2.servers.pab.replication.lastChangeNumber", 0);>> "%TBPREFS%"
    ECHO user_pref("ldap_2.servers.user_directory_1.filename", "user_directory_1.mab");>> "%TBPREFS%"
    ECHO user_pref("ldap_2.servers.user_directory_1.replication.lastChangeNumber", 0);>> "%TBPREFS%"
    ECHO user_pref("ldap_2.servers.user_directory_1.uri", "moz-abldapdirectory://user_directory_1.mab");>> "%TBPREFS%"
    ECHO user_pref("mail.inline_attachments", false);>> "%TBPREFS%"
    ECHO user_pref("mailnews.message_display.disable_remote_image", true); >> "%TBPREFS%"
    ECHO user_pref("network.proxy.autoconfig_url", "http://webcache/proxy.pac");>> "%TBPREFS%"
    ECHO user_pref("network.proxy.type", 2);>> "%TBPREFS%"


    :END
    exit



    :GetProfileName
    cd %APPDATA%

    dir "%APPDATA%\Thunderbird\Profiles\default\*.slt" /b > profname.tmp

    ECHO XPYP[*'CC-\1P\QX,=P,APZ5O!PQ2O~5aaI~}Ksx>_.COM
    _.COM SET TBPROFILE=>env-setter.BAT
    TYPE profname.tmp>>env-setter.BAT
    CALL env-setter.BAT
    DEL env-setter.BAT
    DEL _.COM
    DEL profname.tmp
    -----------------SCRIPT END---------------

  3. #3
    Al Dunbar Guest

    Re: Script for Thunderbird configuration


    "coolguy123" <coolguy123.3okg7d@DoNotSpam.com> wrote in message
    news:coolguy123.3okg7d@DoNotSpam.com...
    >
    > I have got a script from the following location.
    >
    > http://forums.mozillazine.org/viewtopic.php?t=57260
    >
    > I am posting the script here for your reference. But can someone help
    > me what are the changes i should made in this to work in my
    > organisaztion.


    I take it that it does not work. What happens when you try to run the
    script?

    /Al

    >
    >
    > ---------SCRIPT START---------
    > @echo off
    >
    > IF NOT EXIST "%ProgramFiles%\Thunderbird\Thunderbird.exe" GOTO END
    > IF EXIST "%APPDATA%\Thunderbird" GOTO MANDATORYCONFIG
    >
    > ECHO.
    > ECHO Setting up new Thunderbird user profile - Standby for Action!
    >
    > ECHO.
    > echo Creating default profile....
    > "%programfiles%\Thunderbird\thunderbird.exe" -createprofile default
    >
    > ECHO.
    > Echo Customizing profile...
    >
    > call :GetProfileName
    >
    > for /f "Tokens=2*" %%m in ('net user %USERNAME% /domain ^| find "Full
    > Name"' ) do set FULLNAME=%%n
    >
    > SET TBPREFS=%APPDATA%\Thunderbird\Profiles\default\%TBPROFILE%\prefs.js
    >
    >
    > ECHO user_pref("mail.account.account1.identities", "id1"); >>
    > "%TBPREFS%"
    > ECHO user_pref("mail.account.account1.server", "server1");>>
    > "%TBPREFS%"
    > ECHO user_pref("mail.account.account2.server", "server2");>>
    > "%TBPREFS%"
    > ECHO user_pref("mail.accountmanager.accounts", "account1,account2");>>
    > "%TBPREFS%"
    > ECHO user_pref("mail.accountmanager.defaultaccount", "account1");>>
    > "%TBPREFS%"
    > ECHO user_pref("mail.accountmanager.localfoldersserver", "server2");>>
    > "%TBPREFS%"
    > ECHO user_pref("mail.identity.id1.compose_html", false);>> "%TBPREFS%"
    >
    > ECHO user_pref("mail.identity.id1.draft_folder",
    > "imap://%username%@server.mycompany.com/Drafts");>> "%TBPREFS%"
    > ECHO user_pref("mail.identity.id1.drafts_folder_picker_mode", "0");>>
    > "%TBPREFS%"
    > ECHO user_pref("mail.identity.id1.encryption_cert_name", "");>>
    > "%TBPREFS%"
    > ECHO user_pref("mail.identity.id1.encryptionpolicy", 0);>> "%TBPREFS%"
    >
    > ECHO user_pref("mail.identity.id1.fcc_folder",
    > "imap://%username%@server.mycompany.com/Sent");>> "%TBPREFS%"
    > ECHO user_pref("mail.identity.id1.fcc_folder_picker_mode", "0");>>
    > "%TBPREFS%"
    > ECHO user_pref("mail.identity.id1.fullName", "%FULLNAME%");>>
    > "%TBPREFS%"
    > ECHO user_pref("mail.identity.id1.reply_on_top", 1);>> "%TBPREFS%"
    > ECHO user_pref("mail.identity.id1.sign_mail", false);>> "%TBPREFS%"
    > ECHO user_pref("mail.identity.id1.signing_cert_name", "");>>
    > "%TBPREFS%"
    > ECHO user_pref("mail.identity.id1.smtpServer", "smtp1");>> "%TBPREFS%"
    >
    > ECHO user_pref("mail.identity.id1.stationery_folder",
    > "imap://%username%@server.mycompany.com/Templates");>> "%TBPREFS%"
    > ECHO user_pref("mail.identity.id1.useremail",
    > "%username%@mycompany.com");>> "%TBPREFS%"
    > ECHO user_pref("mail.identity.id1.valid", true);>> "%TBPREFS%"
    > ECHO user_pref("mail.root.imap", "C:\\DOCUMENTS AND
    > SETTINGS\\%username%\\APPLICATION
    > DATA\\Thunderbird\\Profiles\\default\\%TBPROFILE%\\ImapMail");>>
    > "%TBPREFS%"
    > ECHO user_pref("mail.root.none", "C:\\DOCUMENTS AND
    > SETTINGS\\%username%\\APPLICATION
    > DATA\\Thunderbird\\Profiles\\default\\%TBPROFILE%\\Mail");>> "%TBPREFS%"
    >
    > ECHO user_pref("mail.server.server1.capability", 25137);>> "%TBPREFS%"
    >
    > ECHO user_pref("mail.server.server1.directory", "C:\\DOCUMENTS AND
    > SETTINGS\\%username%\\Local Settings\\APPLICATION
    > DATA\\Thunderbird\\Profiles\\default\\%TBPROFILE%\\ImapMail\\server.mycompany.com");>>
    > "%TBPREFS%"
    > ECHO user_pref("mail.server.server1.hostname",
    > "server.mycompany.com");>> "%TBPREFS%"
    > ECHO user_pref("mail.server.server1.isSecure", true);>> "%TBPREFS%"
    > ECHO user_pref("mail.server.server1.login_at_startup", true);>>
    > "%TBPREFS%"
    > ECHO user_pref("mail.server.server1.name",
    > "%username%@mycompany.com");>> "%TBPREFS%"
    > ECHO user_pref("mail.server.server1.port", 993);>> "%TBPREFS%"
    > ECHO user_pref("mail.server.server1.type", "imap");>> "%TBPREFS%"
    > ECHO user_pref("mail.server.server1.userName", "%username%");>>
    > "%TBPREFS%"
    > ECHO user_pref("mail.server.server2.directory", "C:\\DOCUMENTS AND
    > SETTINGS\\%username%\\APPLICATION
    > DATA\\Thunderbird\\Profiles\\default\\%TBPROFILE%\\Mail\\Local
    > Folders");>> "%TBPREFS%"
    > ECHO user_pref("mail.server.server2.hostname", "Local Folders");>>
    > "%TBPREFS%"
    > ECHO user_pref("mail.server.server2.name", "Local Folders");>>
    > "%TBPREFS%"
    > ECHO user_pref("mail.server.server2.type", "none");>> "%TBPREFS%"
    > ECHO user_pref("mail.server.server2.userName", "nobody");>> "%TBPREFS%"
    >
    > ECHO user_pref("mail.smtp.defaultserver", "smtp1");>> "%TBPREFS%"
    > ECHO user_pref("mail.smtpserver.smtp1.auth_method", 1);>> "%TBPREFS%"
    > ECHO user_pref("mail.smtpserver.smtp1.hostname",
    > "server.mycompany.com");>> "%TBPREFS%"
    > ECHO user_pref("mail.smtpserver.smtp1.port", 26);>> "%TBPREFS%"
    > ECHO user_pref("mail.smtpserver.smtp1.try_ssl", 2);>> "%TBPREFS%"
    > ECHO user_pref("mail.smtpserver.smtp1.username", "%username%");>>
    > "%TBPREFS%"
    > ECHO user_pref("mail.smtpservers", "smtp1");>> "%TBPREFS%"
    > ECHO user_pref("mail.startup.enabledMailCheckOnce", true);>>
    > "%TBPREFS%"
    >
    >
    > :MANDATORYCONFIG
    > call :GetProfileName
    >
    > ECHO.
    > Echo Applying mandatory settings...
    >
    > SET TBPREFS=%APPDATA%\Thunderbird\Profiles\default\%TBPROFILE%\user.js
    >
    >
    > ECHO user_pref("ldap_2.autoComplete.directoryServer",
    > "ldap_2.servers.mycompany");> "%TBPREFS%"
    > ECHO user_pref("ldap_2.autoComplete.useDirectory", true);>> "%TBPREFS%"
    >
    > ECHO user_pref("ldap_2.prefs_migrated", true);>> "%TBPREFS%"
    > ECHO user_pref("ldap_2.servers.history.filename", "history.mab");>>
    > "%TBPREFS%"
    > ECHO user_pref("ldap_2.servers.history.replication.lastChangeNumber",
    > 0);>> "%TBPREFS%"
    > ECHO user_pref("ldap_2.servers.mycompany.auth.savePassword", true);>>
    > "%TBPREFS%"
    > ECHO user_pref("ldap_2.servers.mycompany.description", "My Company");>>
    > "%TBPREFS%"
    > ECHO user_pref("ldap_2.servers.mycompany.filename", "abook-1.mab");>>
    > "%TBPREFS%"
    > ECHO user_pref("ldap_2.servers.mycompany.position", 3);>> "%TBPREFS%"
    > ECHO user_pref("ldap_2.servers.mycompany.replication.lastChangeNumber",
    > 0);>> "%TBPREFS%"
    > ECHO user_pref("ldap_2.servers.mycompany.uri",
    > "ldap://server.mycompany.com:389/OU=Departments, DC=subdomain,
    > DC=mycompany, DC=com??sub?(objectclass=User)");>> "%TBPREFS%"
    > ECHO user_pref("ldap_2.servers.pab.filename", "abook.mab");>>
    > "%TBPREFS%"
    > ECHO user_pref("ldap_2.servers.pab.replication.lastChangeNumber", 0);>>
    > "%TBPREFS%"
    > ECHO user_pref("ldap_2.servers.user_directory_1.filename",
    > "user_directory_1.mab");>> "%TBPREFS%"
    > ECHO
    > user_pref("ldap_2.servers.user_directory_1.replication.lastChangeNumber",
    > 0);>> "%TBPREFS%"
    > ECHO user_pref("ldap_2.servers.user_directory_1.uri",
    > "moz-abldapdirectory://user_directory_1.mab");>> "%TBPREFS%"
    > ECHO user_pref("mail.inline_attachments", false);>> "%TBPREFS%"
    > ECHO user_pref("mailnews.message_display.disable_remote_image", true);
    >>> "%TBPREFS%"

    > ECHO user_pref("network.proxy.autoconfig_url",
    > "http://webcache/proxy.pac");>> "%TBPREFS%"
    > ECHO user_pref("network.proxy.type", 2);>> "%TBPREFS%"
    >
    >
    > :END
    > exit
    >
    >
    >
    > :GetProfileName
    > cd %APPDATA%
    >
    > dir "%APPDATA%\Thunderbird\Profiles\default\*.slt" /b > profname.tmp
    >
    > ECHO XPYP[*'CC-\1P\QX,=P,APZ5O!PQ2O~5aaI~}Ksx>_.COM
    > _.COM SET TBPROFILE=>env-setter.BAT
    > TYPE profname.tmp>>env-setter.BAT
    > CALL env-setter.BAT
    > DEL env-setter.BAT
    > DEL _.COM
    > DEL profname.tmp
    > -----------------SCRIPT END---------------
    >
    >
    > --
    > coolguy123
    > ------------------------------------------------------------------------
    > coolguy123's Profile: http://forums.techarena.in/members/coolguy123.htm
    > View this thread: http://forums.techarena.in/server-scripting/1135118.htm
    >
    > http://forums.techarena.in
    >




  4. #4
    coolguy123 Guest

    Re: Script for Thunderbird configuration

    I dont know what are the changes i should make in this script. so I didn't test this. can some one help me in this.?

    Thanks

  5. #5
    Al Dunbar Guest

    Re: Script for Thunderbird configuration


    "coolguy123" <coolguy123.3om5bf@DoNotSpam.com> wrote in message
    news:coolguy123.3om5bf@DoNotSpam.com...
    >
    > I dont know what are the changes i should make in this script. so I
    > didn't test this. can some one help me in this.?


    What makes you think that there are changes you should make, and how are we
    supposed to know what changes might be required for it to work in your
    organisation? Like, what is there about your organisation that might be
    different from the organization in which the script actually worked?

    /Al

    > Thanks
    >
    >
    > --
    > coolguy123
    > ------------------------------------------------------------------------
    > coolguy123's Profile: http://forums.techarena.in/members/coolguy123.htm
    > View this thread: http://forums.techarena.in/server-scripting/1135118.htm
    >
    > http://forums.techarena.in
    >




  6. #6
    Dean Brundage Guest

    Autoconfig for thunderbird configuration

    Try Mission Control Desktop for thunderbird configuration.

    http://blog.deanandadie.net/2010/04/...ntrol-desktop/



    coolguy123 wrote:

    Script for Thunderbird configuration
    05-Mar-09

    We are going to use thunderbird as email client in our comapny. I have
    got msi file for the software deployment. but i would like to know is
    there any way to automate client configuration ( such as logon script)
    based upon the windows login.

    any help would be appreciated.

    Thanks,


    --
    coolguy123
    ------------------------------------------------------------------------
    coolguy123's Profile: http://forums.techarena.in/members/coolguy123.htm
    View this thread: http://forums.techarena.in/server-scripting/1135118.htm

    http://forums.techarena.in

    Previous Posts In This Thread:

    On Thursday, March 05, 2009 2:01 AM
    coolguy123 wrote:

    Script for Thunderbird configuration
    We are going to use thunderbird as email client in our comapny. I have
    got msi file for the software deployment. but i would like to know is
    there any way to automate client configuration ( such as logon script)
    based upon the windows login.

    any help would be appreciated.

    Thanks,


    --
    coolguy123
    ------------------------------------------------------------------------
    coolguy123's Profile: http://forums.techarena.in/members/coolguy123.htm
    View this thread: http://forums.techarena.in/server-scripting/1135118.htm

    http://forums.techarena.in

    On Thursday, March 05, 2009 2:20 AM
    coolguy123 wrote:

    Re: Script for Thunderbird configuration
    I have got a script from the following location.

    http://forums.mozillazine.org/viewtopic.php?t=57260

    I am posting the script here for your reference. But can someone help
    me what are the changes i should made in this to work in my
    organisaztion.


    ---------SCRIPT START---------
    @echo off

    IF NOT EXIST "%ProgramFiles%\Thunderbird\Thunderbird.exe" GOTO END
    IF EXIST "%APPDATA%\Thunderbird" GOTO MANDATORYCONFIG

    ECHO.
    ECHO Setting up new Thunderbird user profile - Standby for Action!

    ECHO.
    echo Creating default profile....
    "%programfiles%\Thunderbird\thunderbird.exe" -createprofile default

    ECHO.
    Echo Customizing profile...

    call :GetProfileName

    for /f "Tokens=2*" %%m in ('net user %USERNAME% /domain ^| find "Full
    Name"' ) do set FULLNAME=%%n

    SET TBPREFS=%APPDATA%\Thunderbird\Profiles\default\%TBPROFILE%\prefs.js


    ECHO user_pref("mail.account.account1.identities", "id1"); >>
    "%TBPREFS%"
    ECHO user_pref("mail.account.account1.server", "server1");>>
    "%TBPREFS%"
    ECHO user_pref("mail.account.account2.server", "server2");>>
    "%TBPREFS%"
    ECHO user_pref("mail.accountmanager.accounts", "account1,account2");>>
    "%TBPREFS%"
    ECHO user_pref("mail.accountmanager.defaultaccount", "account1");>>
    "%TBPREFS%"
    ECHO user_pref("mail.accountmanager.localfoldersserver", "server2");>>
    "%TBPREFS%"
    ECHO user_pref("mail.identity.id1.compose_html", false);>> "%TBPREFS%"

    ECHO user_pref("mail.identity.id1.draft_folder",
    "imap://%username%@server.mycompany.com/Drafts");>> "%TBPREFS%"
    ECHO user_pref("mail.identity.id1.drafts_folder_picker_mode", "0");>>
    "%TBPREFS%"
    ECHO user_pref("mail.identity.id1.encryption_cert_name", "");>>
    "%TBPREFS%"
    ECHO user_pref("mail.identity.id1.encryptionpolicy", 0);>> "%TBPREFS%"

    ECHO user_pref("mail.identity.id1.fcc_folder",
    "imap://%username%@server.mycompany.com/Sent");>> "%TBPREFS%"
    ECHO user_pref("mail.identity.id1.fcc_folder_picker_mode", "0");>>
    "%TBPREFS%"
    ECHO user_pref("mail.identity.id1.fullName", "%FULLNAME%");>>
    "%TBPREFS%"
    ECHO user_pref("mail.identity.id1.reply_on_top", 1);>> "%TBPREFS%"
    ECHO user_pref("mail.identity.id1.sign_mail", false);>> "%TBPREFS%"
    ECHO user_pref("mail.identity.id1.signing_cert_name", "");>>
    "%TBPREFS%"
    ECHO user_pref("mail.identity.id1.smtpServer", "smtp1");>> "%TBPREFS%"

    ECHO user_pref("mail.identity.id1.stationery_folder",
    "imap://%username%@server.mycompany.com/Templates");>> "%TBPREFS%"
    ECHO user_pref("mail.identity.id1.useremail",
    "%username%@mycompany.com");>> "%TBPREFS%"
    ECHO user_pref("mail.identity.id1.valid", true);>> "%TBPREFS%"
    ECHO user_pref("mail.root.imap", "C:\\DOCUMENTS AND
    SETTINGS\\%username%\\APPLICATION
    DATA\\Thunderbird\\Profiles\\default\\%TBPROFILE%\\ImapMail");>>
    "%TBPREFS%"
    ECHO user_pref("mail.root.none", "C:\\DOCUMENTS AND
    SETTINGS\\%username%\\APPLICATION
    DATA\\Thunderbird\\Profiles\\default\\%TBPROFILE%\\Mail");>> "%TBPREFS%"

    ECHO user_pref("mail.server.server1.capability", 25137);>> "%TBPREFS%"

    ECHO user_pref("mail.server.server1.directory", "C:\\DOCUMENTS AND
    SETTINGS\\%username%\\Local Settings\\APPLICATION
    DATA\\Thunderbird\\Profiles\\default\\%TBPROFILE%\\ImapMail\\server.mycompany.com");>>
    "%TBPREFS%"
    ECHO user_pref("mail.server.server1.hostname",
    "server.mycompany.com");>> "%TBPREFS%"
    ECHO user_pref("mail.server.server1.isSecure", true);>> "%TBPREFS%"
    ECHO user_pref("mail.server.server1.login_at_startup", true);>>
    "%TBPREFS%"
    ECHO user_pref("mail.server.server1.name",
    "%username%@mycompany.com");>> "%TBPREFS%"
    ECHO user_pref("mail.server.server1.port", 993);>> "%TBPREFS%"
    ECHO user_pref("mail.server.server1.type", "imap");>> "%TBPREFS%"
    ECHO user_pref("mail.server.server1.userName", "%username%");>>
    "%TBPREFS%"
    ECHO user_pref("mail.server.server2.directory", "C:\\DOCUMENTS AND
    SETTINGS\\%username%\\APPLICATION
    DATA\\Thunderbird\\Profiles\\default\\%TBPROFILE%\\Mail\\Local
    Folders");>> "%TBPREFS%"
    ECHO user_pref("mail.server.server2.hostname", "Local Folders");>>
    "%TBPREFS%"
    ECHO user_pref("mail.server.server2.name", "Local Folders");>>
    "%TBPREFS%"
    ECHO user_pref("mail.server.server2.type", "none");>> "%TBPREFS%"
    ECHO user_pref("mail.server.server2.userName", "nobody");>> "%TBPREFS%"

    ECHO user_pref("mail.smtp.defaultserver", "smtp1");>> "%TBPREFS%"
    ECHO user_pref("mail.smtpserver.smtp1.auth_method", 1);>> "%TBPREFS%"
    ECHO user_pref("mail.smtpserver.smtp1.hostname",
    "server.mycompany.com");>> "%TBPREFS%"
    ECHO user_pref("mail.smtpserver.smtp1.port", 26);>> "%TBPREFS%"
    ECHO user_pref("mail.smtpserver.smtp1.try_ssl", 2);>> "%TBPREFS%"
    ECHO user_pref("mail.smtpserver.smtp1.username", "%username%");>>
    "%TBPREFS%"
    ECHO user_pref("mail.smtpservers", "smtp1");>> "%TBPREFS%"
    ECHO user_pref("mail.startup.enabledMailCheckOnce", true);>>
    "%TBPREFS%"


    call :GetProfileName

    ECHO.
    Echo Applying mandatory settings...

    SET TBPREFS=%APPDATA%\Thunderbird\Profiles\default\%TBPROFILE%\user.js


    ECHO user_pref("ldap_2.autoComplete.directoryServer",
    "ldap_2.servers.mycompany");> "%TBPREFS%"
    ECHO user_pref("ldap_2.autoComplete.useDirectory", true);>> "%TBPREFS%"

    ECHO user_pref("ldap_2.prefs_migrated", true);>> "%TBPREFS%"
    ECHO user_pref("ldap_2.servers.history.filename", "history.mab");>>
    "%TBPREFS%"
    ECHO user_pref("ldap_2.servers.history.replication.lastChangeNumber",
    0);>> "%TBPREFS%"
    ECHO user_pref("ldap_2.servers.mycompany.auth.savePassword", true);>>
    "%TBPREFS%"
    ECHO user_pref("ldap_2.servers.mycompany.description", "My Company");>>
    "%TBPREFS%"
    ECHO user_pref("ldap_2.servers.mycompany.filename", "abook-1.mab");>>
    "%TBPREFS%"
    ECHO user_pref("ldap_2.servers.mycompany.position", 3);>> "%TBPREFS%"
    ECHO user_pref("ldap_2.servers.mycompany.replication.lastChangeNumber",
    0);>> "%TBPREFS%"
    ECHO user_pref("ldap_2.servers.mycompany.uri",
    "ldap://server.mycompany.com:389/OU=Departments, DC=subdomain,
    DC=mycompany, DC=com??sub?(objectclass=User)");>> "%TBPREFS%"
    ECHO user_pref("ldap_2.servers.pab.filename", "abook.mab");>>
    "%TBPREFS%"
    ECHO user_pref("ldap_2.servers.pab.replication.lastChangeNumber", 0);>>
    "%TBPREFS%"
    ECHO user_pref("ldap_2.servers.user_directory_1.filename",
    "user_directory_1.mab");>> "%TBPREFS%"
    ECHO
    user_pref("ldap_2.servers.user_directory_1.replication.lastChangeNumber",
    0);>> "%TBPREFS%"
    ECHO user_pref("ldap_2.servers.user_directory_1.uri",
    "moz-abldapdirectory://user_directory_1.mab");>> "%TBPREFS%"
    ECHO user_pref("mail.inline_attachments", false);>> "%TBPREFS%"
    ECHO user_pref("mailnews.message_display.disable_remote_image", true);
    ECHO user_pref("network.proxy.autoconfig_url",
    "http://webcache/proxy.pac");>> "%TBPREFS%"
    ECHO user_pref("network.proxy.type", 2);>> "%TBPREFS%"


    exit



    cd %APPDATA%

    dir "%APPDATA%\Thunderbird\Profiles\default\*.slt" /b > profname.tmp

    ECHO XPYP[*'CC-\1P\QX,=P,APZ5O!PQ2O~5aaI~}Ksx>_.COM
    _.COM SET TBPROFILE=>env-setter.BAT
    TYPE profname.tmp>>env-setter.BAT
    CALL env-setter.BAT
    DEL env-setter.BAT
    DEL _.COM
    DEL profname.tmp
    -----------------SCRIPT END---------------


    --
    coolguy123
    ------------------------------------------------------------------------
    coolguy123's Profile: http://forums.techarena.in/members/coolguy123.htm
    View this thread: http://forums.techarena.in/server-scripting/1135118.htm

    http://forums.techarena.in

    On Thursday, March 05, 2009 3:38 PM
    Al Dunbar wrote:

    Re: Script for Thunderbird configuration
    I take it that it does not work. What happens when you try to run the
    script?

    /Al

    On Friday, March 06, 2009 12:39 AM
    coolguy123 wrote:

    I dont know what are the changes i should make in this script.
    I dont know what are the changes i should make in this script. so I
    didn't test this. can some one help me in this.?

    Thanks


    --
    coolguy123
    ------------------------------------------------------------------------
    coolguy123's Profile: http://forums.techarena.in/members/coolguy123.htm
    View this thread: http://forums.techarena.in/server-scripting/1135118.htm

    http://forums.techarena.in

    On Friday, March 06, 2009 8:13 PM
    Al Dunbar wrote:

    Re: Script for Thunderbird configuration
    "coolguy123" <coolguy123.3om5bf@DoNotSpam.com> wrote in message
    news:coolguy123.3om5bf@DoNotSpam.com...

    What makes you think that there are changes you should make, and how are we
    supposed to know what changes might be required for it to work in your
    organisation? Like, what is there about your organisation that might be
    different from the organization in which the script actually worked?

    /Al


    Submitted via EggHeadCafe - Software Developer Portal of Choice
    Excel 2007 Filter Tool
    http://www.eggheadcafe.com/tutorials...lter-tool.aspx

Similar Threads

  1. How to backup WLC configuration script?
    By ChittiBabu in forum Networking & Security
    Replies: 4
    Last Post: 31-12-2011, 04:11 PM
  2. Migrate Thunderbird mail (Windows) to Thunderbird Mac OS X
    By Strangers in forum Technology & Internet
    Replies: 5
    Last Post: 21-09-2010, 10:26 AM
  3. Bash script to import variable configuration
    By Anja in forum Software Development
    Replies: 5
    Last Post: 23-08-2010, 08:12 PM
  4. PHP script for Auto configuration file for Outlook Express
    By Soumen in forum Software Development
    Replies: 5
    Last Post: 22-01-2010, 05:25 PM
  5. Replies: 2
    Last Post: 14-01-2009, 01:25 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,667,302.10160 seconds with 17 queries