Bug 854048 - Fix batch move/deletion for IMAP messages; r=asuth
Merge pull request #9100 from mozsquib/email-imap-deletion

Bug 854048 - Fix batch move/deletion for IMAP messages
Bug 853716 - handle sms: uris with a body and no number r=borjasalguero
Remove apps/sms/js/search_utils.js

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Implement Utils.Template API

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Bug 854494 - [MMS][SMS] Remove the "no results returned" message from contact lookup

https://bugzilla.mozilla.org/show_bug.cgi?id=854494
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Make rmatcher more efficient for template var interpolation

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Remove unnecessary element property initialization; create template vars via Utils.Template.create

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Safe template string interpolation.

- textContent w/ manual HTML entity conversion when suspicious HTML is detected
- innerHTML for auto-conversion of entities when safe

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Improved name highlighting

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Use Node.ELEMENT_NODE instead of literal value; Use Node.COMMENT_NODE instead of document.COMMENT_NODE

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Utils.Template refactor

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Fix copy-paste, rename bug

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Fix template id names

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Update Utils.Template uses; fix naming mixups; revert img src change

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Update miscopied test

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Rename Utils.Template.prototype.interpolate method's optional property "ignore" => "safe".

In the context of the interpolate method, "safe" should have enough meaning to communicate the functionality.

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Add comment explaining the use of WeakMap to store the template string

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Break up escaping and formatting tasks

- Utils.escapeHTML now only escapes HTML
- Utils.Message.format escapes HTML and applies special message display formatting
- Utils.escapeRegex is used to make user input safe for regex construction

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
Simplify Utils.Template.protototype.template

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>