The Mozilla
Organization
At A Glance
Feedback
Get Involved
Newsgroups
License Terms
Newsbot
Developer Docs
Roadmap
Projects
Ports
Module Owners
Hacking
Get the Source
Build It
Testing
Download
Bugzilla
Bug Writing
Tools
View Source
Tree Status
New Checkins
Submit A Bug
FAQ
Search

Feature Test Spec

5.0 Project (Sea-Monkey)
Mail and News Component
Folders: Compact

Written by: Stacey Curtis

References:
UI Specification:
Other:
Approx. number of test cases: 82



Description: Compacting Folders

. Access methods (can be performed while following the test cases contained in other tables)
Notes
Expected Outcome (if not obvious)
1 Direct: Main menu "compact" item This may be called "compress" or something else in 5.0. A progress indicator of some sort should occur, and all messages marked as deleted will visually disappear (if using the IMAP delete model). If not using the IMAP delete model, but still using IMAP, an Expunge command should appear in the IMAP log after the command is issued. If not using IMAP, the compression of the folder can be checked by looking in the text file representing the mail folder and ensuring that any messages with a Mozilla-Status that equates to a deleted message are gone. The only two such status numbers I'm aware of are 8009 and 9009.
2 Direct: Context menu "compact" item . .
3 Direct: Keyboard shortcut TBD .
4 Automatically Compact (POP and movemail) This is a preference that can be used for Local folders only. The preference can be set so that the application will automatically compact a folder when doing so will save at least X kb of space. That value can be monitored through the Folder Properties value of "wasted space." Wasted space can be created by copying a lot of messages to a folder, then deleting them. For speed reasons, we don't immediately delete the messages from the summary file; we just mark them as deleted until a compress folders action is done. The automatically compact action will occur when exiting the application if the conditions calling for an automatic compact are present. Monitor "wasted space" property value and check file sizes.
5 Automatically Compact (IMAP) The expunge_threshold preference controls how many messages that are marked for deletion should be allowed to accumulate before the folder will be scheduled to be automatically compacted (expunged). It is easiest to monitor when using the IMAPdelete model, but should be tested with all three delete models (though it is not necessary to test each of the folder types below with each of the three delete models). The automatically compact action will occur when exiting the application if the conditions calling for an automatic compact are present. Compacted folders will be obvious if using the IMAPdelete model; also check file sizes and/or check for the EXPUNGE command in the IMAPlog.

Top-level folder with no subfolders
Notes
Expected Outcome (if not obvious)
1 Via access method #1 . .
2 Via access method #2 . .
3 Via access method #3 . .
4 Via access method #4 . .
5 Via access method #5 . .

Top-level folder of hierarchy
Notes
Expected Outcome (if not obvious)
1 Via access method #1 . .
2 Via access method #2 . .
3 Via access method #3 . .
4 Via access method #4 . .
5 Via access method #5 . .

Folder in middle of hierarchy
Notes
Expected Outcome (if not obvious)
1 Via access method #1 . .
2 Via access method #2 . .
3 Via access method #3 . .
4 Via access method #4 . .
5 Via access method #5 . .

Folder at bottom of hierarchy (20-30 levels deep)
Notes
Expected Outcome (if not obvious)
1 Via access method #1 . .
2 Via access method #2 . .
3 Via access method #3 . .
4 Via access method #4 . .
5 Via access method #5 . .

NoSelect folder
Notes
Expected Outcome (if not obvious)
1 Via access method #1 IMAP only. See how to create a NoSelect folder in Create folder test plan. Compacting a NoSelect folder shouldn't do anything...there can be no messages in it to compact. The UI for compacting may be grayed out when a NoSelect folder is the selected folder.
2 Via access method #2 . .
3 Via access method #3 . .

Messages-only folder
Notes
Expected Outcome (if not obvious)
1 Via access method #1 IMAP-only. See how to create a messages-only folder in Create folder test plan. .
2 Via access method #2 . .
3 Via access method #3 . .
4 Via access method #4 . .
5 Via access method #5 . .

Dual-use folder
Notes
Expected Outcome (if not obvious)
1 Via access method #1 IMAP only. See how to create a dual-use folder in Create folder test plan. .
2 Via access method #2 . .
3 Via access method #3 . .
4 Via access method #4 . .
5 Via access method #5 . .

Folder with unusual ascii characters
Notes
Expected Outcome (if not obvious)
1 Via access method #1 (Try several, as done in the create folders test plan) .
2 Via access method #2 . .
3 Via access method #3 . .
4 Via access method #4 . .
5 Via access method #5 . .

Local folder
Notes
Expected Outcome (if not obvious)
1 Via access method #1 . .
2 Via access method #2 . .
3 Via access method #3 . .
4 Via access method #4 . .
5 Via access method #5 . .

Movemail folder
Notes
Expected Outcome (if not obvious)
1 Via access method #1 . .
2 Via access method #2 . .
3 Via access method #3 . .
4 Via access method #4 . .
5 Via access method #5 . .

Sent folder
Notes
Expected Outcome (if not obvious)
1 Via access method #1 . .
2 Via access method #2 . .
3 Via access method #3 . .
4 Via access method #4 . .
5 Via access method #5 . .

Drafts folder
Notes
Expected Outcome (if not obvious)
1 Via access method #1 . .
2 Via access method #2 . .
3 Via access method #3 . .
4 Via access method #4 . .
5 Via access method #5 . .

Trash folder
Notes
Expected Outcome (if not obvious)
1 Via access method #1 . .
2 Via access method #2 . .
3 Via access method #3 . .
4 Via access method #4 . .
5 Via access method #5 . .

Templates folder
Notes
Expected Outcome (if not obvious)
1 Via access method #1 . .
2 Via access method #2 . .
3 Via access method #3 . .
4 Via access method #4 . .
5 Via access method #5 . .

Inbox
Notes
Expected Outcome (if not obvious)
1 Via access method #1 . .
2 Via access method #2 . .
3 Via access method #3 . .
4 Via access method #4 . .
5 Via access method #5 . .

Subfolder of Inbox
Notes
Expected Outcome (if not obvious)
1 Via access method #1 . .
2 Via access method #2 . .
3 Via access method #3 . .
4 Via access method #4 . .
5 Via access method #5 . .

Perform these additional tasks
Notes
Expected Outcome (if not obvious)
1 Compact a folder with several thousand messages that need to be cleaned up. . .
2 Compact an empty folder. . .
3 Compact a shared folder. 5.0 may or may not support shared folders. .
4 Compact all folders at once. This may or may not be a feature in 5.0 All folders, both expanded and collapsed, should be compacted when the user chooses this action.
Copyright © 1998-1999 The Mozilla Organization.
Last modified April 5, 1999.