Wednesday, September 30, 2015

Thunderbird setup to work like Outlook

1. Categories

Coloring is done base on Thunderbird Tags. To sync tags from Zimbra to local Thunderbir just create the same name tag and color in Zimbra and Thunderbird and update remote filters to mark by tags on Zimbra only. 
      To make zimbra tags displayed in Thunderbird, just name is with the same names as in your /home/USER/.thunderbird/xxxxxx.default/prefs.js file. 
user_pref("mailnews.tags.urgentmails.color""#FF0000");
user_pref("mailnews.tags.urgentmails.tag""urgentmails");
2. Remove blockquoters/ Getting rid of colored quote bars...
File: create file if not exist "~/.thunderbird/XXXXXXX.default/chrome/userContent.css"
blockquote[type=cite] {
  padding-bottom: 0 !important;
  padding-top: 0 !important;
  padding-left: 0 !important;
  border-left: none !important;
  border-right: none !important;
}
3. Read status
Menu Edit/Preferences , tab Advanced/Reading & Display. Uncheck "Automatically mark message as read".
Thunderbird Tags are located at /home/USER/.thunderbird/xxxxxx.default/prefs.js , example:
user_pref("mailnews.tags.deploy.color""#FF0000");
user_pref("mailnews.tags.deploy.tag""deploy");
4. Set Cursor position to top after Reply
Edit->Prefernces->Advanced->General, and click on "Config Editor".
mail.identity.default.reply_on_top = 1
5. No sorting by click over column name
Adjust in all folders: mail have to sorted by date - the most recent on top.
Disable change of sorting: This is useful then you have new mail at the top on the table, and occasional click harm sorting by date.

6. Reply format like in Outlook
Install SmartTemplate4 addon.
HTML Template for new Mail:
<font face="Verdana" style="font-size:14px">Hello ,
<br><br><br><br>
Thanks,<br>
XXXXX, XXXXX.</font>

HTML for reply:
<div style="font-family:Verdana; font-size:14px">
<hr>
<div><b>From:</b> %from%</div>
<div><b>Sent:</b>%X:=sent% %A%, %B% %d%, %Y% %l%:%M%%p(3)%</div><div><b>To:</b> %to%</div>
<div><b>CC:</b> %cc%</div>
<div><b>Subject:</b> %subject%</div>
</div>
<br/>
  
<font face="Verdana" style="font-size:14px">Hello %from(name)%,
<br/><br/><br/><br/>
Thanks,<br/>
XXXXX XXXXXX.</font>

HTML Template forward:
<div style="font-family:Verdana; font-size:14px">
<hr>
<div><b>From:</b> %from%</div>
<div><b>Sent:</b> %date%</div>
<div><b>To:</b> %to%</div>
<div><b>CC:</b> %cc%</div>
<div><b>Subject:</b> %subject%</div>
</div>
<br/>
<font face="Verdana" style="font-size:14px">Hello ,
<br/><br/><br/><br/>
Thanks,<br/>
XXXXX XXXXXX.</font>
7. Spell checkers 
Menu Tools/Add-ons, search and install:
"United States English Dictionary"
"Russian spelling dictionary"

8. Calendar + Tasks
For version 3.0.8 Thunderbird (in Ubuntu 10.04) the old version of plugin is needed: to get it from Ubuntu repository or 
9. Google Calendar
Install Lightning addon first from Tool>Addons menu item. For 64 bit use this link.
10. MS Exchange Private Calendar
Addon "Exchange 2007/2010 Calendar and Tasks Provider" (I used "Version 3.2.0-Beta7" from "Other versions" for TB 17 - works fine):
https://addons.mozilla.org/en-US/thunderbird/addon/exchange-20072010-calendar-/?src=search
 Set up process:
Switch to calendar tab in Thunderbird. In the list of calendars do right click and select "New calendar", select "On the Network", select "Microsoft Exchange", and put into Location field
"https://DOMAIN\USERNAME@mail.YOURCOMPANY.com/EWS/Exchange.asmx". Please replace "rivanov" with your account name.

11. Update Inbox sub-folders during Imap sync
mail that are moved by MS exchange to subfolders by Exchange filters are not downloaded to Thunderbird automatically.
To resolve this:  Please look at attached image. There is Properties window of folder. Please check "When getting new messages .....".
Another way to automatically check for new messages in other folders: Under Tools > Options > Advanced, click the Config Editor button and setmail.server.default.check_all_folders_for_new to true



12. Activate Quick Filter Bar
Activate it in main Menu: View - Toolbar - Quick Filter Bar
13. For advanced mail filtering at server side
There is no ability to Exchange to let Thunderbird show mail with Star or Tag - I found only one way is by Priority of mail.
To show priority column as image in Thunderbird install addon "Enhanced Priority Display", and adjust filter at OWA to change priority as required. On Thunderbird you need show priority column manually.
For example, It can be applied for error messages from Jenkins, that contains your name.

14. To apply filters to mails in sub-folders
To make filtering works for subfolders: create a new string preference "mail.server.default.applyIncomingFilters" to "true". Even if it seems odd, do NOT create a boolean setting, it has to be a STRING setting with the value "true".
But note, that you should setup your filters in a special way: the most greedy filters should be placed under the less greedy ones.
Example: 'All Git messages' filter (which is used to move GIT msgs to 'GIT' folder) is more greedy than filters for Git messages coloring, so filters for coloring should be placed upper than 'All Git messages' filter:


15. Send messages in HTML only
Go to Edit > Preferences > Composition > Send Options... > Text Format and select 'Send message in HTML anyway'

16. Open links in non default browser
It useful sometimes to separate some pages and general search tabs in different browsers, Thunderbird have ability to ask how to open links from mails with dialog "Open with".
set in Edit > Preferences> Advanced tab > "Configure Editor" (source of wizdom)
network.protocol-handler.warn-external.https = true
17. 'Colored Diff' for ease view of code changes mails at git.

18. Highlighted Java code just like in your code editor.

19. Change order of the accounts.
user_pref("mail.accountmanager.accounts"...
user_pref("mail.accountmanager.defaultaccount""account4"); <--- First should be default

20. 24h time format
Append to the file ~/.profile follow string:
export LC_TIME=ru_RU.utf8
Restart your computer or lightdm.