Name Description Size Coverage
head_imap_maildir.js import-globals-from head_server.js 213 -
head_server.js @param {object} fromServer - Object got from server.playTransaction() @param {string[]} fromServer.us - Commands from us. @param {string[]} fromServer.them - Commands from them. @param {string[]} expected - Expected commands like ["command", "command", ...] @param {boolean} withParams - if false, everything apart from the IMAP command will the stripped. E.g. 'lsub "" "*"' will be compared as 'lsub'. Exception is "authenticate", which also get its first parameter in upper case, e.g. "authenticate CRAM-MD5". 6021 -
test_autosync_date_constraints.js Test autosync date constraints 4755 -
test_autosync_stops.js Tests that folders which cease to exist do not break the autosync timer callback and keep the timer running. 2416 -
test_bccProperty.js Test to ensure that BCC gets added to message headers on IMAP download adapted from test_downloadOffline.js original author Kent James <kent@caspia.com> 1547 -
test_bug460636.js Test bug 460636 - nsMsgSaveAsListener sometimes inserts extra LF characters 2070 -
test_chunkLastLF.js Test content length for the IMAP protocol. This focuses on necko URLs that are run externally. 4461 -
test_compactOfflineStore.js Test to ensure that compacting offline stores works correctly with imap folders and returns success. 6782 -
test_converterImap.js 3751 -
test_copyThenMove.js This file extends test_imapFolderCopy.js to test message moves from a local folder to an IMAP folder. Original Author: Kent James <kent@caspia.com> 5673 -
test_customCommandReturnsFetchResponse.js Test to ensure that imap customCommandResult function works properly Bug 778246 4197 -
test_dontStatNoSelect.js Tests that checking folders for new mail with STATUS doesn't try to STAT noselect folders. 5412 -
test_downloadOffline.js Test to ensure that downloadAllForOffline works correctly with imap folders and returns success. 5140 -
test_fetchCustomAttribute.js Test to ensure that imap fetchCustomMsgAttribute function works properly 3308 -
test_fetchWhileLocked.js 4191 -
test_filterCustomHeaders.js This file tests hdr parsing in the filter running context, specifically filters on custom headers. See https://bugzilla.mozilla.org/show_bug.cgi?id=655578 for more info. Original author: David Bienvenu <bienvenu@mozilla.com> 2245 -
test_filterNeedsBody.js This file tests the needsBody attribute added to a custom filter action in bug 555051. Original author: Kent James <kent@caspia.com> adapted from test_imapFilterActions.js 3030 -
test_folderNamesImap.js Tests folders which should have a localised name that is different from the folder's name, when those folders come from an IMAP server. 4691 -
test_folderNamesImap_preffedOff.js Tests folders which should have a localised name that is different from the folder's name, when those folders come from an IMAP server. This version of the test runs with mail.useLocalizedFolderNames set to false. 4240 -
test_folderOfflineFlags.js Test that the folders that should get flagged for offline use do, and that those that shouldn't don't. 3511 -
test_gmailAttributes.js Test to ensure that, in case of GMail server, fetching of custom GMail attributes works properly. Bug 721316 See https://bugzilla.mozilla.org/show_bug.cgi?id=721316 for more info. Original Author: Atul Jangra<atuljangra66@gmail.com> 2879 -
test_gmailOfflineMsgStore.js Test to ensure that, in case of GMail server, fetching of a message, which is already present in offline store of some folder, from a folder doesn't make us add it to the offline store twice(in this case, in general it can be any number of times). Bug 721316 See https://bugzilla.mozilla.org/show_bug.cgi?id=721316 for more info. Original Author: Atul Jangra<atuljangra66@gmail.com> 7011 -
test_ignoreSubscription.js Tests that new top level folders and subfolders of Inbox are discovered when subscriptions are ignored. 2245 -
test_imapAttachmentSaves.js Tests imap save and detach attachments. This should closely match mailnews/protocols/exchange/test/unit/test_ewsAttachmentSaves.js 4906 -
test_imapAutoSync.js 7870 -
test_imapBiff.js Wait until the client connection for a mailbox is in RFC 2177 IDLE. @param {string} mailboxName 10271 -
test_imapChunks.js Test bug 92111 - imap download-by-chunks doesn't download complete file if the server lies about rfc822.size (known to happen for Exchange and gmail) 3936 -
test_imapClientid.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 1621 -
test_imapContentLength.js Test content length for the IMAP protocol. This focuses on necko URLs that are run externally. 3177 -
test_imapCopyTimeout.js import-globals-from ../../../test/resources/alertTestUtils.js 4325 -
test_imapFilterActions.js This file tests imap filter actions, particularly as affected by the addition of body searches in bug 127250. Actions that involves sending mail are not tested. The tests check various counts, and the effects on the message database of the filters. Effects on IMAP server flags, if any, are not tested. Original author: Kent James <kent@caspia.com> adapted from test_localToImapFilter.js 18426 -
test_imapFilterActionsPostplugin.js This file tests imap filter actions post-plugin, which uses nsMsgFilterAfterTheFact Original author: Kent James <kent@caspia.com> adapted from test_imapFilterActions.js 13164 -
test_imapFilterCopyFailure.js Test that a failed incoming IMAP filter copy keeps the source message and prevents the later destructive move. 7051 -
test_imapFilterCopyThenDelete.js Test that incoming IMAP filters finish copying every message before marking any source message deleted. 4679 -
test_imapFilterCopyThenMove.js Test that incoming IMAP filters finish copying every message before a destructive move of the source messages begins. 5745 -
test_imapFlagChange.js Test to ensure that imap flag changes made from a different profile/machine are stored in db. 7086 -
test_imapFolderCopy.js 6248 -
test_imapHdrStreaming.js This test checks if the imap message service code streams headers correctly. It checks that streaming headers for messages stored for offline use works. It doesn't test streaming messages that haven't been stored for offline use because that's not implemented yet, and it's unclear if anyone will want it. 2857 -
test_imapHighWater.js import-globals-from ../../../test/resources/alertTestUtils.js 7261 -
test_imapID.js Test to ensure that we handle the RFC2197 ID command. 1373 -
test_imapIDLiteralParenGroup.js Regression test for bug 2057805: a server ID response whose paren group contains a literal that exactly fills its line used to leave nsImapGenericParser::CreateParenGroup() reading from a freed tokenizer buffer (heap-use-after-free). The crafted response below reproduces that exact shape; parsing it must complete cleanly and land the parsed value in the serverIDResponse pref. On the wire the server emits: * ID ({4}<CR><LF> ab<CR><LF> )<CR><LF> where {4} is a literal of the four octets 'a', 'b', CR, LF -- i.e. the literal length equals the whole "ab\r\n" line including its CRLF, which is what triggered the use-after-free. 2561 -
test_imapMove.js import-globals-from ../../../test/resources/logHelper.js 2724 -
test_imapOAuth2Shutdown.js 1625 -
test_imapPasswordFailure.js This test checks to see if the imap password failure is handled correctly. The steps are: - Have an invalid password in the password database. - Check we get a prompt asking what to do. - Check retry does what it should do. - Check cancel does what it should do. - Re-initiate connection, this time select enter new password, check that we get a new password prompt and can enter the password. 4991 -
test_imapProtocols.js Test suite for IMAP nsIProtocolHandler implementations. 1725 -
test_imapProxy.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 2465 -
test_imapRename.js 9373 -
test_imapSearch.js Tests traditional (non-gloda) search on IMAP folders. Derived from a combination of test_imapPump.js and test_search.js Original author: Kent James <kent@caspia.com> 8011 -
test_imapStatusCloseDBs.js 1709 -
test_imapStoreMsgOffline.js This test checks if the imap protocol code saves message to offline stores correctly, when we fetch the message for display. It checks: - Normal messages, no attachments. - Message with inline attachment (e.g., image) - Message with non-inline attachment (e.g., .doc file) - Message with mix of attachment types. 7521 -
test_imapTruncatedOfflineBody.js Tests that a truncated chunked body download is not stored as a complete offline message. When a message body is downloaded in chunks and the server stops delivering data partway through without any protocol error (e.g. a premature connection close), the short chunk must not be treated as the final chunk and stored as a *complete* offline copy (nsMsgMessageFlags::Offline). Doing so would mean the message is never re-fetched and the user silently sees a truncated message (e.g. missing attachments). Instead, the download must be detected as incomplete -- fewer octets received than the server announced in RFC822.SIZE -- and aborted, so the partial copy is discarded and re-fetched on next access. The test uses the fakeserver's `_truncateBodyAt` hook to simulate the truncation while keeping RFC822.SIZE reporting the true (larger) size; this is distinct from the wrong-RFC822.SIZE case (where the server under-reports the size, covered by bug 92111). See bug 770888 for the original report. 6509 -
test_imapUndo.js 5194 -
test_imapUrls.js Test parsing of imap uri's with very large UID's. 671 -
test_largeOfflineStore.js Test to ensure that downloadAllForOffline works correctly for large imap stores, i.e., over 4 GiB. 4919 -
test_listClosesDB.js 4380 -
test_listSubscribed.js Test that listing subscribed mailboxes uses LIST (SUBSCRIBED) instead of LSUB for servers that have LIST-EXTENDED capability 4319 -
test_localToImapFilter.js This file tests copies of multiple messages using filters from incoming POP3, with filter actions copying and moving messages to IMAP folders. This test is adapted from test_imapFolderCopy.js Original author: Kent James <kent@caspia.com> 5182 -
test_localToImapFilterQuarantine.js This file tests copies of multiple messages using filters from incoming POP3, with filter actions copying and moving messages to an IMAP folder, when the POP3 message uses quarantining to help antivirus software. See bug 387361. 3832 -
test_lockedFlagsImap.js Tests folders with special use flags prevent removal of those flags, if the flags come from an IMAP server. 4208 -
test_lsub.js 2558 -
test_mailboxes.js Tests basic mailbox handling of IMAP, like discovery, rename and empty folder. 2986 -
test_missingDateUsesReceived.js 2327 -
test_multiFolderMove.js Bug 589008: moving several IMAP folders into one target on the same server at once should move all of them. This queues the moves the way a multi-folder drag does, then checks they all landed in the target. 1992 -
test_multipleCopyNonlocal.js Tests that multiple messages can be copied while not stored locally, targeting the maildir issues of bug 856519. 3256 -
test_nsImapOfflineDownloader.js Tests that the OfflineManager correctly downloads IMAP messages via nsIMsgOfflineManager.synchronizeForOffline(). SynchronizeForOffline() is the only path which exercises nsImapOfflineDownloader, which is what we're aiming to cover here. 3354 -
test_nsIMsgFolderListenerIMAP.js Test suite for nsIMsgFolderListener events due to IMAP operations Currently tested - Adding new folders - Copying messages from files to mailboxes - Adding new messages directly to mailboxes NOTE (See Bug 1632022): Running this test by itself... $ ./mach xpcshell-test comm/mailnews/imap/test/unit/test_nsIMsgFolderListenerIMAP.js ...will fail. This is because all the IMAP tests run twice - once with mbox storage and once with maildir storage. For this test, the two parallel instances interact badly. 11143 -
test_offlineCopy.js This test checks pseudo-offline message copies (which is triggered by allowUndo == true in copyMessages). 7333 -
test_offlineDraftDataloss.js This file tests that a message saved as draft in an IMAP folder in offline mode is not lost when going back online See Bug 805626 4238 -
test_offlineMoveLocalToIMAP.js Test to check that offline IMAP operation for a local->IMAP message move completes correctly once we go back online. 3720 -
test_offlinePlayback.js Test to ensure that changes made while offline are played back when we go back online. 5981 -
test_offlineStoreLocking.js Test to ensure that code that writes to the imap offline store deals with offline store locking correctly. 8011 -
test_preserveDataOnMove.js helper functions 3030 -
test_repairMbox.js Test bare CR line endings are changed to LF 3056 -
test_saveImapDraft.js This file tests that a message saved as draft in an IMAP folder is correctly marked as unread. 2787 -
test_starttlsFailure.js This test checks that we handle the server dropping the connection on starttls. Since fakeserver doesn't support STARTTLS, I've made it drop the connection when it's attempted. 2800 -
test_stopMovingToLocalFolder.js Test that the message failed to move to a local folder remains on IMAP server. 2757 -
test_storeCustomKeywords.js 4025 -
test_subfolderLocation.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 2662 -
test_subscribeNoSummaryFile.js Tests that subscribing to an IMAP folder creates exactly one summary (.msf) file (bug 520437). An info read on a folder that isn't on disk yet (e.g. an IMAP folder below an unsubscribed parent, while subscribing to it) used to create an empty .msf prematurely. When discovery later created the real summary file, the empty leftover was renamed with a "-1" suffix, leaving an orphaned "NotOnDisk-1.msf" duplicate behind. 2745 -
test_subscribeWithSubfolder.js Tests that subscribing a folder and a subfolder together (as the Subscribe dialog does) correctly subscribes both. 1948 -
test_syncChanges.js Test to ensure that changes made from a different profile/machine are synced correctly. In particular, we're checking that emptying out an imap folder on the server makes us delete all the headers from our db. 2803 -
test_trustSpamAssassin.js This file tests recognizing a message as junk due to SpamAssassin headers, and marking that as good without having the message return to the junk folder, as discussed in bug 540385. adapted from test_filterNeedsBody.js 4776 -
xpcshell-maildir.toml 152 -
xpcshell-mbox.toml 205 -
xpcshell-shared.toml 2583 -