Bug 533314 - Tests: Use only invalid mail addresses like foo@foo.invalid instead of foo@invalid.com. r=mbanner

This commit is contained in:
Sebastian Hengst 2012-12-28 10:32:53 +01:00
Родитель 1b9a67a475
Коммит 4360b7626b
92 изменённых файлов: 349 добавлений и 349 удалений

Просмотреть файл

@ -131,8 +131,8 @@ function GetNextNMessages(folder)
function GetMsgKeyFromURI(uri) {
// Format of 'uri' : protocol://email/folder#key?params
// '?params' are optional
// ex : mailbox-message://john%2Edoe@pop.isp.com/Drafts#123456?fetchCompleteMessage=true
// ex : mailbox-message://john%2Edoe@pop.isp.com/Drafts#12345
// ex : mailbox-message://john%2Edoe@pop.isp.invalid/Drafts#123456?fetchCompleteMessage=true
// ex : mailbox-message://john%2Edoe@pop.isp.invalid/Drafts#12345
// We keep only the part after '#' and before an optional '?'.
// The regexp expects 'key' to be an integer (a serie of digits) : '\d+'.
let match = /.+#(\d+)/.exec(uri);

Просмотреть файл

@ -107,7 +107,7 @@ var gExpandedHeaderView = {};
* information is contained in the view objects.
* For a given entry in this array you can ask for:
* .headerName name of the header (i.e. 'to'). Always stored in lower case
* .headerValue value of the header "johndoe@netscape.net"
* .headerValue value of the header "johndoe@example.com"
*/
var currentHeaderData = {};

Просмотреть файл

@ -35,7 +35,7 @@ function setupModule(module) {
// Create a NNTP server
let nntpServer = MailServices.accounts
.createIncomingServer(null, "example.nntp.com", "nntp")
.createIncomingServer(null, "example.nntp.invalid", "nntp")
.QueryInterface(Components.interfaces.nsINntpIncomingServer);
identity = MailServices.accounts.createIdentity();

Просмотреть файл

@ -152,7 +152,7 @@ function test_deleting_contact_causes_confirm_prompt()
gMockPromptService.register();
// Create a contact that we'll try to delete
let contact1 = create_contact("test@nobody.com", "Sammy Jenkis", true);
let contact1 = create_contact("test@example.com", "Sammy Jenkis", true);
let toDelete = [contact1];
let bundle = Services.strings
@ -211,9 +211,9 @@ function test_deleting_contacts_causes_confirm_prompt()
gMockPromptService.register();
// Create some contacts that we'll try to delete.
let contact2 = create_contact("test2@nobody.com", "Leonard Shelby", true);
let contact3 = create_contact("test3@nobody.com", "John Edward Gammell", true);
let contact4 = create_contact("test4@nobody.com", "Natalie", true);
let contact2 = create_contact("test2@example.com", "Leonard Shelby", true);
let contact3 = create_contact("test3@example.com", "John Edward Gammell", true);
let contact4 = create_contact("test4@example.com", "Natalie", true);
let toDelete = [contact2, contact3, contact4];
@ -327,10 +327,10 @@ function test_writing_to_mailing_list() {
let mlURI = addedList.URI;
// Create some contacts that we'll try to contact
let contacts = [create_contact("test2@nobody.com", "Leonard Shelby", true),
create_contact("test3@nobody.com", "John Edward Gammell",
let contacts = [create_contact("test2@example.com", "Leonard Shelby", true),
create_contact("test3@example.com", "John Edward Gammell",
true),
create_contact("test4@nobody.com", "Natalie", true),];
create_contact("test4@example.com", "Natalie", true),];
load_contacts_into_mailing_list(addedList, contacts);

Просмотреть файл

@ -31,7 +31,7 @@ var setupModule = function(module) {
folder = folderHelper.create_folder("Forward Content Testing");
add_message_to_folder(folder, create_message({
subject: "something like <foo@bar>",
subject: "something like <foo@example>",
body: {body: "Testing bug 397021!"},
}));
}

Просмотреть файл

@ -22,8 +22,8 @@ function setupModule(module) {
folder = create_folder("SMIME_A");
let msg = create_encrypted_smime_message({
from: ["Tinderbox", "tinderbox@invalid.com"],
to: [["Tinderbox", "tinderbox@invalid.com"]],
from: ["Tinderbox", "tinderbox@foo.invalid"],
to: [["Tinderbox", "tinderbox@foo.invalid"]],
subject: "Albertine disparue (La Fugitive)",
body: { body: encrypted_blurb },
});

Просмотреть файл

@ -20,13 +20,13 @@ function setupModule(module) {
folder = create_folder("DisplayNameA");
add_message_to_folder(folder, create_message({
clobberHeaders: {from: "Carter Burke <cburke@wyutani.com>"},
clobberHeaders: {from: "Carter Burke <cburke@wyutani.invalid>"},
}));
add_message_to_folder(folder, create_message({
clobberHeaders: {from: '"Ellen Ripley" <eripley@wyutani.com>'},
clobberHeaders: {from: '"Ellen Ripley" <eripley@wyutani.invalid>'},
}));
add_message_to_folder(folder, create_message({
clobberHeaders: {from: "'Dwayne Hicks' <dhicks@uscmc.mil>"},
clobberHeaders: {from: "'Dwayne Hicks' <dhicks@uscmc.invalid>"},
}));
}

Просмотреть файл

@ -33,8 +33,8 @@ function test_folder_names_in_favorite_pane_view_mode() {
mc.window.gFolderTreeView.mode = "favorite";
assert_folder_at_index_as(0, "duplicatedName - Local Folders");
assert_folder_at_index_as(1, "duplicatedName - tinderbox@invalid.com");
assert_folder_at_index_as(2, "duplicatedName - tinderbox@invalid.com");
assert_folder_at_index_as(1, "duplicatedName - tinderbox@foo.invalid");
assert_folder_at_index_as(2, "duplicatedName - tinderbox@foo.invalid");
assert_folder_at_index_as(3, "uniqueName");
// Reset the flags to the state they were previously.

Просмотреть файл

@ -7,7 +7,7 @@
var testFolderTreeMode = {
__proto__: IFolderTreeMode,
generateMap: function testFolderTreeMode_generateMap(aFTV) {
// Pick the tinderbox@invalid.com inbox and use it as the only folder
// Pick the tinderbox@foo.invalid inbox and use it as the only folder
let acctMgr =
Components.classes["@mozilla.org/messenger/account-manager;1"]
.getService(Components.interfaces.nsIMsgAccountManager);

Просмотреть файл

@ -140,7 +140,7 @@ function create_simple_filter() {
opList.value = Components.interfaces.nsMsgSearchOp.Is;
let searchValList = fec.e("searchVal0");
let searchVal = fec.window.document.getAnonymousNodes(searchValList)[0];
searchVal.setAttribute("value", "test@invalid.com");
searchVal.setAttribute("value", "test@foo.invalid");
let filterActions = fec.e("filterActionList");
let firstAction = filterActions.getItemAtIndex(0);

Просмотреть файл

@ -20,7 +20,7 @@ var testFolder = null;
var msgHdr = null;
var replyToListWindow = null;
var identityString1 = "tinderbox_correct_identity@invalid.com";
var identityString1 = "tinderbox_correct_identity@foo.invalid";
var setupModule = function (module) {
@ -43,9 +43,9 @@ var addMessageToFolder = function (aFolder) {
var source = "From - Sat Nov 1 12:39:54 2008\n" +
"X-Mozilla-Status: 0001\n" +
"X-Mozilla-Status2: 00000000\n" +
"Delivered-To: <tinderbox_identity333@invalid.com>\n" +
"Delivered-To: <tinderbox_identity333@foo.invalid>\n" +
"Delivered-To: <" + identityString1 + ">\n" +
"Delivered-To: <tinderbox_identity555@invalid.com>\n" +
"Delivered-To: <tinderbox_identity555@foo.invalid>\n" +
"Message-ID: <" + msgId + ">\n" +
"Date: Wed, 11 Jun 2008 20:32:02 -0400\n" +
"From: Tester <tests@mozillamessaging.invalid>\n" +
@ -74,7 +74,7 @@ var addIdentitiesAndFolder = function() {
var identity2 = acctMgr.createIdentity();
//identity.fullName = "Tinderbox_Identity1";
identity2.email="tinderbox_identity1@invalid.com";
identity2.email="tinderbox_identity1@foo.invalid";
var identity = acctMgr.createIdentity();
//identity.fullName = "Tinderbox_Identity1";

Просмотреть файл

@ -16,8 +16,8 @@ var decoyFolder;
var acctMgr;
var localAccount;
var secondIdentity;
var myEmail = "sender@nul.nul"; // Dictated by messagerInjector.js
var friendEmail = "carl@sagan.com";
var myEmail = "sender@nul.invalid"; // Dictated by messagerInjector.js
var friendEmail = "carl@sagan.invalid";
var friendName = "Carl Sagan";
var headertoFieldMe;
var collectedAddresses;
@ -49,7 +49,7 @@ function setupModule(module) {
// 3) Create a second identity and hold onto it for later
secondIdentity = acctMgr.createIdentity();
secondIdentity.email = "nobody@nowhere.com";
secondIdentity.email = "nobody@nowhere.invalid";
folder = create_folder("DisplayNamesA");
decoyFolder = create_folder("DisplayNamesB");

Просмотреть файл

@ -1,4 +1,4 @@
[{"product": "personalized_email", "addresses": ["green@bar.com",
"green_llama@bar.com", "gllama@bar.cbar"}, {"product":
[{"product": "personalized_email", "addresses": ["green@foo.invalid",
"green_llama@foo.invalid", "gllama@bar.cbar"}, {"product":
, "price": "20.00", "provider": "fo"]w

Просмотреть файл

@ -11,7 +11,7 @@
<p>
First name: <input value="Green" id="first" name="firstname" type="text"><br>
Last name: <input value="Llama" id="last" name="lastname" type="text"><br>
Email: <input value="da.green.llama@bar.com" id="email" name="email" type="text"><br>
Email: <input value="da.green.llama@foo.invalid" id="email" name="email" type="text"><br>
<input value="Send" type="submit">
</p>
</form>

Просмотреть файл

@ -2,12 +2,12 @@
"green_llama@example.com", "gllama@example.com"], "succeeded": true, "quote":
"b28acb3c0a464d33af22", "price": 0, "provider": "bar"}, {"product":
"personalized_email", "addresses": ["green-bar@example.com", "me-bar@example.com",
"green-bar@madeup.nul", "green@bar.nul", "green@barexample.nul",
"greenbar@greenllama.nul", "mebar@greenllama.nul"], "succeeded": true, "quote":
"green-bar@madeup.invalid", "green@bar.invalid", "green@barexample.invalid",
"greenbar@greenllama.invalid", "mebar@greenllama.invalid"], "succeeded": true, "quote":
"3f93e48679ab46a49475", "price": "20.00", "provider": "foo"},
{"product": "personalized_email", "addresses": ["corrupt@corrupt.nul"],
{"product": "personalized_email", "addresses": ["corrupt@corrupt.invalid"],
"succeeded": true, "quote": "abcdefg", "price": 0, "provider": "corrupt"},
{"product": "personalized_email", "addresses": ["error@error.nul"],
{"product": "personalized_email", "addresses": ["error@error.invalid"],
"succeeded": true, "quote": "abcdefg", "price": 0, "provider": "err"},
{"addresses": ["default@example.com", {"address": "cheap@example.com", "price": "0"},
{"address": "expensive@example.com", "price": "$20.00"}], "succeeded": true, "price": "$20-$0", "provider": "multi"}]

Просмотреть файл

@ -608,7 +608,7 @@ function subtest_shows_error_on_empty_suggest_from_name(w) {
*/
function test_throws_console_error_on_corrupt_XML() {
// Open the provisioner - once opened, let subtest_get_an_account run.
get_to_order_form("corrupt@corrupt.nul");
get_to_order_form("corrupt@corrupt.invalid");
let tab = mc.tabmail.currentTabInfo;
// Record how many accounts we start with.
@ -997,7 +997,7 @@ function test_external_link_opening_behaviour() {
function test_return_to_provisioner_on_error_XML() {
const kOriginalTabNum = mc.tabmail.tabContainer.childNodes.length;
get_to_order_form("error@error.nul");
get_to_order_form("error@error.invalid");
let tab = mc.tabmail.currentTabInfo;
let doc = tab.browser.contentWindow.document;

Просмотреть файл

@ -108,7 +108,7 @@ function setupModule(module) {
// Create a second identity to check cross-account
// notifications.
var identity2 = MailServices.accounts.createIdentity();
identity2.email = "new-account@invalid.com";
identity2.email = "new-account@foo.invalid";
var server = MailServices.accounts
.createIncomingServer("nobody",
@ -331,7 +331,7 @@ function test_show_only_subject() {
Services.prefs.setBoolPref("mail.biff.alert.show_sender", false);
Services.prefs.setBoolPref("mail.biff.alert.show_subject", true);
let sender = ["John Cleese", "john@cleese.net"];
let sender = ["John Cleese", "john@cleese.invalid"];
let subject = "This should not be displayed";
let messageBody = "My message preview";
@ -356,7 +356,7 @@ test_show_only_subject.EXCLUDED_PLATFORMS = ['winnt', 'darwin'];
* Test that we can show the message sender in the notification.
*/
function test_show_sender() {
let sender = ["John Cleese", "john@cleese.net"];
let sender = ["John Cleese", "john@cleese.invalid"];
make_gradually_newer_sets_in_folder(gFolder,
[{count: 1,
from: sender}]);
@ -371,7 +371,7 @@ test_show_sender.EXCLUDED_PLATFORMS = ['winnt', 'darwin'];
*/
function test_hide_sender() {
Services.prefs.setBoolPref("mail.biff.alert.show_sender", false);
let sender = ["John Cleese", "john@cleese.net"];
let sender = ["John Cleese", "john@cleese.invalid"];
make_gradually_newer_sets_in_folder(gFolder,
[{count: 1,
from: sender}]);
@ -389,7 +389,7 @@ function test_show_only_sender() {
Services.prefs.setBoolPref("mail.biff.alert.show_sender", true);
Services.prefs.setBoolPref("mail.biff.alert.show_subject", false);
let sender = ["John Cleese", "john@cleese.net"];
let sender = ["John Cleese", "john@cleese.invalid"];
let subject = "This should not be displayed";
let messageBody = "My message preview";
@ -447,7 +447,7 @@ function test_show_only_preview() {
Services.prefs.setBoolPref("mail.biff.alert.show_sender", false);
Services.prefs.setBoolPref("mail.biff.alert.show_subject", false);
let sender = ["John Cleese", "john@cleese.net"];
let sender = ["John Cleese", "john@cleese.invalid"];
let subject = "This should not be displayed";
let messageBody = "My message preview";
make_gradually_newer_sets_in_folder(gFolder,

Просмотреть файл

@ -110,7 +110,7 @@ function add_email_to_address_book(aEmailAddr) {
function test_filter_in_address_book() {
let bookSetDef = {
from: ["Qbert Q Qbington", "q@q.q"],
from: ["Qbert Q Qbington", "q@q.invalid"],
count: 1
};
add_email_to_address_book(bookSetDef.from[1]);
@ -167,7 +167,7 @@ function test_filter_tags() {
function test_filter_text_single_word_and_predicates() {
let folder = create_folder("QuickFilterBarTextSingleWord");
let whoFoo = ["zabba", "foo@madeup.nul"];
let whoFoo = ["zabba", "foo@madeup.invalid"];
let [setInert, setSenderFoo, setRecipientsFoo, setSubjectFoo, setBodyFoo] =
make_new_sets_in_folder(folder, [
{count: 1}, {count:1, from: whoFoo}, {count: 1, to: [whoFoo]},
@ -222,8 +222,8 @@ function test_filter_text_single_word_and_predicates() {
function test_filter_text_multi_word() {
let folder = create_folder("QuickFilterBarTextMultiWord");
let whoFoo = ["foo", "zabba@madeup.nul"];
let whoBar = ["zabba", "bar@madeup.nul"];
let whoFoo = ["foo", "zabba@madeup.invalid"];
let whoBar = ["zabba", "bar@madeup.invalid"];
let [setInert, setPeepMatch, setSubjReverse, setSubjectJustFoo] =
make_new_sets_in_folder(folder, [
{count: 1}, {count:1, from: whoFoo, to: [whoBar]},
@ -243,8 +243,8 @@ function test_filter_text_multi_word() {
* sender/recipients/subject/body toggle buttons.
*/
function test_filter_text_constraints_propagate() {
let whoFoo = ["foo", "zabba@madeup.nul"];
let whoBar = ["zabba", "bar@madeup.nul"];
let whoFoo = ["foo", "zabba@madeup.invalid"];
let whoBar = ["zabba", "bar@madeup.invalid"];
let folderOne = create_folder("QuickFilterBarTextPropagate1");
let [setSubjFoo, setWhoFoo] = make_new_sets_in_folder(folderOne,

Просмотреть файл

@ -141,13 +141,13 @@ class ThunderTestProfile(mozrunner.ThunderbirdProfile):
'mail.identity.id1.htmlSigFormat' : False,
'mail.identity.id1.htmlSigText' : "Tinderbox is soo 90ies",
'mail.identity.id1.smtpServer' : "smtp1",
'mail.identity.id1.useremail' : "tinderbox@invalid.com",
'mail.identity.id1.useremail' : "tinderbox@foo.invalid",
'mail.identity.id1.valid' : True,
'mail.identity.id2.fullName' : "Tinderboxpushlog",
'mail.identity.id2.htmlSigFormat' : True,
'mail.identity.id2.htmlSigText' : "Tinderboxpushlog is the new <b>hotness!</b>",
'mail.identity.id2.smtpServer' : "smtp1",
'mail.identity.id2.useremail' : "tinderboxpushlog@invalid.com",
'mail.identity.id2.useremail' : "tinderboxpushlog@foo.invalid",
'mail.identity.id2.valid' : True,
'mail.server.server1.directory-rel' : "[ProfD]Mail/Local Folders",
'mail.server.server1.hostname' : "Local Folders",
@ -159,21 +159,21 @@ class ThunderTestProfile(mozrunner.ThunderbirdProfile):
'mail.server.server2.download_on_biff' : True,
'mail.server.server2.hostname' : "tinderbox",
'mail.server.server2.login_at_startup' : False,
'mail.server.server2.name' : "tinderbox@invalid.com",
'mail.server.server2.name' : "tinderbox@foo.invalid",
'mail.server.server2.type' : "pop3",
'mail.server.server2.userName' : "tinderbox",
'mail.server.server2.whiteListAbURI': "",
'mail.server.server3.hostname' : "prpl-irc",
'mail.server.server3.imAccount' : "account1",
'mail.server.server3.type' : "im",
'mail.server.server3.userName' : "mozmilltest@irc.mozilla.org",
'mail.server.server3.userName' : "mozmilltest@irc.mozilla.invalid",
'mail.smtp.defaultserver' : "smtp1",
'mail.smtpserver.smtp1.hostname' : "tinderbox",
'mail.smtpserver.smtp1.username' : "tinderbox",
'mail.smtpservers' : "smtp1",
'messenger.account.account1.autoLogin' : False,
'messenger.account.account1.firstConnectionState' : 1,
'messenger.account.account1.name' : "mozmilltest@irc.mozilla.org",
'messenger.account.account1.name' : "mozmilltest@irc.mozilla.invalid",
'messenger.account.account1.prpl' : "prpl-irc",
'messenger.accounts' : "account1",
}

Просмотреть файл

@ -245,7 +245,7 @@ function get_mailing_list_from_address_book(aAddressBook, aDirName)
* and "displayName"
*
* Example:
* [{email: 'test@test.com', displayName: 'Sammy Jenkis'}]
* [{email: 'test@example.com', displayName: 'Sammy Jenkis'}]
*/
function load_contacts_into_address_book(aAddressBook, aContacts)
{
@ -267,7 +267,7 @@ function load_contacts_into_address_book(aAddressBook, aContacts)
* "displayName"
*
* Example:
* [{email: 'test@test.com', displayName: 'Sammy Jenkis'}]
* [{email: 'test@example.com', displayName: 'Sammy Jenkis'}]
*/
function load_contacts_into_mailing_list(aMailingList, aContacts)
{

Просмотреть файл

@ -24,7 +24,7 @@ const kSimpleNewsArticle =
"Date: Sat, 24 Mar 1990 10:59:24 -0500\n"+
"Newsgroups: test.subscribe.simple\n"+
"Subject: H2G2 -- What does it mean?\n"+
"Message-ID: <TSS1@nntp.test>\n"+
"Message-ID: <TSS1@nntp.invalid>\n"+
"\n"+
"What does the acronym H2G2 stand for? I've seen it before...\n";

Просмотреть файл

@ -23,11 +23,11 @@
(B0=WebPage1)(B1=WebPage2)(B2=BirthYear)(B3=BirthMonth)(B4=BirthDay)
(B5=Custom1)(B6=Custom2)(B7=Custom3)>
<(A8=8)(81=firs)(82=lastn)(83=)(84=d)(85=ni)(86=ema@invalid.com)(80=0)
(87=1)(88=first)(89=l)(8A=di)(8B=nic)(8C=emai@invalid.com)(8D=2)(8E=f)
(8F=la)(90=dis)(91=nick)(92=email@invalid.com)(93=3)(94=fi)(95=las)
(96=disp)(97=nickn)(98=e@invalid.com)(99=4)(9A=fir)(9B=last)(9C=displ)
(9D=n)(9E=em@invalid.com)(9F=5)(A0=t)(A1=list)(A2=6)(A3=te)(A4=lis)
<(A8=8)(81=firs)(82=lastn)(83=)(84=d)(85=ni)(86=ema@foo.invalid)(80=0)
(87=1)(88=first)(89=l)(8A=di)(8B=nic)(8C=emai@foo.invalid)(8D=2)(8E=f)
(8F=la)(90=dis)(91=nick)(92=email@foo.invalid)(93=3)(94=fi)(95=las)
(96=disp)(97=nickn)(98=e@foo.invalid)(99=4)(9A=fir)(9B=last)(9C=displ)
(9D=n)(9E=em@foo.invalid)(9F=5)(A0=t)(A1=list)(A2=6)(A3=te)(A4=lis)
(A5=7)(A6=tes)(A7=li)>
{1:^80 {(k^BE:c)(s=9)}
[1:^82(^BD=8)]

Просмотреть файл

@ -33,8 +33,8 @@
(A2=HomeAddress21)(A3=http://WebPage21)(A4=Notes1)(A5=Custom21)(A6
=Department1)(A7=WorkCountry1)(A8=HomeState1)(A9=JobTitle1)(AA
=Organization1)(B0=1245128765)(B1=johnd)(B2=John Doe)(B3=Doe)(B4
=john.doe@mailinator.com)(B5=John)(AD=3)(B6=janed)(B7=Jane Doe)
(B8=jane.doe@mailinator.com)(B9=Jane)>
=john.doe@mailinator.invalid)(B5=John)(AD=3)(B6=janed)(B7=Jane Doe)
(B8=jane.doe@mailinator.invalid)(B9=Jane)>
{1:^80 {(k^BC:c)(s=9)}
[1:^82(^BB=4)]
[1(^84^81)(^C3=1)(^87^83)(^8E=0)(^8D=0)(^83^84)(^8C=0)(^B8=0)(^B9=1)

Просмотреть файл

@ -7,9 +7,9 @@
const kFNValue = "testFirst\u00D0";
const kLNValue = "testLast";
const kDNValue = "testDisplay\u00D1";
const kEmailValue = "testEmail\u00D2@invalid.com";
const kEmailValueLC = "testemail\u00D2@invalid.com";
const kEmailValue2 = "test@test.invalid.com";
const kEmailValue = "testEmail\u00D2@foo.invalid";
const kEmailValueLC = "testemail\u00D2@foo.invalid";
const kEmailValue2 = "test@test.foo.invalid";
// Email without the @ or anything after it.
const kEmailReducedValue = "testEmail\u00D2";
const kCompanyValue = "Test\u00D0 Company";

Просмотреть файл

@ -17,37 +17,37 @@ const nsIAbPMF = Components.interfaces.nsIAbPreferMailFormat;
// address to add a different card each time.
var addEmailChecks =
// First 3 items aimed at basic collection and mail format.
[ { emailHeader: "test0@invalid.com",
primaryEmail: "test0@invalid.com",
[ { emailHeader: "test0@foo.invalid",
primaryEmail: "test0@foo.invalid",
mailFormat: nsIAbPMF.unknown,
displayName: "",
firstName: "",
lastName: "",
screenName: "" },
{ emailHeader: "test1@invalid.com",
primaryEmail: "test1@invalid.com",
{ emailHeader: "test1@foo.invalid",
primaryEmail: "test1@foo.invalid",
mailFormat: nsIAbPMF.plaintext,
displayName: "",
firstName: "",
lastName: "",
screenName: "" },
{ emailHeader: "test2@invalid.com",
primaryEmail: "test2@invalid.com",
{ emailHeader: "test2@foo.invalid",
primaryEmail: "test2@foo.invalid",
mailFormat: nsIAbPMF.html,
displayName: "",
firstName: "",
lastName: "",
screenName: "" },
// UTF-8 based addresses (bug 407564)
{ emailHeader: "test0@\u00D0.com",
primaryEmail: "test0@\u00D0.com",
{ emailHeader: "test0@\u00D0.invalid",
primaryEmail: "test0@\u00D0.invalid",
mailFormat: nsIAbPMF.unknown,
displayName: "",
firstName: "",
lastName: "",
screenName: "" },
{ emailHeader: "test0\u00D0@invalid.com",
primaryEmail: "test0\u00D0@invalid.com",
{ emailHeader: "test0\u00D0@foo.invalid",
primaryEmail: "test0\u00D0@foo.invalid",
mailFormat: nsIAbPMF.unknown,
displayName: "",
firstName: "",
@ -76,30 +76,30 @@ var addEmailChecks =
lastName: "",
screenName: "invalid2\u00D00" },
// Collection of names
{ emailHeader: "Test User <test3@invalid.com>",
primaryEmail: "test3@invalid.com",
{ emailHeader: "Test User <test3@foo.invalid>",
primaryEmail: "test3@foo.invalid",
mailFormat: nsIAbPMF.unknown,
displayName: "Test User",
firstName: "Test",
lastName: "User",
screenName: "" },
{ emailHeader: "Test <test4@invalid.com>",
primaryEmail: "test4@invalid.com",
{ emailHeader: "Test <test4@foo.invalid>",
primaryEmail: "test4@foo.invalid",
mailFormat: nsIAbPMF.unknown,
displayName: "Test",
firstName: "",
lastName: "",
screenName: "" },
// Collection of names with UTF-8 specific items
{ emailHeader: "Test\u00D0 User <test5@invalid.com>",
primaryEmail: "test5@invalid.com",
{ emailHeader: "Test\u00D0 User <test5@foo.invalid>",
primaryEmail: "test5@foo.invalid",
mailFormat: nsIAbPMF.unknown,
displayName: "Test\u00D0 User",
firstName: "Test\u00D0",
lastName: "User",
screenName: "" },
{ emailHeader: "Test\u00D0 <test6@invalid.com>",
primaryEmail: "test6@invalid.com",
{ emailHeader: "Test\u00D0 <test6@foo.invalid>",
primaryEmail: "test6@foo.invalid",
mailFormat: nsIAbPMF.unknown,
displayName: "Test\u00D0",
firstName: "",
@ -113,30 +113,30 @@ var addEmailChecks =
// Note: these sets re-use some of the ones for ease of definition.
var modifyEmailChecks =
// No display name/other details. Add details and modify mail format.
[ { emailHeader: "Modify User\u00D0 <test0@\u00D0.com>",
primaryEmail: "test0@\u00D0.com",
[ { emailHeader: "Modify User\u00D0 <test0@\u00D0.invalid>",
primaryEmail: "test0@\u00D0.invalid",
mailFormat: nsIAbPMF.html,
displayName: "Modify User\u00D0",
firstName: "Modify",
lastName: "User\u00D0",
screenName: "" },
{ emailHeader: "Modify <test0\u00D0@invalid.com>",
primaryEmail: "test0\u00D0@invalid.com",
{ emailHeader: "Modify <test0\u00D0@foo.invalid>",
primaryEmail: "test0\u00D0@foo.invalid",
mailFormat: nsIAbPMF.plaintext,
displayName: "Modify",
firstName: "",
lastName: "",
screenName: "" },
// No modification of existing cards with display names
{ emailHeader: "Modify2 User\u00D02 <test0@\u00D0.com>",
primaryEmail: "test0@\u00D0.com",
{ emailHeader: "Modify2 User\u00D02 <test0@\u00D0.invalid>",
primaryEmail: "test0@\u00D0.invalid",
mailFormat: nsIAbPMF.html,
displayName: "Modify User\u00D0",
firstName: "Modify",
lastName: "User\u00D0",
screenName: "" },
{ emailHeader: "Modify3 <test0\u00D0@invalid.com>",
primaryEmail: "test0\u00D0@invalid.com",
{ emailHeader: "Modify3 <test0\u00D0@foo.invalid>",
primaryEmail: "test0\u00D0@foo.invalid",
mailFormat: nsIAbPMF.plaintext,
displayName: "Modify",
firstName: "",
@ -144,16 +144,16 @@ var modifyEmailChecks =
screenName: "" },
// Check no modification of cards for mail format where format is not
// "unknown".
{ emailHeader: "Modify User\u00D0 <test0@\u00D0.com>",
primaryEmail: "test0@\u00D0.com",
{ emailHeader: "Modify User\u00D0 <test0@\u00D0.invalid>",
primaryEmail: "test0@\u00D0.invalid",
mailFormat: nsIAbPMF.plaintext,
mailFormatOut: nsIAbPMF.html,
displayName: "Modify User\u00D0",
firstName: "Modify",
lastName: "User\u00D0",
screenName: "" },
{ emailHeader: "Modify <test0\u00D0@invalid.com>",
primaryEmail: "test0\u00D0@invalid.com",
{ emailHeader: "Modify <test0\u00D0@foo.invalid>",
primaryEmail: "test0\u00D0@foo.invalid",
mailFormat: nsIAbPMF.html,
mailFormatOut: nsIAbPMF.plaintext,
displayName: "Modify",
@ -161,17 +161,17 @@ var modifyEmailChecks =
lastName: "",
screenName: "" },
// No modification of cards with email in second email address.
{ emailHeader: "Modify Secondary <usersec\u00D0@invalid.com>",
primaryEmail: "userprim\u00D0@invalid.com",
secondEmail: "usersec\u00D0@invalid.com",
{ emailHeader: "Modify Secondary <usersec\u00D0@foo.invalid>",
primaryEmail: "userprim\u00D0@foo.invalid",
secondEmail: "usersec\u00D0@foo.invalid",
mailFormat: nsIAbPMF.unknown,
displayName: "",
firstName: "",
lastName: "",
screenName: "" },
{ emailHeader: "Modify <usersec\u00D0@invalid.com>",
primaryEmail: "userprim\u00D0@invalid.com",
secondEmail: "usersec\u00D0@invalid.com",
{ emailHeader: "Modify <usersec\u00D0@foo.invalid>",
primaryEmail: "userprim\u00D0@foo.invalid",
secondEmail: "usersec\u00D0@foo.invalid",
mailFormat: nsIAbPMF.html,
mailFormatOut: nsIAbPMF.unknown,
displayName: "",
@ -324,8 +324,8 @@ function run_test()
card = Components.classes["@mozilla.org/addressbook/cardproperty;1"]
.createInstance(Components.interfaces.nsIAbCard);
card.primaryEmail = "userprim\u00D0@invalid.com";
card.setProperty("SecondEmail", "usersec\u00D0@invalid.com");
card.primaryEmail = "userprim\u00D0@foo.invalid";
card.setProperty("SecondEmail", "usersec\u00D0@foo.invalid");
collectChecker.AB.addCard(card);

Просмотреть файл

@ -5,7 +5,7 @@
*/
var ab_prefix = "test-537815-";
var re_prefix = new RegExp(ab_prefix)
var card_properties = { FirstName: "01-first-3", LastName: "02-last", PrimaryEmail: "08-email-1@zindus.com" };
var card_properties = { FirstName: "01-first-3", LastName: "02-last", PrimaryEmail: "08-email-1@zindus.invalid" };
var max_addressbooks = 10;
function bug_537815_fixture_setup()

Просмотреть файл

@ -47,7 +47,7 @@ function run_test() {
.createInstance(Ci.nsIAbCard);
card.firstName = "test";
card.primaryEmail = "test@invalid.com";
card.primaryEmail = "test@foo.invalid";
var newCard = AB.addCard(card);

Просмотреть файл

@ -30,7 +30,7 @@ function run_test() {
// Initially disable autocomplete
identity.autocompleteToMyDomain = false;
identity.email = "myemail@invalid.com";
identity.email = "myemail@foo.invalid";
// Test - Valid search - this should return no results (autocomplete disabled)
acs.startSearch("test", identity.key, null, obs);
@ -98,8 +98,8 @@ function run_test() {
do_check_eq(obs._result.errorDescription, null);
do_check_eq(obs._result.matchCount, 1);
do_check_eq(obs._result.getValueAt(0), "test1@invalid.com");
do_check_eq(obs._result.getLabelAt(0), "test1@invalid.com");
do_check_eq(obs._result.getValueAt(0), "test1@foo.invalid");
do_check_eq(obs._result.getLabelAt(0), "test1@foo.invalid");
do_check_eq(obs._result.getCommentAt(0), null);
do_check_eq(obs._result.getStyleAt(0), "default-match");
do_check_eq(obs._result.getImageAt(0), null);

Просмотреть файл

@ -12,11 +12,11 @@ const ACR = Components.interfaces.nsIAutoCompleteResult;
// on a pattern rather just doing the odd spot check.
//
// Note the expected arrays are in expected sort order as well.
const results = [ { email: "d <ema@invalid.com>", dirName: kPABData.dirName },
{ email: "di <emai@invalid.com>", dirName: kPABData.dirName },
{ email: "dis <email@invalid.com>", dirName: kPABData.dirName },
{ email: "disp <e@invalid.com>", dirName: kPABData.dirName },
{ email: "displ <em@invalid.com>", dirName: kPABData.dirName },
const results = [ { email: "d <ema@foo.invalid>", dirName: kPABData.dirName },
{ email: "di <emai@foo.invalid>", dirName: kPABData.dirName },
{ email: "dis <email@foo.invalid>", dirName: kPABData.dirName },
{ email: "disp <e@foo.invalid>", dirName: kPABData.dirName },
{ email: "displ <em@foo.invalid>", dirName: kPABData.dirName },
{ email: "DisplayName1 <PrimaryEmail1@test.invalid>",
dirName: kCABData.dirName },
{ email: "t <list>", dirName: kPABData.dirName },
@ -165,8 +165,8 @@ function run_test() {
do_check_eq(obs._result.matchCount, 1);
do_check_eq(obs._result.defaultIndex, 0);
do_check_eq(obs._result.getValueAt(0), "dis <email@invalid.com>");
do_check_eq(obs._result.getLabelAt(0), "dis <email@invalid.com>");
do_check_eq(obs._result.getValueAt(0), "dis <email@foo.invalid>");
do_check_eq(obs._result.getLabelAt(0), "dis <email@foo.invalid>");
do_check_eq(obs._result.getCommentAt(0), "");
do_check_eq(obs._result.getStyleAt(0), "local-abook");
do_check_eq(obs._result.getImageAt(0), "");
@ -183,8 +183,8 @@ function run_test() {
do_check_eq(obs._result.matchCount, 1);
do_check_eq(obs._result.defaultIndex, 0);
do_check_eq(obs._result.getValueAt(0), "dis <email@invalid.com>");
do_check_eq(obs._result.getLabelAt(0), "dis <email@invalid.com>");
do_check_eq(obs._result.getValueAt(0), "dis <email@foo.invalid>");
do_check_eq(obs._result.getLabelAt(0), "dis <email@foo.invalid>");
do_check_eq(obs._result.getCommentAt(0), kPABData.dirName);
do_check_eq(obs._result.getStyleAt(0), "local-abook");
do_check_eq(obs._result.getImageAt(0), "");
@ -199,8 +199,8 @@ function run_test() {
do_check_eq(obs._result.matchCount, 1);
do_check_eq(obs._result.defaultIndex, 0);
do_check_eq(obs._result.getValueAt(0), "dis <email@invalid.com>");
do_check_eq(obs._result.getLabelAt(0), "dis <email@invalid.com>");
do_check_eq(obs._result.getValueAt(0), "dis <email@foo.invalid>");
do_check_eq(obs._result.getLabelAt(0), "dis <email@foo.invalid>");
do_check_eq(obs._result.getCommentAt(0), kPABData.dirName);
do_check_eq(obs._result.getStyleAt(0), "local-abook");
do_check_eq(obs._result.getImageAt(0), "");

Просмотреть файл

@ -79,7 +79,7 @@ function createCard(chars, popularity) {
card.firstName = "firstName".slice(0, chars);
card.lastName = "lastName".slice(0, chars);
card.displayName = "displayName".slice(0, chars);
card.primaryEmail = "email".slice(0, chars) + "@invalid.com";
card.primaryEmail = "email".slice(0, chars) + "@foo.invalid";
card.setProperty("NickName", "nickName".slice(0, chars));
return card;
@ -87,9 +87,9 @@ function createCard(chars, popularity) {
const lastSearchCards = [ createCard(1, 0), createCard(2, 0), createCard(3, 0) ];
const results = [ { email: "d <e@invalid.com>", dirName: kPABData.dirName },
{ email: "di <em@invalid.com>", dirName: kPABData.dirName },
{ email: "dis <ema@invalid.com>", dirName: kPABData.dirName } ];
const results = [ { email: "d <e@foo.invalid>", dirName: kPABData.dirName },
{ email: "di <em@foo.invalid>", dirName: kPABData.dirName },
{ email: "dis <ema@foo.invalid>", dirName: kPABData.dirName } ];
const firstNames = [ { search: "fi", expected: [1, 2] },
{ search: "fir", expected: [2] } ];

Просмотреть файл

@ -6,20 +6,20 @@
const ACR = Components.interfaces.nsIAutoCompleteResult;
const cards = [
{ email: "test@invalid.com", displayName: "",
popularityIndex: 0, firstName: "test0", value: "test@invalid.com" },
{ email: "test@invalid.com", displayName: "",
popularityIndex: 1, firstName: "test1", value: "test@invalid.com" },
{ email: "abc@invalid.com", displayName: "",
popularityIndex: 1, firstName: "test2", value: "abc@invalid.com" },
{ email: "foo1@invalid.com", displayName: "d",
popularityIndex: 0, firstName: "first1", value: "d <foo1@invalid.com>" },
{ email: "foo2@invalid.com", displayName: "di",
popularityIndex: 1, firstName: "first1", value: "di <foo2@invalid.com>" },
{ email: "foo3@invalid.com", displayName: "dis",
popularityIndex: 2, firstName: "first2", value: "dis <foo3@invalid.com>" },
{ email: "foo2@invalid.com", displayName: "di",
popularityIndex: 3, firstName: "first2", value: "di <foo2@invalid.com>" }
{ email: "test@foo.invalid", displayName: "",
popularityIndex: 0, firstName: "test0", value: "test@foo.invalid" },
{ email: "test@foo.invalid", displayName: "",
popularityIndex: 1, firstName: "test1", value: "test@foo.invalid" },
{ email: "abc@foo.invalid", displayName: "",
popularityIndex: 1, firstName: "test2", value: "abc@foo.invalid" },
{ email: "foo1@foo.invalid", displayName: "d",
popularityIndex: 0, firstName: "first1", value: "d <foo1@foo.invalid>" },
{ email: "foo2@foo.invalid", displayName: "di",
popularityIndex: 1, firstName: "first1", value: "di <foo2@foo.invalid>" },
{ email: "foo3@foo.invalid", displayName: "dis",
popularityIndex: 2, firstName: "first2", value: "dis <foo3@foo.invalid>" },
{ email: "foo2@foo.invalid", displayName: "di",
popularityIndex: 3, firstName: "first2", value: "di <foo2@foo.invalid>" }
];
const duplicates = [

Просмотреть файл

@ -35,8 +35,8 @@ function getIspDefaultsForUri(domainURI)
if (!result) return null;
// The domainURI should be in the format domain:aol.com. (Where
// aol.com is the domain name to use for all email addresses). If
// The domainURI should be in the format domain:example.com. (Where
// example.com is the domain name to use for all email addresses). If
// it does not match this pattern, then it is possible no domain
// has been specified, so we should leave it uninitialized.
if (domainURI.startsWith("domain:")) {
@ -45,7 +45,7 @@ function getIspDefaultsForUri(domainURI)
if (domainData.length > 1) {
// To faciltate distributing two different account types for one ISP,
// it's possible to add parameters to the domain URI
// - e.g. domain:gmail.com?type=imap.
// - e.g. domain:example.com?type=imap.
// This is necessary so RDF doesn't think they're the same.
// Save the domain, but only the part up to the (possible) question mark.
@ -56,13 +56,13 @@ function getIspDefaultsForUri(domainURI)
}
// construct an ISP's domain URI based on it's domain
// (i.e. turns isp.com -> domain:isp.com)
// (i.e. turns example.com -> domain:example.com)
function getIspDefaultsForDomain(domain) {
domainURI = "domain:" + domain;
return getIspDefaultsForUri(domainURI);
}
// Given an email address (like "joe@isp.com") look up
// Given an email address (like "joe@example.com") look up
function getIspDefaultsForEmail(email) {
var emailData = getEmailInfo(email);

Просмотреть файл

@ -41,7 +41,7 @@ var Tests =
op: Contains,
count: 1},
/* test header:
From: bugzilla-daemon@mozilla.org
From: bugzilla-daemon@mozilla.invalid
Here we show that the "From" header does not fire tests for the
"Sender" arbitrary headers, but does fire the standard test

Просмотреть файл

@ -150,7 +150,7 @@ function doChecks(server)
fakeAccount.incomingServer = gPOP3Pump.fakeServer;
let fakeIdentity = accountManager.createIdentity();
// start with an email that does not match
fakeIdentity.email = "iAmNotTheSender@wrong.domain";
fakeIdentity.email = "iAmNotTheSender@wrong.invalid";
fakeAccount.addIdentity(fakeIdentity);
// gPOP3Pump delivers messages to the local inbox regardless of other
@ -186,10 +186,10 @@ function doChecks(server)
do_check_true(spamSettings.checkWhiteList(hdrs[kDomainTest]));
// remove the matching email from the fake identity
fakeIdentity.email = "iAmNotTheSender@wrong.domain";
fakeIdentity.email = "iAmNotTheSender@wrong.invalid";
// add a fully non-matching domain to the identity
identity.email = "PrimaryEmail1@wrong.domain";
identity.email = "PrimaryEmail1@wrong.invalid";
// suppress whitelist by matching domain
server.setBoolValue("inhibitWhiteListingIdentityDomain", true);

Просмотреть файл

@ -23,10 +23,10 @@ var gTestFolder;
// Setup the display name to be opposite of alphabetic order of e-mail address.
const cards = [
{ email: "aaa@b.com", displayName: "4" },
{ email: "ccc@d.com", displayName: "3" },
{ email: "eee@f.com", displayName: "2" },
{ email: "ggg@h.com", displayName: "1" },
{ email: "aaa@b.invalid", displayName: "4" },
{ email: "ccc@d.invalid", displayName: "3" },
{ email: "eee@f.invalid", displayName: "2" },
{ email: "ggg@h.invalid", displayName: "1" },
];
function run_test() {
@ -53,8 +53,8 @@ function run_test() {
// build up a couple message with addresses in the ab.
let messages = [];
messages = messages.concat(gMessageGenerator.makeMessage({from: ["aaa", "aaa@b.com"], to: [["ccc", "ccc@d.com"]]}));
messages = messages.concat(gMessageGenerator.makeMessage({from: ["eee", "eee@f.com"], to: [["ggg", "ggg@h.com"]]}));
messages = messages.concat(gMessageGenerator.makeMessage({from: ["aaa", "aaa@b.invalid"], to: [["ccc", "ccc@d.invalid"]]}));
messages = messages.concat(gMessageGenerator.makeMessage({from: ["eee", "eee@f.invalid"], to: [["ggg", "ggg@h.invalid"]]}));
let msgSet = new SyntheticMessageSet(messages);

Просмотреть файл

@ -1,5 +1,5 @@
From: Invalid User <invalid@invalid.com>
To: Invalid User <to@invalid.com>
From: Invalid User <invalid@foo.invalid>
To: Invalid User <to@foo.invalid>
Subject: Big email
012345678901234567890123456789012345678901234567890123456789

Просмотреть файл

@ -1,5 +1,5 @@
From: from@invalid.com
To: to@invalid.com
From: from@foo.invalid
To: to@foo.invalid
Subject: test mail
this email is in dos format because that is what the interface requires

Просмотреть файл

@ -21,8 +21,8 @@ function promptPasswordPS(aParent, aDialogTitle, aText, aPassword,
var server;
const kSender = "from@invalid.com";
const kTo = "to@invalid.com";
const kSender = "from@foo.invalid";
const kTo = "to@foo.invalid";
const kUsername = "test.smtp@fakeserver";
// kPassword 2 is the one defined in signons-mailnews1.8.txt, the other one
// is intentionally wrong.

Просмотреть файл

@ -8,8 +8,8 @@ Components.utils.import("resource://gre/modules/Services.jsm");
var testmail = do_get_file("data/message1.eml");
var expectedTemporaryFile;
const kSender = "from@invalid.com";
const kTo = "to@invalid.com";
const kSender = "from@foo.invalid";
const kTo = "to@foo.invalid";
var msgSend = Cc["@mozilla.org/messengercompose/send;1"]
.createInstance(Ci.nsIMsgSend);

Просмотреть файл

@ -12,8 +12,8 @@ var finished = false;
var identity = null;
var testFile = do_get_file("data/429891_testcase.eml");
const kSender = "from@invalid.com";
const kTo = "to@invalid.com";
const kSender = "from@foo.invalid";
const kTo = "to@foo.invalid";
var msgSendLater = Cc["@mozilla.org/messengercompose/sendlater;1"]
.getService(Ci.nsIMsgSendLater);

Просмотреть файл

@ -76,10 +76,10 @@ function run_test() {
.createInstance(nsIMsgCompFields);
// These aren't in the address book copied above.
fields.from = "test1@invalid1.com";
fields.to = "test2@invalid1.com";
fields.cc = "test3@invalid1.com";
fields.bcc = "test4@invalid1.com";
fields.from = "test1@foo1.invalid";
fields.to = "test2@foo1.invalid";
fields.cc = "test3@foo1.invalid";
fields.bcc = "test4@foo1.invalid";
// Set up some params
params = Components.classes[MsgComposeParamsContractID]
@ -101,56 +101,56 @@ function run_test() {
nonHTMLRecipients),
nsIAbPreferMailFormat.unknown);
do_check_eq(nonHTMLRecipients.value, "test2@invalid1.com,test3@invalid1.com,test4@invalid1.com");
do_check_eq(nonHTMLRecipients.value, "test2@foo1.invalid,test3@foo1.invalid,test4@foo1.invalid");
do_check_eq(fields.to, "test2@invalid1.com");
do_check_eq(fields.cc, "test3@invalid1.com");
do_check_eq(fields.bcc, "test4@invalid1.com");
do_check_eq(fields.to, "test2@foo1.invalid");
do_check_eq(fields.cc, "test3@foo1.invalid");
do_check_eq(fields.bcc, "test4@foo1.invalid");
// Test - checkAndPopulateRecipients with plain text.
checkPopulate("test4@invalid.com", "test4@invalid.com",
nsIAbPreferMailFormat.plaintext, "test4@invalid.com");
checkPopulate("test4@foo.invalid", "test4@foo.invalid",
nsIAbPreferMailFormat.plaintext, "test4@foo.invalid");
// Test - checkAndPopulateRecipients with html.
checkPopulate("test5@invalid.com", "", nsIAbPreferMailFormat.html,
"test5@invalid.com");
checkPopulate("test5@foo.invalid", "", nsIAbPreferMailFormat.html,
"test5@foo.invalid");
// Test - checkAndPopulateRecipients with a list of three items.
checkPopulate("TestList1 <TestList1>",
"test1@invalid.com,test2@invalid.com,test3@invalid.com",
"test1@foo.invalid,test2@foo.invalid,test3@foo.invalid",
nsIAbPreferMailFormat.unknown,
"test1@invalid.com,test2@invalid.com,test3@invalid.com");
"test1@foo.invalid,test2@foo.invalid,test3@foo.invalid");
// Test - checkAndPopulateRecipients with a list of one item.
checkPopulate("TestList2 <TestList2>", "test4@invalid.com",
nsIAbPreferMailFormat.plaintext, "test4@invalid.com");
checkPopulate("TestList2 <TestList2>", "test4@foo.invalid",
nsIAbPreferMailFormat.plaintext, "test4@foo.invalid");
checkPopulate("TestList3 <TestList3>", "",
nsIAbPreferMailFormat.html, "test5@invalid.com");
nsIAbPreferMailFormat.html, "test5@foo.invalid");
// Test - checkAndPopulateRecipients with items from multiple address books.
checkPopulate("TestList1 <TestList1>, test3@com.invalid",
"test1@invalid.com,test2@invalid.com,test3@invalid.com,test3@com.invalid",
"test1@foo.invalid,test2@foo.invalid,test3@foo.invalid,test3@com.invalid",
nsIAbPreferMailFormat.unknown,
"test1@invalid.com,test2@invalid.com,test3@invalid.com,test3@com.invalid");
"test1@foo.invalid,test2@foo.invalid,test3@foo.invalid,test3@com.invalid");
checkPopulate("TestList2 <TestList2>, ListTest2 <ListTest2>",
"test4@invalid.com,test4@com.invalid",
"test4@foo.invalid,test4@com.invalid",
nsIAbPreferMailFormat.plaintext,
"test4@invalid.com,test4@com.invalid");
"test4@foo.invalid,test4@com.invalid");
checkPopulate("TestList3 <TestList3>, ListTest1 <ListTest1>",
"test1@com.invalid,test2@com.invalid,test3@com.invalid",
nsIAbPreferMailFormat.unknown,
"test5@invalid.com,test1@com.invalid,test2@com.invalid,test3@com.invalid");
"test5@foo.invalid,test1@com.invalid,test2@com.invalid,test3@com.invalid");
// test bug 254519 rfc 2047 encoding
checkPopulate("=?iso-8859-1?Q?Sure=F6name=2C_Forename__Dr=2E?= <pb@bieringer.de>", "pb@bieringer.de",
checkPopulate("=?iso-8859-1?Q?Sure=F6name=2C_Forename__Dr=2E?= <pb@bieringer.invalid>", "pb@bieringer.invalid",
nsIAbPreferMailFormat.unknown,
"\"Sure\u00F6name, Forename Dr.\" <pb@bieringer.de>");
"\"Sure\u00F6name, Forename Dr.\" <pb@bieringer.invalid>");
};

Просмотреть файл

@ -12,8 +12,8 @@ var identity = null;
var testFile1 = do_get_file("data/429891_testcase.eml");
var testFile2 = do_get_file("data/message1.eml");
const kSender = "from@invalid.com";
const kTo = "to@invalid.com";
const kSender = "from@foo.invalid";
const kTo = "to@foo.invalid";
var gMsgSendLater;

Просмотреть файл

@ -13,11 +13,11 @@ var sentFolder;
var originalData;
var expectedAlertMessage;
const kSender = "from@invalid.com";
const kToASCII = "to@invalid.com";
const kToValid = "to@v\u00E4lid.invalid.com";
const kToValidACE = "to@xn--vlid-loa.invalid.com";
const kToInvalid = "b\u00F8rken.to@invalid.invalid.com";
const kSender = "from@foo.invalid";
const kToASCII = "to@foo.invalid";
const kToValid = "to@v\u00E4lid.foo.invalid";
const kToValidACE = "to@xn--vlid-loa.foo.invalid";
const kToInvalid = "b\u00F8rken.to@invalid.foo.invalid";
const NS_ERROR_BUT_DONT_SHOW_ALERT = 0x805530ef;

Просмотреть файл

@ -9,8 +9,8 @@
var test = null;
var server;
const kSender = "from@invalid.com";
const kTo = "to@invalid.com";
const kSender = "from@foo.invalid";
const kTo = "to@foo.invalid";
const kUsername = "testsmtp";
const kPassword = "smtptest";

Просмотреть файл

@ -17,8 +17,8 @@ var sentFolder;
var originalData;
var finished = false;
const kSender = "from@invalid.com";
const kTo = "to@invalid.com";
const kSender = "from@foo.invalid";
const kTo = "to@foo.invalid";
function msl() {}

Просмотреть файл

@ -19,8 +19,8 @@ var finished = false;
var identity = null;
var testFile = do_get_file("data/429891_testcase.eml");
const kSender = "from@invalid.com";
const kTo = "to@invalid.com";
const kSender = "from@foo.invalid";
const kTo = "to@foo.invalid";
var msgSendLater = Cc["@mozilla.org/messengercompose/sendlater;1"]
.getService(Ci.nsIMsgSendLater);

Просмотреть файл

@ -36,8 +36,8 @@ var gLastSentMessage = 0;
// 2 = sendUnsentMessages has exited.
var gMessageSendStatus = 0;
const kSender = "from@invalid.com";
const kTo = "to@invalid.com";
const kSender = "from@foo.invalid";
const kTo = "to@foo.invalid";
var msgSendLater = Cc["@mozilla.org/messengercompose/sendlater;1"]
.getService(Ci.nsIMsgSendLater);

Просмотреть файл

@ -20,8 +20,8 @@ var finished = false;
var identity = null;
var testFile = do_get_file("data/429891_testcase.eml");
const kSender = "from@invalid.com";
const kTo = "to@invalid.com";
const kSender = "from@foo.invalid";
const kTo = "to@foo.invalid";
var msgSendLater = Cc["@mozilla.org/messengercompose/sendlater;1"]
.getService(Ci.nsIMsgSendLater);

Просмотреть файл

@ -14,8 +14,8 @@ var identity;
const kUsername = "fred";
const kPassword = "wilma";
const kSender = "from@invalid.com";
const kTo = "to@invalid.com";
const kSender = "from@foo.invalid";
const kTo = "to@foo.invalid";
const MAILFROM = "MAIL FROM:<" + kSender + "> SIZE=155";
const RCPTTO = "RCPT TO:<" + kTo + ">";
const AUTHPLAIN = "AUTH PLAIN " + AuthPLAIN.encodeLine(kUsername, kPassword);

Просмотреть файл

@ -5,8 +5,8 @@
var server;
const kSender = "from@invalid.com";
const kTo = "to@invalid.com";
const kSender = "from@foo.invalid";
const kTo = "to@foo.invalid";
const kUsername = "testsmtp";
// This is the same as in the signons file.
const kPassword = "smtptest";

Просмотреть файл

@ -18,8 +18,8 @@ load("../../../resources/alertTestUtils.js");
var server;
var attempt = 0;
const kSender = "from@invalid.com";
const kTo = "to@invalid.com";
const kSender = "from@foo.invalid";
const kTo = "to@foo.invalid";
const kUsername = "testsmtp";
// This is the same as in the signons file.
const kInvalidPassword = "smtptest";

Просмотреть файл

@ -18,8 +18,8 @@ load("../../../resources/alertTestUtils.js");
var server;
var attempt = 0;
const kSender = "from@invalid.com";
const kTo = "to@invalid.com";
const kSender = "from@foo.invalid";
const kTo = "to@foo.invalid";
const kUsername = "testsmtp";
// This is the same as in the signons file.
const kInvalidPassword = "smtptest";

Просмотреть файл

@ -16,8 +16,8 @@ load("../../../resources/alertTestUtils.js");
var server;
var attempt = 0;
const kSender = "from@invalid.com";
const kTo = "to@invalid.com";
const kSender = "from@foo.invalid";
const kTo = "to@foo.invalid";
const kUsername = "testsmtp";
// This is the same as in the signons file.
const kInvalidPassword = "smtptest";

Просмотреть файл

@ -3945,7 +3945,7 @@ var GlodaDatastore = {
/**
* Synchronous lookup of an identity by kind and value, only for use by
* the legacy gloda core code that creates a concept of "me".
* Ex: (email, foo@bar.com)
* Ex: (email, foo@example.com)
*/
getIdentity: function gloda_ds_getIdentity(aKind, aValue) {
let identity = GlodaCollectionManager.cacheLookupOneByUniqueValue(

Просмотреть файл

@ -371,7 +371,7 @@ var Gloda = {
* @param ... One or more strings. Each string can contain zero or more
* e-mail addresses with display name. If more than one address is given,
* they should be comma-delimited. For example
* '"Bob Smith" <bob@smith.com>' is an address with display name. Mime
* '"Bob Smith" <bob@example.com>' is an address with display name. Mime
* header decoding is performed, but is ignorant of any folder-level
* character set overrides.
* @returns via the callback handle mechanism, a list containing one sub-list

Просмотреть файл

@ -36,16 +36,16 @@ var GlodaUtils = {
/**
* Parses an RFC 2822 list of e-mail addresses and returns an object with
* 4 attributes, as described below. We will use the example of the user
* passing an argument of '"Bob Smith" <bob@company.com>'.
* passing an argument of '"Bob Smith" <bob@example.com>'.
*
* This method (by way of nsIMsgHeaderParser) takes care of decoding mime
* headers, but is not aware of folder-level character set overrides.
*
* count: the number of addresses parsed. (ex: 1)
* addresses: a list of e-mail addresses (ex: ["bob@company.com"])
* addresses: a list of e-mail addresses (ex: ["bob@example.com"])
* names: a list of names (ex: ["Bob Smith"])
* fullAddresses: aka the list of name and e-mail together (ex: ['"Bob Smith"
* <bob@company.com>']).
* <bob@example.com>']).
*
* This method is a convenience wrapper around nsIMsgHeaderParser.
*/

Просмотреть файл

@ -81,7 +81,7 @@ var messageInfos = [
},
{
name: "german style",
bode: [[false, "Mark Banner <bugzilla@standard8.plus.com> wrote:"],
bode: [[false, "Mark Banner <bugzilla@standard8.plus.invalid> wrote:"],
[false, "\xa0"],
[false, "> We haven't nailed anything down in detail yet, depending on how we are "],
[true, "That sounds great and would definitely be appreciated by localizers."],

Просмотреть файл

@ -50,7 +50,7 @@ function get_cached_gloda_identity_for_email(aEmailAddress) {
Gloda.NOUN_IDENTITY, "email@" + aEmailAddress.toLowerCase());
}
const EMAIL_ADDRESS = "all.over@the.world";
const EMAIL_ADDRESS = "all.over@the.world.invalid";
const DISPLAY_NAME = "every day";
let identityCollection;

Просмотреть файл

@ -127,7 +127,7 @@ var tachApplication = {filename: 'funky.funk',
var relImage = {contentType: 'image/png',
encoding: 'base64', charset: null, format: null,
contentId: 'part1.foo@bar.com',
contentId: 'part1.foo@bar.invalid',
body: b64Text};
var tachVCard = {filename: 'bob.vcf', contentType: 'text/x-vcard',

Просмотреть файл

@ -99,7 +99,7 @@ var partTachImage = new SyntheticPartLeaf(tachImage.body, tachImage);
var relImage = {contentType: 'image/png',
encoding: 'base64', charset: null, format: null,
contentId: 'part1.foo@bar.com',
contentId: 'part1.foo@bar.invalid',
body: 'YWJj\n'};
var partRelImage = new SyntheticPartLeaf(relImage.body, relImage);

Просмотреть файл

@ -9,7 +9,7 @@ let acctMgr = Cc["@mozilla.org/messenger/account-manager;1"]
.getService(Ci.nsIMsgAccountManager);
let localAccount = acctMgr.FindAccountForServer(gLocalIncomingServer);
let identity = acctMgr.createIdentity();
identity.email = "bob@t2.exemple.net";
identity.email = "bob@t2.example.net";
localAccount.addIdentity(identity);
localAccount.defaultIdentity = identity;
@ -17,7 +17,7 @@ function run_test()
{
var headers =
"from: alice@t1.example.com\r\n" +
"to: bob@t2.exemple.net\r\n" +
"to: bob@t2.example.net\r\n" +
"return-path: alice@t1.example.com\r\n" +
"Disposition-Notification-To: alice@t1.example.com\r\n";

Просмотреть файл

@ -15,7 +15,7 @@ let acctMgr = Cc["@mozilla.org/messenger/account-manager;1"]
.getService(Ci.nsIMsgAccountManager);
let localAccount = acctMgr.FindAccountForServer(gLocalIncomingServer);
let identity = acctMgr.createIdentity();
identity.email = "bob@t2.exemple.net";
identity.email = "bob@t2.example.net";
localAccount.addIdentity(identity);
localAccount.defaultIdentity = identity;
@ -25,7 +25,7 @@ function run_test()
{
var headers =
"from: alice@t1.example.com\r\n" +
"to: bob@t2.exemple.net\r\n" +
"to: bob@t2.example.net\r\n" +
"return-path: alice@t1.example.com\r\n" +
"Disposition-Notification-To: alice@t1.example.com\r\n";

Просмотреть файл

@ -27,9 +27,9 @@ const nsMsgMessageFlags = Ci.nsMsgMessageFlags;
var gMsgFile1 = do_get_file("../../../data/bugmail10");
const gMsgId1 = "200806061706.m56H6RWT004933@mrapp54.mozilla.org";
var gMsgFile2 = do_get_file("../../../data/image-attach-test");
const gMsgId2 = "4A947F73.5030709@xxx.com";
const gMsgId2 = "4A947F73.5030709@example.com";
var gMsgFile3 = do_get_file("../../../data/external-attach-test");
const gMsgId3 = "876TY.5030709@xxx.com";
const gMsgId3 = "876TY.5030709@example.com";
var gFirstNewMsg;
var gFirstMsgSize;

Просмотреть файл

@ -23,12 +23,12 @@ const nsMsgMessageFlags = Ci.nsMsgMessageFlags;
var gMsgFile1 = do_get_file("../../../data/bugmail10");
const gMsgId1 = "200806061706.m56H6RWT004933@mrapp54.mozilla.org";
var gMsgFile2 = do_get_file("../../../data/image-attach-test");
const gMsgId2 = "4A947F73.5030709@xxx.com";
const gMsgId2 = "4A947F73.5030709@example.com";
var gMessages = Cc["@mozilla.org/array;1"].createInstance(Ci.nsIMutableArray);
var gMsgFile3 = do_get_file("../../../data/SpamAssassinYes");
var gMsg3Id = "bugmail7.m47LtAEf007543@mrapp51.mozilla.org";
var gMsgFile4 = do_get_file("../../../data/bug460636");
var gMsg4Id = "foo.12345@bar";
var gMsg4Id = "foo.12345@example";
var gFolder1;

Просмотреть файл

@ -53,11 +53,11 @@ static NS_DEFINE_CID(kMsgCompFieldsCID, NS_MSGCOMPFIELDS_CID);
#ifdef IMPORT_DEBUG
static char *p_test_headers =
"Received: from netppl.fi (IDENT:monitor@get.freebsd.because.microsoftsucks.net [209.3.31.115])\n\
by mail4.sirius.com (8.9.1/8.9.1) with SMTP id PAA27232;\n\
"Received: from netppl.invalid (IDENT:monitor@get.freebsd.because.microsoftsucks.invalid [209.3.31.115])\n\
by mail4.sirius.invalid (8.9.1/8.9.1) with SMTP id PAA27232;\n\
Mon, 17 May 1999 15:27:43 -0700 (PDT)\n\
Message-ID: <ikGD3jRTsKklU.Ggm2HmE2A1Jsqd0p@netppl.fi>\n\
From: \"adsales@qualityservice.com\" <adsales@qualityservice.com>\n\
Message-ID: <ikGD3jRTsKklU.Ggm2HmE2A1Jsqd0p@netppl.invalid>\n\
From: \"adsales@qualityservice.invalid\" <adsales@qualityservice.invalid>\n\
Subject: Re: Your College Diploma (36822)\n\
Date: Mon, 17 May 1999 15:09:29 -0400 (EDT)\n\
MIME-Version: 1.0\n\

Просмотреть файл

@ -453,7 +453,7 @@ nsresult nsOE5File::ImportMailbox(uint32_t *pBytesDone, bool *pAbort,
// From - Jan 1965 00:00:00 <<<--- 1st msg starts here
// Subject: Test msg
// . . . (more headers)
// To: <someone@netscape.com>
// To: <someone@example.com>
// From - Jan 1965 00:00:00 <<<--- 2nd msg starts here
// Subject: How are you
// . . .(more headers)

Просмотреть файл

@ -52,11 +52,11 @@ static NS_DEFINE_CID(kMsgCompFieldsCID, NS_MSGCOMPFIELDS_CID);
#ifdef IMPORT_DEBUG
static const char *p_test_headers =
"Received: from netppl.fi (IDENT:monitor@get.freebsd.because.microsoftsucks.net [209.3.31.115])\n\
by mail4.sirius.com (8.9.1/8.9.1) with SMTP id PAA27232;\n\
"Received: from netppl.invalid (IDENT:monitor@get.freebsd.because.microsoftsucks.invalid [209.3.31.115])\n\
by mail4.sirius.invalid (8.9.1/8.9.1) with SMTP id PAA27232;\n\
Mon, 17 May 1999 15:27:43 -0700 (PDT)\n\
Message-ID: <ikGD3jRTsKklU.Ggm2HmE2A1Jsqd0p@netppl.fi>\n\
From: \"adsales@qualityservice.com\" <adsales@qualityservice.com>\n\
Message-ID: <ikGD3jRTsKklU.Ggm2HmE2A1Jsqd0p@netppl.invalid>\n\
From: \"adsales@qualityservice.invalid\" <adsales@qualityservice.invalid>\n\
Subject: Re: Your College Diploma (36822)\n\
Date: Mon, 17 May 1999 15:09:29 -0400 (EDT)\n\
MIME-Version: 1.0\n\

Двоичный файл не отображается.

Двоичный файл не отображается.

Двоичный файл не отображается.

Просмотреть файл

@ -81,13 +81,13 @@
"DisplayName" : "John Doe",
"FirstName" : "John",
"LastName" : "Doe",
"PrimaryEmail" : "john.doe@genericemail.com"
"PrimaryEmail" : "john.doe@genericemail.invalid"
},
{
"DisplayName" : "Jane Doe",
"FirstName" : "Jane",
"LastName" : "Doe",
"PrimaryEmail" : "jane.doe@genericemail.com"
"PrimaryEmail" : "jane.doe@genericemail.invalid"
}
],
"csv_import" :

Просмотреть файл

@ -2,11 +2,11 @@ BEGIN:VCARD
VERSION:2.1
FN:John Doe
N:Doe;John;;;
EMAIL;TYPE=INTERNET:john.doe@genericemail.com
EMAIL;TYPE=INTERNET:john.doe@genericemail.invalid
END:VCARD
BEGIN:VCARD
VERSION:2.1
FN:Jane Doe
N:Doe;Jane;;;
EMAIL;TYPE=INTERNET:jane.doe@genericemail.com
EMAIL;TYPE=INTERNET:jane.doe@genericemail.invalid
END:VCARD

Просмотреть файл

@ -4,7 +4,7 @@ BEGIN:VCARD
VERSION:2.1
FN:John Doe
N:Doe;John;;;
EMAIL;TYPE=INTERNET:john.doe@genericemail.com
EMAIL;TYPE=INTERNET:john.doe@genericemail.invalid
END:VCARD
@ -12,7 +12,7 @@ BEGIN:VCARD
VERSION:2.1
FN:Jane Doe
N:Doe;Jane;;;
EMAIL;TYPE=INTERNET:jane.doe@genericemail.com
EMAIL;TYPE=INTERNET:jane.doe@genericemail.invalid
END:VCARD

Просмотреть файл

@ -57,7 +57,7 @@ let expectedNewsMozillaOrgAccount = {
let expectedMicrosoftCommunitiesAccount = {
incomingServer: {
type: 'nntp',
hostName: 'testmsnews.microsoft.com',
hostName: 'testmsnews.microsoft.invalid',
prettyName: 'Microsoft Communities Test',
port: 119,
socketType: 0,
@ -75,7 +75,7 @@ let expectedMicrosoftCommunitiesAccount = {
let expectedDonHallNntpAccount = {
incomingServer: {
type: 'nntp',
hostName: 'news.wingtiptoys.com',
hostName: 'news.wingtiptoys.invalid',
prettyName: 'donhallnntp',
port: 563,
username: 'don',
@ -88,15 +88,15 @@ let expectedDonHallNntpAccount = {
identity: {
fullName: 'Don Hall',
organization: 'Wingtip Toys',
email: 'don@wingtiptoys.com',
replyTo: 'don@wingtiptoys.com',
email: 'don@wingtiptoys.invalid',
replyTo: 'don@wingtiptoys.invalid',
},
};
let expectedDonHallImapAccount = {
incomingServer: {
type: 'imap',
hostName: 'mail.wingtiptoys.com',
hostName: 'mail.wingtiptoys.invalid',
prettyName: 'donhallimap',
port: 993,
isSecure: true,
@ -109,11 +109,11 @@ let expectedDonHallImapAccount = {
identity: {
fullName: 'Don Hall',
organization: 'Wingtip Toys',
email: 'don@wingtiptoys.com',
replyTo: 'don@wingtiptoys.com',
email: 'don@wingtiptoys.invalid',
replyTo: 'don@wingtiptoys.invalid',
},
smtpServer: {
hostname: 'smtp.wingtiptoys.com',
hostname: 'smtp.wingtiptoys.invalid',
username: 'don',
port: 25,
socketType: Ci.nsMsgSocketType.SSL,

Просмотреть файл

@ -2567,8 +2567,8 @@ int32_t nsPop3Protocol::HandleNoUidListAvailable()
>>XTND XLST Message-Id
<<+OK xlst command accepted; headers coming.
<<1 Message-ID: <3117E4DC.2699@netscape.com>
<<2 Message-Id: <199602062335.PAA19215@lemon.mcom.com>
<<1 Message-ID: <3117E4DC.2699@netscape.invalid>
<<2 Message-Id: <199602062335.PAA19215@lemon.example.com>
* This function will send the xtnd command and put us into the
* POP3_GET_XTND_XLST_MSGID state
@ -2640,7 +2640,7 @@ nsPop3Protocol::GetXtndXlstMsgid(nsIInputStream* inputStream,
/* parse the line returned from the list command
* it looks like
* 1 Message-ID: <3117E4DC.2699@netscape.com>
* 1 Message-ID: <3117E4DC.2699@example.com>
*
* list data is terminated by a ".CRLF" line
*/

Просмотреть файл

@ -134,16 +134,16 @@ X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Changed-Fields: Blocks
In-Reply-To: <bug-397009-254728@https.bugzilla.mozilla.org/>
References: <bug-397009-254728@https.bugzilla.mozilla.org/>
<4DC2493C.4060403@gmx.com>
<BANLkTin2w8LJxYGHV3_5NpFbsiBhrP96XA@mail.gmail.com>
<4DC2493C.4060403@gmx.invalid>
<BANLkTin2w8LJxYGHV3_5NpFbsiBhrP96XA@mail.gmail.invalid>
<175221688.20110506234025@my_localhost>
<201105072315.25120@thufir.ingo-kloecker.de>
<BANLkTinacQCd+mZ7fL1THLK55X2+u9g5-w@mail.gmail.com>
<201105072315.25120@thufir.ingo-kloecker.invalid>
<BANLkTinacQCd+mZ7fL1THLK55X2+u9g5-w@mail.gmail.invalid>
<05433510.20110507224940@my_localhost>
<4DC5C015.7050800@sixdemonbag.org>
<BANLkTinv7NvPG9gE1Fha+X+6ZkHzdXdRdg@mail.gmail.com>
<BANLkTi=6zDTsYymc+bUTwPOM2AohJD2wfA@mail.gmail.com>
Reply-To: FOO <bar@foo.com>
<4DC5C015.7050800@sixdemonbag.invalid>
<BANLkTinv7NvPG9gE1Fha+X+6ZkHzdXdRdg@mail.gmail.invalid>
<BANLkTi=6zDTsYymc+bUTwPOM2AohJD2wfA@mail.gmail.invalid>
Reply-To: FOO <bar@foo.invalid>
List-Id: Help and discussion among users of GnuPG <gnupg-users.gnupg.org>
Content-Type: text/plain; charset="UTF-8"
MIME-Version: 1.0

Просмотреть файл

@ -13,7 +13,7 @@ let acctMgr = Cc["@mozilla.org/messenger/account-manager;1"]
.getService(Ci.nsIMsgAccountManager);
let localAccount = acctMgr.FindAccountForServer(gLocalIncomingServer);
let identity = acctMgr.createIdentity();
identity.email = "bob@t2.exemple.net";
identity.email = "bob@t2.example.net";
localAccount.addIdentity(identity);
localAccount.defaultIdentity = identity;
@ -21,7 +21,7 @@ function run_test()
{
var headers =
"from: alice@t1.example.com\r\n" +
"to: bob@t2.exemple.net\r\n" +
"to: bob@t2.example.net\r\n" +
"message-id: \r\n <abcmessageid>\r\n";
let localFolder = gLocalInboxFolder.QueryInterface(Ci.nsIMsgLocalMailFolder);

Просмотреть файл

@ -16,7 +16,7 @@ function run_test() {
["\u0436", false, "=?UTF-8?B?0LY=?="], //CYRILLIC SMALL LETTER ZHE
["IamASCII", false, "IamASCII"],
// Although an invalid email, we shouldn't crash on it (bug 479206)
["crash test@invalid.com>", true, "crash test@invalid.com>"],
["crash test@foo.invalid>", true, "crash test@foo.invalid>"],
];
for (i = 0; i < checks.length; ++i)

Просмотреть файл

@ -11,10 +11,10 @@ function run_test() {
var checks =
[
["", "test@invalid.com", "test@invalid.com"],
["Test", "test@invalid.com", "Test <test@invalid.com>"],
["Test", "\"abc!x.yz\"@invalid.com", "Test <\"abc!x.yz\"@invalid.com>"],
["Test", "test.user@invalid.com", "Test <test.user@invalid.com>"],
["", "test@foo.invalid", "test@foo.invalid"],
["Test", "test@foo.invalid", "Test <test@foo.invalid>"],
["Test", "\"abc!x.yz\"@foo.invalid", "Test <\"abc!x.yz\"@foo.invalid>"],
["Test", "test.user@foo.invalid", "Test <test.user@foo.invalid>"],
["Test", "test@[xyz!]", "Test <test@[xyz!]>"],
// Based on RFC 2822 A.1.1
["John Doe", "jdoe@machine.example", "John Doe <jdoe@machine.example>"],

Просмотреть файл

@ -19,34 +19,34 @@ function run_test() {
// 3: expected output from extractHeaderAddressName
const checks =
[
["abc@invalid.com",
"abc@invalid.com",
"abc@invalid.com",
"abc@invalid.com" ],
["foo <ghj@invalid.com>",
"ghj@invalid.com",
["abc@foo.invalid",
"abc@foo.invalid",
"abc@foo.invalid",
"abc@foo.invalid" ],
["foo <ghj@foo.invalid>",
"ghj@foo.invalid",
"foo",
"foo" ],
["abc@invalid.com, foo <ghj@invalid.com>",
"abc@invalid.com, ghj@invalid.com",
"abc@invalid.com, foo",
"abc@invalid.com" ],
["abc@foo.invalid, foo <ghj@foo.invalid>",
"abc@foo.invalid, ghj@foo.invalid",
"abc@foo.invalid, foo",
"abc@foo.invalid" ],
["foo bar <foo@bar.invalid>",
"foo@bar.invalid",
"foo bar",
"foo bar" ],
["foo bar <foo@bar.invalid>, abc@invalid.com, foo <ghj@invalid.com>",
"foo@bar.invalid, abc@invalid.com, ghj@invalid.com",
"foo bar, abc@invalid.com, foo",
["foo bar <foo@bar.invalid>, abc@foo.invalid, foo <ghj@foo.invalid>",
"foo@bar.invalid, abc@foo.invalid, ghj@foo.invalid",
"foo bar, abc@foo.invalid, foo",
"foo bar" ],
// UTF-8 names
["foo\u00D0 bar <foo@bar.invalid>, \u00F6foo <ghj@invalid.com>",
"foo@bar.invalid, ghj@invalid.com",
["foo\u00D0 bar <foo@bar.invalid>, \u00F6foo <ghj@foo.invalid>",
"foo@bar.invalid, ghj@foo.invalid",
"foo\u00D0 bar, \u00F6foo",
"foo\u00D0 bar" ],
// More complicated examples drawn from RFC 2822
["\"Joe Q. Public\" <john.q.public@example.com>,Test <\"abc!x.yz\"@invalid.com>, Test <test@[xyz!]>,\"Giant; \\\"Big\\\" Box\" <sysservices@example.net>",
"john.q.public@example.com, \"abc!x.yz\"@invalid.com, test@[xyz!], sysservices@example.net",
["\"Joe Q. Public\" <john.q.public@example.com>,Test <\"abc!x.yz\"@foo.invalid>, Test <test@[xyz!]>,\"Giant; \\\"Big\\\" Box\" <sysservices@example.net>",
"john.q.public@example.com, \"abc!x.yz\"@foo.invalid, test@[xyz!], sysservices@example.net",
"\"Joe Q. Public\", Test, Test, \"Giant; \\\"Big\\\" Box\"",
// extractHeaderAddressName returns unquoted names, hence the difference.
"Joe Q. Public" ],
@ -65,7 +65,7 @@ function run_test() {
// of strings with ":;" in them. The second ":;" is required to force the
// parser to keep going.
do_check_eq(parser.extractHeaderAddressMailboxes(
"undisclosed-recipients:;\0:; foo <ghj@veryveryveryverylongveryveryveryveryinvalidaddress.com>"),
"undisclosed-recipients:;\0:; foo <ghj@veryveryveryverylongveryveryveryveryinvalidaddress.invalid>"),
"undisclosed-recipients:;");
do_check_eq(parser.extractHeaderAddressMailboxes("<a;a@invalid"), "");

Просмотреть файл

@ -6,42 +6,42 @@
function run_test() {
const checks =
[
{ addrs: "test@invalid.com",
{ addrs: "test@foo.invalid",
otherAddrs: "",
expectedResult: "test@invalid.com" },
{ addrs: "foo bar <test@invalid.com>",
expectedResult: "test@foo.invalid" },
{ addrs: "foo bar <test@foo.invalid>",
otherAddrs: "",
expectedResult: "foo bar <test@invalid.com>" },
{ addrs: "foo bar <test@invalid.com>, abc@invalid.com",
expectedResult: "foo bar <test@foo.invalid>" },
{ addrs: "foo bar <test@foo.invalid>, abc@foo.invalid",
otherAddrs: "",
expectedResult: "foo bar <test@invalid.com>, abc@invalid.com" },
{ addrs: "foo bar <test@invalid.com>, abc@invalid.com, test <test@invalid.com>",
expectedResult: "foo bar <test@foo.invalid>, abc@foo.invalid" },
{ addrs: "foo bar <test@foo.invalid>, abc@foo.invalid, test <test@foo.invalid>",
otherAddrs: "",
expectedResult: "foo bar <test@invalid.com>, abc@invalid.com" },
{ addrs: "foo bar <test@invalid.com>",
otherAddrs: "abc@invalid.com",
expectedResult: "foo bar <test@invalid.com>" },
{ addrs: "foo bar <test@invalid.com>",
otherAddrs: "foo bar <test@invalid.com>",
expectedResult: "foo bar <test@foo.invalid>, abc@foo.invalid" },
{ addrs: "foo bar <test@foo.invalid>",
otherAddrs: "abc@foo.invalid",
expectedResult: "foo bar <test@foo.invalid>" },
{ addrs: "foo bar <test@foo.invalid>",
otherAddrs: "foo bar <test@foo.invalid>",
expectedResult: null },
{ addrs: "foo bar <test@invalid.com>, abc@invalid.com",
otherAddrs: "foo bar <test@invalid.com>",
expectedResult: "abc@invalid.com" },
{ addrs: "foo bar <test@invalid.com>, abc@invalid.com",
otherAddrs: "abc@invalid.com",
expectedResult: "foo bar <test@invalid.com>" },
{ addrs: "foo bar <test@invalid.com>, abc@invalid.com, test <test@invalid.com>",
otherAddrs: "abc@invalid.com",
expectedResult: "foo bar <test@invalid.com>" },
{ addrs: "foo bar <test@foo.invalid>, abc@foo.invalid",
otherAddrs: "foo bar <test@foo.invalid>",
expectedResult: "abc@foo.invalid" },
{ addrs: "foo bar <test@foo.invalid>, abc@foo.invalid",
otherAddrs: "abc@foo.invalid",
expectedResult: "foo bar <test@foo.invalid>" },
{ addrs: "foo bar <test@foo.invalid>, abc@foo.invalid, test <test@foo.invalid>",
otherAddrs: "abc@foo.invalid",
expectedResult: "foo bar <test@foo.invalid>" },
// UTF-8 names
{ addrs: "foo\u00D0 bar <foo@bar.invalid>, \u00F6foo <ghj@invalid.com>",
{ addrs: "foo\u00D0 bar <foo@bar.invalid>, \u00F6foo <ghj@foo.invalid>",
otherAddrs: "",
expectedResult: "foo\u00D0 bar <foo@bar.invalid>, \u00F6foo <ghj@invalid.com>" },
{ addrs: "foo\u00D0 bar <foo@bar.invalid>, \u00F6foo <ghj@invalid.com>",
expectedResult: "foo\u00D0 bar <foo@bar.invalid>, \u00F6foo <ghj@foo.invalid>" },
{ addrs: "foo\u00D0 bar <foo@bar.invalid>, \u00F6foo <ghj@foo.invalid>",
otherAddrs: "foo\u00D0 bar <foo@bar.invalid>",
expectedResult: "\u00F6foo <ghj@invalid.com>" },
{ addrs: "foo\u00D0 bar <foo@bar.invalid>, \u00F6foo <ghj@invalid.com>, foo\u00D0 bar <foo@bar.invalid>",
otherAddrs: "\u00F6foo <ghj@invalid.com>",
expectedResult: "\u00F6foo <ghj@foo.invalid>" },
{ addrs: "foo\u00D0 bar <foo@bar.invalid>, \u00F6foo <ghj@foo.invalid>, foo\u00D0 bar <foo@bar.invalid>",
otherAddrs: "\u00F6foo <ghj@foo.invalid>",
expectedResult: "foo\u00D0 bar <foo@bar.invalid>" }
];
@ -51,7 +51,7 @@ function run_test() {
.getService(Components.interfaces.nsIMsgHeaderParser);
do_check_eq(parser.removeDuplicateAddresses("", ""), "");
do_check_eq(parser.removeDuplicateAddresses("", "test@invalid.com"), "");
do_check_eq(parser.removeDuplicateAddresses("", "test@foo.invalid"), "");
// Test - removeDuplicateAddresses

Просмотреть файл

@ -11,7 +11,7 @@ const kSimpleNewsArticle =
"Date: Sat, 24 Mar 1990 10:59:24 -0500\n"+
"Newsgroups: test.subscribe.simple\n"+
"Subject: H2G2 -- What does it mean?\n"+
"Message-ID: <TSS1@nntp.test>\n"+
"Message-ID: <TSS1@nntp.invalid>\n"+
"\n"+
"What does the acronym H2G2 stand for? I've seen it before...\n";

Просмотреть файл

@ -183,7 +183,7 @@ function test_forwardInline() {
.getService(Ci.nsIMsgComposeService);
let folder = localserver.rootFolder.getChildNamed("test.filter");
let hdr = folder.msgDatabase.GetMsgHdrForKey(1);
composeSvc.forwardMessage("a@b.c", hdr, null,
composeSvc.forwardMessage("a@b.invalid", hdr, null,
localserver, Ci.nsIMsgComposeService.kForwardInline);
}

Просмотреть файл

@ -55,11 +55,11 @@ function testRFC977() {
// Test - getting an article
test = "news:MESSAGE_ID";
server.resetTest();
setupProtocolTest(NNTP_PORT, prefix+"TSS1@nntp.test");
setupProtocolTest(NNTP_PORT, prefix+"TSS1@nntp.invalid");
server.performTest();
transaction = server.playTransaction();
do_check_transaction(transaction, ["MODE READER",
"ARTICLE <TSS1@nntp.test>"]);
"ARTICLE <TSS1@nntp.invalid>"]);
// Test - news expiration
test = "news:GROUP?list-ids";
@ -104,7 +104,7 @@ function testConnectionLimit() {
// To test make connections limit, we run two URIs simultaneously.
var url = URLCreator.newURI(prefix+"*", null, null);
_server.loadNewsUrl(url, null, null);
setupProtocolTest(NNTP_PORT, prefix+"TSS1@nntp.test");
setupProtocolTest(NNTP_PORT, prefix+"TSS1@nntp.invalid");
server.performTest();
// We should have length one... which means this must be a transaction object,
// containing only us and them

Просмотреть файл

@ -23,9 +23,9 @@
(B0=WebPage1)(B1=WebPage2)(B2=BirthYear)(B3=BirthMonth)(B4=BirthDay)
(B5=Custom1)(B6=Custom2)(B7=Custom3)>
<(90=6)(81=)(82=test1@invalid.com)(80=0)(83=1)(84=test2@invalid.com)
(85=2)(86=test3@invalid.com)(87=3)(88=test4@invalid.com)(8C=4791024e)
(89=4)(8A=test5@invalid.com)(8D=47910253)(8B=5)(8E=TestList1)(8F
<(90=6)(81=)(82=test1@foo.invalid)(80=0)(83=1)(84=test2@foo.invalid)
(85=2)(86=test3@foo.invalid)(87=3)(88=test4@foo.invalid)(8C=4791024e)
(89=4)(8A=test5@foo.invalid)(8D=47910253)(8B=5)(8E=TestList1)(8F
=testlist1)>
{1:^80 {(k^BE:c)(s=9)}
[1:^82(^BD=6)]

Просмотреть файл

@ -1,4 +1,4 @@
Message-ID: <foo.12345@bar>
Message-ID: <foo.12345@example>
Date: Sun, 19 Oct 2008 08:00:00 +0000
From: Me <me@example.net>
To: You <you@example.org>

Просмотреть файл

@ -2,7 +2,7 @@ From - Mon Jan 1 00:00:00 1965
X-Mozilla-Status: 0001
X-Mozilla-Status2: 10000000
From: <aaa bbb>
To: <aaa@bb.com>
To: <aaa@bb.invalid>
Subject: xxx
Date: Tue, 9 Dec 2008 16:49:02 +0200
MIME-Version: 1.0
@ -34,7 +34,7 @@ Content-Transfer-Encoding: 7bit
Content-Disposition: attachment
From: <sys admin>
To: <dd@ee.com>
To: <dd@ee.invalid>
Subject: yyy
Date: Sun, 7 Dec 2008 17:53:47 +0200
MIME-Version: 1.0

Просмотреть файл

@ -26,16 +26,16 @@ X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Changed-Fields: Blocks
In-Reply-To: <bug-397009-254728@https.bugzilla.mozilla.org/>
References: <bug-397009-254728@https.bugzilla.mozilla.org/>
<4DC2493C.4060403@gmx.com>
<BANLkTin2w8LJxYGHV3_5NpFbsiBhrP96XA@mail.gmail.com>
<4DC2493C.4060403@gmx.invalid>
<BANLkTin2w8LJxYGHV3_5NpFbsiBhrP96XA@mail.gmail.invalid>
<175221688.20110506234025@my_localhost>
<201105072315.25120@thufir.ingo-kloecker.de>
<BANLkTinacQCd+mZ7fL1THLK55X2+u9g5-w@mail.gmail.com>
<201105072315.25120@thufir.ingo-kloecker.invalid>
<BANLkTinacQCd+mZ7fL1THLK55X2+u9g5-w@mail.gmail.invalid>
<05433510.20110507224940@my_localhost>
<4DC5C015.7050800@sixdemonbag.org>
<BANLkTinv7NvPG9gE1Fha+X+6ZkHzdXdRdg@mail.gmail.com>
<BANLkTi=6zDTsYymc+bUTwPOM2AohJD2wfA@mail.gmail.com>
Reply-To: FOO <bar@foo.com>
<4DC5C015.7050800@sixdemonbag.invalid>
<BANLkTinv7NvPG9gE1Fha+X+6ZkHzdXdRdg@mail.gmail.invalid>
<BANLkTi=6zDTsYymc+bUTwPOM2AohJD2wfA@mail.gmail.invalid>
Reply-To: FOO <bar@foo.invalid>
List-Id: Help and discussion among users of GnuPG <gnupg-users.gnupg.org>
Content-Type: text/plain; charset="UTF-8"
MIME-Version: 1.0

Просмотреть файл

@ -1,9 +1,9 @@
From - Fri Aug 26 16:47:38 2008
X-Identity-Key: id2
Message-ID: <876TY.5030709@xxx.com>
Message-ID: <876TY.5030709@example.com>
Date: Tue, 26 Aug 2009 17:18:59 -0700
From: Foo Bar <xxx@xxx.com>
Reply-To: xxx@xxx.com
From: Foo Bar <xxx@example.com>
Reply-To: xxx@example.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.3pre) Gecko/20090817 Shredder/3.0b4pre
MIME-Version: 1.0
To: asfd@asdf

Просмотреть файл

@ -1,9 +1,9 @@
From - Fri May 20 16:47:38 2008
X-Identity-Key: id2
Message-ID: <4A947F73.5030709@xxx.com>
Message-ID: <4A947F73.5030709@example.com>
Date: Tue, 25 Aug 2009 17:18:59 -0700
From: Foo Bar <xxx@xxx.com>
Reply-To: xxx@xxx.com
From: Foo Bar <xxx@example.com>
Reply-To: xxx@example.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.3pre) Gecko/20090817 Shredder/3.0b4pre
MIME-Version: 1.0
To: asfd@asdf

Просмотреть файл

@ -16,7 +16,7 @@ user_pref("mail.accountmanager.defaultaccount", "account2");
user_pref("mail.accountmanager.localfoldersserver", "server1");
user_pref("mail.identity.id1.fullName", "Tinderbox");
user_pref("mail.identity.id1.smtpServer", "smtp1");
user_pref("mail.identity.id1.useremail", "tinderbox@invalid.com");
user_pref("mail.identity.id1.useremail", "tinderbox@foo.invalid");
user_pref("mail.identity.id1.valid", true);
user_pref("mail.root.none-rel", "[ProfD]Mail");
user_pref("mail.root.pop3-rel", "[ProfD]Mail");
@ -30,7 +30,7 @@ user_pref("mail.server.server2.directory-rel", "[ProfD]Mail/tinderbox");
user_pref("mail.server.server2.download_on_biff", true);
user_pref("mail.server.server2.hostname", "tinderbox");
user_pref("mail.server.server2.login_at_startup", false);
user_pref("mail.server.server2.name", "tinderbox@invalid.com");
user_pref("mail.server.server2.name", "tinderbox@foo.invalid");
user_pref("mail.server.server2.type", "pop3");
user_pref("mail.server.server2.userName", "tinderbox");
user_pref("mail.smtp.defaultserver", "smtp1");

Просмотреть файл

@ -76,7 +76,7 @@ function configure_message_injection(aInjectionConfig) {
let identity = acctMgr.createIdentity();
// We need an email to protect against random code assuming it exists and
// throwing exceptions.
identity.email = "sender@nul.nul";
identity.email = "sender@nul.invalid";
localAccount.addIdentity(identity);
localAccount.defaultIdentity = identity;
@ -128,7 +128,7 @@ function configure_message_injection(aInjectionConfig) {
let identity = acctMgr.createIdentity();
// We need an email to protect against random code assuming it exists and
// throwing exceptions.
identity.email = "sender@nul.nul";
identity.email = "sender@nul.invalid";
localAccount.addIdentity(identity);
localAccount.defaultIdentity = identity;
localAccount.incomingServer = mis.incomingServer;