diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:32:43 +0000 |
commit | 6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch) | |
tree | a68f146d7fa01f0134297619fbe7e33db084e0aa /comm/mailnews/base/test/unit/data | |
parent | Initial commit. (diff) | |
download | thunderbird-upstream.tar.xz thunderbird-upstream.zip |
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'comm/mailnews/base/test/unit/data')
-rw-r--r-- | comm/mailnews/base/test/unit/data/folderCache.json | 206 | ||||
-rw-r--r-- | comm/mailnews/base/test/unit/data/panacea.dat | 70 | ||||
-rw-r--r-- | comm/mailnews/base/test/unit/data/panacea_empty.dat | 1 | ||||
-rw-r--r-- | comm/mailnews/base/test/unit/data/remoteContent.sql | 41 |
4 files changed, 318 insertions, 0 deletions
diff --git a/comm/mailnews/base/test/unit/data/folderCache.json b/comm/mailnews/base/test/unit/data/folderCache.json new file mode 100644 index 0000000000..e593e6cbb9 --- /dev/null +++ b/comm/mailnews/base/test/unit/data/folderCache.json @@ -0,0 +1,206 @@ +{ + "/foo/bar/profile-default/ImapMail/imap.localhost": { + "aclFlags": 0, + "boxFlags": 0, + "expungedBytes": 0, + "flags": 0, + "folderSize": -1, + "hierDelim": 94, + "onlineName": "", + "pendingMsgs": 0, + "pendingUnreadMsgs": 0, + "serverRecent": 0, + "serverTotal": 0, + "serverUnseen": 0, + "totalMsgs": -1, + "totalUnreadMsgs": -1 + }, + "/foo/bar/profile-default/ImapMail/imap.localhost/Archives.msf": { + "aclFlags": 0, + "boxFlags": 0, + "expungedBytes": 0, + "flags": 0, + "folderSize": -1, + "hierDelim": 94, + "onlineName": "Archives", + "pendingMsgs": 0, + "pendingUnreadMsgs": 0, + "serverRecent": 0, + "serverTotal": 0, + "serverUnseen": 0, + "totalMsgs": 0, + "totalUnreadMsgs": 0 + }, + "/foo/bar/profile-default/ImapMail/imap.localhost/Drafts.msf": { + "aclFlags": 0, + "boxFlags": 0, + "expungedBytes": 0, + "flags": 0, + "folderSize": -1, + "hierDelim": 94, + "onlineName": "Drafts", + "pendingMsgs": 0, + "pendingUnreadMsgs": 0, + "serverRecent": 0, + "serverTotal": 0, + "serverUnseen": 0, + "totalMsgs": 0, + "totalUnreadMsgs": 0 + }, + "/foo/bar/profile-default/ImapMail/imap.localhost/INBOX.msf": { + "MRMTime": "1628202592", + "MRUTime": "1628202593", + "aclFlags": 0, + "boxFlags": 2097216, + "expungedBytes": 11536, + "flags": 2282237972, + "folderSize": 22906, + "hierDelim": 46, + "lastSyncTimeInSec": 0, + "nextUID": 2, + "onlineName": "INBOX", + "pendingMsgs": 0, + "pendingUnreadMsgs": 0, + "serverRecent": 0, + "serverTotal": 2, + "serverUnseen": 0, + "totalMsgs": 2, + "totalUnreadMsgs": 1 + }, + "/foo/bar/profile-default/ImapMail/imap.localhost/Junk.msf": { + "aclFlags": 0, + "boxFlags": 0, + "expungedBytes": 0, + "flags": 0, + "folderSize": -1, + "hierDelim": 94, + "onlineName": "Junk", + "pendingMsgs": 0, + "pendingUnreadMsgs": 0, + "serverRecent": 0, + "serverTotal": 0, + "serverUnseen": 0, + "totalMsgs": 0, + "totalUnreadMsgs": 0 + }, + "/foo/bar/profile-default/ImapMail/imap.localhost/Sent.msf": { + "aclFlags": 0, + "boxFlags": 0, + "expungedBytes": 0, + "flags": 0, + "folderSize": -1, + "hierDelim": 94, + "onlineName": "Sent", + "pendingMsgs": 0, + "pendingUnreadMsgs": 0, + "serverRecent": 0, + "serverTotal": 0, + "serverUnseen": 0, + "totalMsgs": 0, + "totalUnreadMsgs": 0 + }, + "/foo/bar/profile-default/ImapMail/imap.localhost/Templates.msf": { + "aclFlags": 0, + "boxFlags": 0, + "expungedBytes": 0, + "flags": 0, + "folderSize": -1, + "hierDelim": 94, + "onlineName": "Templates", + "pendingMsgs": 0, + "pendingUnreadMsgs": 0, + "serverRecent": 0, + "serverTotal": 0, + "serverUnseen": 0, + "totalMsgs": 0, + "totalUnreadMsgs": 0 + }, + "/foo/bar/profile-default/ImapMail/imap.localhost/Trash.msf": { + "aclFlags": 0, + "boxFlags": 262224, + "expungedBytes": 0, + "flags": 532756, + "folderSize": -1, + "hierDelim": 46, + "onlineName": "Trash", + "pendingMsgs": 0, + "pendingUnreadMsgs": 0, + "serverRecent": 0, + "serverTotal": 0, + "serverUnseen": 0, + "totalMsgs": 0, + "totalUnreadMsgs": 0 + }, + "/foo/bar/profile-default/ImapMail/imap.localhost/blah.msf": { + "MRUTime": "1628202572", + "aclFlags": 0, + "boxFlags": 262208, + "expungedBytes": 0, + "flags": 134750228, + "folderSize": 11872, + "hierDelim": 46, + "lastSyncTimeInSec": 0, + "nextUID": 3, + "onlineName": "blah", + "pendingMsgs": 0, + "pendingUnreadMsgs": 0, + "serverRecent": 0, + "serverTotal": 2, + "serverUnseen": 0, + "totalMsgs": 2, + "totalUnreadMsgs": 0 + }, + "/foo/bar/profile-default/ImapMail/imap.localhost/foo.msf": { + "MRUTime": "1628202573", + "aclFlags": 0, + "boxFlags": 262208, + "expungedBytes": 11536, + "flags": 134750228, + "folderSize": 10707667, + "hierDelim": 46, + "lastSyncTimeInSec": 0, + "nextUID": 5, + "onlineName": "foo", + "pendingMsgs": 0, + "pendingUnreadMsgs": 0, + "serverRecent": 0, + "serverTotal": 4, + "serverUnseen": 0, + "totalMsgs": 3, + "totalUnreadMsgs": 0 + }, + "/foo/bar/profile-default/Mail/Local Folders": { + "expungedBytes": 0, + "flags": 28, + "folderName": "Local Folders", + "folderSize": -1, + "pendingMsgs": 0, + "pendingUnreadMsgs": 0, + "totalMsgs": -1, + "totalUnreadMsgs": -1 + }, + "/foo/bar/profile-default/Mail/Local Folders/Trash.msf": { + "MRUTime": "1628202569", + "expungedBytes": 0, + "flags": 260, + "folderName": "Trash", + "folderSize": 0, + "pendingMsgs": 0, + "pendingUnreadMsgs": 0, + "totalMsgs": 0, + "totalUnreadMsgs": 0, + "useServerRetention": "1" + }, + "/foo/bar/profile-default/Mail/Local Folders/Unsent Messages.msf": { + "MRUTime": "1628202570", + "expungedBytes": 0, + "flags": 2052, + "folderName": "Outbox", + "folderSize": 0, + "pendingMsgs": 0, + "pendingUnreadMsgs": 0, + "totalMsgs": 0, + "totalUnreadMsgs": 0, + "useServerRetention": "1" + } +} diff --git a/comm/mailnews/base/test/unit/data/panacea.dat b/comm/mailnews/base/test/unit/data/panacea.dat new file mode 100644 index 0000000000..214176e31a --- /dev/null +++ b/comm/mailnews/base/test/unit/data/panacea.dat @@ -0,0 +1,70 @@ +// <!-- <mdb:mork:z v="1.4"/> --> +< <(a=c)> // (f=iso-8859-1) + (8A=boxFlags)(8B=hierDelim)(8C=onlineName)(8D=aclFlags)(8E=serverTotal) + (8F=serverUnseen)(90=serverRecent)(91=indexingPriority)(92=folderName) + (93=applyIncomingFilters.empty)(94=applyIncomingFilters)(95=MRUTime) + (96=dobayes.mailnews@mozilla.org#junk.empty) + (97=dobayes.mailnews@mozilla.org#junk)(98=nextUID) + (99=lastSyncTimeInSec)(9A=useServerRetention)(9B=MRMTime) + (80=ns:msg:db:row:scope:folders:all)(81=ns:msg:db:table:kind:folders) + (82=key)(83=flags)(84=totalMsgs)(85=totalUnreadMsgs) + (86=pendingUnreadMsgs)(87=pendingMsgs)(88=expungedBytes)(89=folderSize)> + +<(80 + =/foo/bar/profile-default/ImapMail\ +/imap.localhost/INBOX.msf)(A6=88083014)(AA=2)(A8=1)(81=0)(B8=2d10)(BB=597a) + (A7=200040)(9D=2e)(84=INBOX)(BA=1628202593)(B5=1628202592)(86 + =/foo/bar/profile-default/Mail/Loc\ +al Folders/Trash.msf)(87=104)(88=Trash)(AB=1628202569)(89 + =/foo/bar/profile-default/Mail/Loc\ +al Folders/Unsent Messages.msf)(8A=804)(8C=Outbox)(AC=1628202570)(8D + =/foo/bar/profile-default/Mail/Loc\ +al Folders)(8E=1c)(8F=ffffffff)(82=ffffffffffffffff)(90=Local Folders) + (91 + =/foo/bar/profile-default/ImapMail\ +/imap.localhost/Drafts.msf)(83=5e)(92=Drafts)(93 + =/foo/bar/profile-default/ImapMail\ +/imap.localhost/Templates.msf)(94=Templates)(95 + =/foo/bar/profile-default/ImapMail\ +/imap.localhost/Sent.msf)(96=Sent)(97 + =/foo/bar/profile-default/ImapMail\ +/imap.localhost/Archives.msf)(98=Archives)(9A + =/foo/bar/profile-default/ImapMail\ +/imap.localhost/Trash.msf)(9B=82114)(9C=40050)(9E + =/foo/bar/profile-default/ImapMail\ +/imap.localhost/blah.msf)(A0=8082014)(AF=2e60)(A1=40040)(9F=blah)(AE + =1628202572)(B0=3)(A2 + =/foo/bar/profile-default/ImapMail\ +/imap.localhost/foo.msf)(B9=a362d3)(A3=foo)(B2=4)(B1=1628202573)(B4=5) + (A4 + =/foo/bar/profile-default/ImapMail\ +/imap.localhost/Junk.msf)(A5=Junk)(BC + =/foo/bar/profile-default/ImapMail\ +/imap.localhost)(BD=)> +{1:^80 {(k^81:c)(s=9)} + [1(^82^80)(^83^A6)(^84=2)(^85=1)(^86=0)(^87=0)(^88^B8)(^89^BB)(^8A^A7) + (^8B=2e)(^8C^84)(^8D=0)(^8E=2)(^8F=0)(^90=0)(^95^BA)(^98=2)(^99=0) + (^9B^B5)] + [2(^82^86)(^83^87)(^84=0)(^85=0)(^86=0)(^87=0)(^88=0)(^89=0)(^92^88) + (^95^AB)(^9A=1)] + [3(^82^89)(^83^8A)(^84=0)(^85=0)(^86=0)(^87=0)(^88=0)(^89=0)(^92^8C) + (^95^AC)(^9A=1)] + [4(^82^8D)(^83=1c)(^84^8F)(^85^8F)(^86=0)(^87=0)(^88=0)(^89^82)(^92^90)] + [5(^82^91)(^83=0)(^84=0)(^85=0)(^86=0)(^87=0)(^88=0)(^89^82)(^8A=0) + (^8B=5e)(^8C^92)(^8D=0)(^8E=0)(^8F=0)(^90=0)] + [6(^82^93)(^83=0)(^84=0)(^85=0)(^86=0)(^87=0)(^88=0)(^89^82)(^8A=0) + (^8B=5e)(^8C^94)(^8D=0)(^8E=0)(^8F=0)(^90=0)] + [7(^82^95)(^83=0)(^84=0)(^85=0)(^86=0)(^87=0)(^88=0)(^89^82)(^8A=0) + (^8B=5e)(^8C^96)(^8D=0)(^8E=0)(^8F=0)(^90=0)] + [8(^82^97)(^83=0)(^84=0)(^85=0)(^86=0)(^87=0)(^88=0)(^89^82)(^8A=0) + (^8B=5e)(^8C^98)(^8D=0)(^8E=0)(^8F=0)(^90=0)] + [9(^82^9A)(^83^9B)(^84=0)(^85=0)(^86=0)(^87=0)(^88=0)(^89^82)(^8A^9C) + (^8B=2e)(^8C^88)(^8D=0)(^8E=0)(^8F=0)(^90=0)] + [A(^82^9E)(^83^A0)(^84=2)(^85=0)(^86=0)(^87=0)(^88=0)(^89^AF)(^8A^A1) + (^8B=2e)(^8C^9F)(^8D=0)(^8E=2)(^8F=0)(^90=0)(^95^AE)(^98=3)(^99=0)] + [B(^82^A2)(^83^A0)(^84=3)(^85=0)(^86=0)(^87=0)(^88^B8)(^89^B9)(^8A^A1) + (^8B=2e)(^8C^A3)(^8D=0)(^8E=4)(^8F=0)(^90=0)(^95^B1)(^98=5)(^99=0)] + [C(^82^A4)(^83=0)(^84=0)(^85=0)(^86=0)(^87=0)(^88=0)(^89^82)(^8A=0) + (^8B=5e)(^8C^A5)(^8D=0)(^8E=0)(^8F=0)(^90=0)] + [D(^82^BC)(^83=0)(^84^8F)(^85^8F)(^86=0)(^87=0)(^88=0)(^89^82)(^8A=0) + (^8B=5e)(^8C=)(^8D=0)(^8E=0)(^8F=0)(^90=0)]} diff --git a/comm/mailnews/base/test/unit/data/panacea_empty.dat b/comm/mailnews/base/test/unit/data/panacea_empty.dat new file mode 100644 index 0000000000..b169b34da9 --- /dev/null +++ b/comm/mailnews/base/test/unit/data/panacea_empty.dat @@ -0,0 +1 @@ +// <!-- <mdb:mork:z v="1.4"/> --> diff --git a/comm/mailnews/base/test/unit/data/remoteContent.sql b/comm/mailnews/base/test/unit/data/remoteContent.sql new file mode 100644 index 0000000000..042cfefbd9 --- /dev/null +++ b/comm/mailnews/base/test/unit/data/remoteContent.sql @@ -0,0 +1,41 @@ +-- Address book with remote content permissions for use in test_accountMigration.js. +PRAGMA user_version = 1; + +CREATE TABLE cards (uid TEXT PRIMARY KEY, localId INTEGER); +CREATE TABLE properties (card TEXT, name TEXT, value TEXT); +CREATE TABLE lists (uid TEXT PRIMARY KEY, localId INTEGER, name TEXT, nickName TEXT, description TEXT); +CREATE TABLE list_cards (list TEXT, card TEXT, PRIMARY KEY(list, card)); + +INSERT INTO cards (uid, localId) VALUES + ('f36c4b94-fbab-4cd6-b175-bf8242e6e757', 1), + ('7ecf5197-87cd-4633-8fcb-bf4ed8f6239e', 2), + ('90a1de3d-0f5d-4352-b927-60ee8205ac8f', 3); + +INSERT INTO properties (card, name, value) VALUES + ('f36c4b94-fbab-4cd6-b175-bf8242e6e757', 'PrimaryEmail', 'no@test.invalid'), + ('f36c4b94-fbab-4cd6-b175-bf8242e6e757', 'PhotoType', 'generic'), + ('f36c4b94-fbab-4cd6-b175-bf8242e6e757', 'LowercasePrimaryEmail', 'no@test.invalid'), + ('f36c4b94-fbab-4cd6-b175-bf8242e6e757', 'PopularityIndex', '0'), + ('f36c4b94-fbab-4cd6-b175-bf8242e6e757', 'PreferMailFormat', '0'), + ('f36c4b94-fbab-4cd6-b175-bf8242e6e757', 'LastModifiedDate', '0'), + ('f36c4b94-fbab-4cd6-b175-bf8242e6e757', 'PreferDisplayName', '1'), + ('f36c4b94-fbab-4cd6-b175-bf8242e6e757', 'AllowRemoteContent', '0'), + + ('7ecf5197-87cd-4633-8fcb-bf4ed8f6239e', 'PrimaryEmail', 'yes@test.invalid'), + ('7ecf5197-87cd-4633-8fcb-bf4ed8f6239e', 'PhotoType', 'generic'), + ('7ecf5197-87cd-4633-8fcb-bf4ed8f6239e', 'LowercasePrimaryEmail', 'yes@test.invalid'), + ('7ecf5197-87cd-4633-8fcb-bf4ed8f6239e', 'PopularityIndex', '0'), + ('7ecf5197-87cd-4633-8fcb-bf4ed8f6239e', 'PreferMailFormat', '0'), + ('7ecf5197-87cd-4633-8fcb-bf4ed8f6239e', 'LastModifiedDate', '0'), + ('7ecf5197-87cd-4633-8fcb-bf4ed8f6239e', 'PreferDisplayName', '1'), + ('7ecf5197-87cd-4633-8fcb-bf4ed8f6239e', 'AllowRemoteContent', '0'), + + ('90a1de3d-0f5d-4352-b927-60ee8205ac8f', 'LastModifiedDate', '1397383824'), + ('90a1de3d-0f5d-4352-b927-60ee8205ac8f', 'PrimaryEmail', 'yes@test.invalid'), + ('90a1de3d-0f5d-4352-b927-60ee8205ac8f', 'PhotoType', 'generic'), + ('90a1de3d-0f5d-4352-b927-60ee8205ac8f', 'SecondEmail', 'yes2@test.invalid'), + ('90a1de3d-0f5d-4352-b927-60ee8205ac8f', 'LowercasePrimaryEmail', 'yes@test.invalid'), + ('90a1de3d-0f5d-4352-b927-60ee8205ac8f', 'PopularityIndex', '0'), + ('90a1de3d-0f5d-4352-b927-60ee8205ac8f', 'PreferMailFormat', '0'), + ('90a1de3d-0f5d-4352-b927-60ee8205ac8f', 'PreferDisplayName', '1'), + ('90a1de3d-0f5d-4352-b927-60ee8205ac8f', 'AllowRemoteContent', '1'); |