See ChangeLog.

Monotone-Parent: 0b55311518f426ab169d4fd0db8cfe9a54c3e1e6
Monotone-Revision: dd1c46e2753c2224bf847ca7bf850d63b8f97372

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2010-06-30T17:26:06
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2010-06-30 17:26:06 +00:00
parent a7a47ba59b
commit e8ecf7e53b
4 changed files with 9 additions and 3 deletions

View File

@@ -134,8 +134,6 @@ function addressFieldLostFocus(sender) {
var addresses = sender.value.split(',');
if (addresses.length > 0) {
var emailRE = /^([\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+\.)*[\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+@((((([a-z0-9]{1}[a-z0-9\-]{0,62}[a-z0-9]{1})|[a-z])\.)+[a-z]{2,6})|(\d{1,3}\.){3}\d{1,3}(\:\d{1,5})?)$/i;
var first = true;
for (var i = 0; i < addresses.length; i++) {
var words = addresses[i].split(' ');
@@ -143,6 +141,7 @@ function addressFieldLostFocus(sender) {
for (var j = 0; j < words.length; j++) {
var word = words[j].strip().replace(/<(.+)>/, "$1");
if (word.length > 0) {
// Use the regexp defined in generic.js
if (emailRE.test(word)) {
phrase.push('<' + word + '>');
if (first) {