You are here: Mozilla MailNews Functional / UI Tests > Mail & News: Junk Mail Controls
Feature Test Spec: Mail and News Component
Mail and News Component: Junk Mail Controls
Written by Esther GoesReferences
UI
Specification
Bugzillaquery for summary with "junk"
UI Components and Access Methods
Verify all the components are present, visually presented according to spec and that all controls,widgets, mnemonics are functional.
- Menu items listed under Tools
- Junk Mail Controls...
- Mark Selected Messages as Junk
- Mark Selected Messages as Not Junk
- Run Junk Mail Controls on Selected Messages...
- Toolbar Button "Junk"
- Viewing Junk Control icon
- Thread pane column
- Display view widget in column header
- Menu item "Junk Status" listed under View|Sort by
- Message header
- Thread pane column
- Junk Folders:
- Default- Special "Junk"
- User Created
- Junk Mail Controls... dialog
- Account dropdown list
- Junk Log button
- Descriptive Text
- Checkbox to Enable Junk Controls
- Checkbox for selecting exclusion criteria per Address Book entry with Address Book dropdown list
- Checkbox for moving incoming junk messages:
- Radio button for selecting default "Junk" folder on account server with dropdown list of mail accounts and folders
- Radio button for user designated "Other" folder with dropdown list of mail accounts and folders
- Checkbox for "Automatically deleting messages marked as junk mail after [] days"
- OK, Cancel and Help buttons
- Junk Mail Log dialog
- Checkbox for enabling the Log
- Clear Log button
- Text area for displaying log
- OK button
Default or "Out of the box" state of Junk Controls
List of default status for UI components - check with spec for updates:
Name | Criteria |
---|---|
Menu-Junk Mail Controls... | Enabled when All types of Mail Accounts selected |
Menu-Mark Selected Messages as Junk | Enabled when All types of Mail Accounts selected |
Menu-Mark Selected Messages as Not Junk | Enabled when All types of Mail Accounts selected |
Menu-Run Junk Controls on Selected Messages | Enabled when All types of Mail Accounts selected |
Toolbar - "Junk | Enabled when Thread pane has focus |
Thread View- Junk Status column | Visible |
Junk Mail Contols dialog | Mail Account dropdown list enabled, Junk Log button enabled. Checkbox for "Enable Junk Controls" checked- all other options pertaining to these controls disabled. OK, Cancel and Help buttons enabled. |
Junk Mail Controls dialog | The default mail account is listed as the default mail account for "Account" and "Junk" folder on: |
Junk Mail Controls dialog | The Personal Address Book is the default listed address book for the option to not mark certain messages as junk. |
Junk Log | Check box "The Junk Mail log is a file which documents junk mail control activity. Use the checkbox below to enable logging" is enabled. The Clear Log and OK buttons are enabled. Log text area is empty. |
Junk Mail Controls
Junk Mail Controls (JMC) functionality is based on training a file to recognize "Junk" mail based on the users actions. As training happens, the Junk Controls (JC) will have a higher percentage of correctly marking incoming mail as junk/not junk. Training is accomplished by user marking messages as Junk and removing the Junk status if a mail message is erroneously marked as Junk. The training does not compare message to message or sender to sender but collects information and combinations of information to create the training file. Therefore in testing this feature, we're looking for the Junk Mail Control to get better at evaluating Junk mail within a profile as usage goes up.
Mail Junk Controls- Basic UI functionality IMAP, POP & Other
- Verify all default states listed above:
- Verify all Default states are correct for a New Profile
- Verify all Default states are correct for Existing 7.x profile
- Verify all Default states are correct for Migrated 4.7 profile
- Verify correct functionality of Junk Control dialog UI:
- Verify you can turn Junk Control On /Off by checking/unchecking the option and it holds the state through exit and relaunch.
- Verify the list of accounts is complete with all the mail accounts you have listed in the folder pane (Local Folders should not be listed).
- Verify newly added mail accounts are listed and the junk controls are in the Default state.
- Verify you can turn on/off the option to exclude as junk mail, senders who are in in a selected address book, by checking/unchecking the option.
- Verify you can select any Address book listed in the dropdown (no ABook lists or Directories should be listed), and the selection holds through exit and relaunch.
- Verify you can turn on/off the option to Move incoming Junk messages to a designated folder, by checking/unchecking the option.
- Verify AOL mail accounts are not listed in the Move Junk Mail option dropdown
- Verify you can designate any existing mail folder (including folders in Local Folders) as the designated folder for moving to Junk.
- Verify the designated folder, is moved to the top of the folder list and becomes a "Special" folder complete w/icon.
- Verify you can toggle between the auto created Junk folder [default mail server] or user specified (Other) location.
- Verify you can turn on/off the automatic option for deleting junk messages after a certain period and you can change the numeric value for "days".
- Verify you have a training.dat file in the .slt directory of the profile you are using. (At this time you don't get one until Junk Control is turned on, but it will be on by default for the release therefore the .dat file should be created after adding a mail account.
- Verify "Junk" folder creation & classification as "special" per
mail account:
- IMAP, if no Junk folder exists, we create one and make it "special"
- IMAP, if a Junk folder exists, we make it "special"
- POP, we create the Junk folder and make it "special"
- User created folder, designated as the junk folder, we make it "special", remove "special" status of default Junk folder.
- Designated junk folders (default or user created) can not be deleted.
- Default Junk folders that are no longer "special" can be deleted.
Marking messages As Junk - IMAP, POP & Other
- Verify correct functionality of Junk Mail Controls onIMAP account:Junk Mail Control is enabled,
Move is not enabled.
- Mark message/s as junk, verify the Junk status holds during
exit and relaunch.
- Click on the dot in the JM column in the thread pane
- Select a message/s, select the menu item "Mark Selected Message as Junk"
- Select a message/s, click on the Junk button in toolbar
- Messages arrived and was marked as Junk
- Remove junk status from message/s, verify junk status hold during exit and relaunch.
-
- Click on the JM icon in the thread pane
- Select a message/s, select the menu item "Mark Selected Message As Not Junk"
- Select a message/s, click on the Junk button in toolbar
- Move a junk message/s to another IMAP folder, verify the junk status holds during the move, then the exit and relaunch.
- Move a junk message/s to a local folder, verify the junk status holds during the move, then the exit and relaunch.
- Mark message/s as junk, verify the Junk status holds during
exit and relaunch.
- Verify correct functionality of Junk Mail Control onPOP mail account:Junk Mail Control is
enabled, Move is not enabled.
- Mark message/s as junk, verify the Junk status holds during
exit and relaunch.
- Click on the dot in the JM column in the thread pane
- Select a message/s, select the menu item Mark Selected Message as Junk
- Select a message/s, click on the Junk button in toolbar
- Messages arrived and was marked as Junk
- Remove junk status from message/s, verify junk status hold
during exit and relaunch.
- Click on the JM icon in the thread pane
- Select a message/s, select the menu item Mark Selected Message As Not Junk
- Select a message/s, click on the Junk button in toolbar
- Move a junk message/s to an IMAP folder, verify the junk status holds during the move, then the exit and relaunch.
- Move a junk message/s to a local folder, verify the junk status holds during the move, then the exit and relaunch.
- Mark message/s as junk, verify the Junk status holds during
exit and relaunch.
New mail- Junk Mail automatically Moves - IMAP, POP & Other
- Verify correct functionality of Junk Mail Control-Move to
designated folder.Junk Mail Contol is enabled and
trained. Move todefault Junk folder in mail
account is on and selected.
- Get Msg in IMAP mail account that receives junk. Verify new message/s recognized as junk are moved to the default Junk folder in that account
- Get Msg in POP mail account that receives junk. Verify new message/s recognized as junk are moved to the default Junk folder in that account.
- Verify correct functionality of Junk Mail Control-Move to
designated folder.Junk Mail Contol is enabled and
trained. Move touser defined Junk folder in
mail account is on and selected
- Get Msg in IMAP mail account that receives junk. Verify new message/s recognized as junk are moved to the designated Junk folder in that account
- Get Msg in POP mail account that receives junk. Verify new message/s recognized as junk are moved to the designated Junk folder in that account.
- Verify correct functionality of Junk Mail Control-Move to
designated folder.Junk Mail Contol is enabled and
trained. Move todesignated Other Junk folder in Local
Folders is on and selected.
- Get Msg in IMAP mail account that receives junk. Verify new message/s recognized as junk are moved to the designated local Junk folder.
- Get Msg in POP mail account that receives junk. Verify new message/s recognized as junk are moved to the designated local Junk folder.
Exclusion of Address Book sender as Junk Mail - IMAP, POP & Other
- Verify correct functionality of Junk Mail Control-Exclude senders
in address bookJunk Mail Contol is enabled and
trained. Move to designated folder is off . Do not mark messages as
junk mail if sender is in my address book" is on and set it according
to tests below.
- Get Msg in a mail account that receives junk. Verify New message/s from someone in yourPersonal Address book are not flagged as junk.
- Get Msg in a mail account that receives junk. Verify new message/s from someone in auser created & designated address book are not flagged as junk.
Training Mail Junk Controls - IMAP, POP & Other
- Verify correct training of Junk Mail Controls :Setup-Enable Junk
Controls=checked. Do
not mark messages as junk mail if the sender is in my address
book=unchecked. Move
Incoming messages determined to be junk mail to: "Junk" folder on:
[Default IMAP account]=unchecked.Automatically delete messages
marked as junk mail after [14] days=unchecked. Create a profile adding a mail
account that has a good amount (50+) of "Junk" mail already in the
Inbox and will continue receiving junk mail. (For IMAP, I used an IMAP
account that collects junk mail regularly and has several folders that
contain both junk and not junk mail . IMAP accounts used for this test
should not be active on any other system because each message on the
server is flagged with the junk status.).
- Junk Mail Control (initial training 0-50 messages identified)
-
- Get new messages, scan through the thread list, marking 10 or so messages as Junk. Verify the junk icon displays in the column for each one you marked as junk. Verify the status bar shows activity which indicates the training.dat file is being accessed. Exit, relaunch and get new messages, verify the messages are still listed as Junk. (Note, if you have received new Junk mail more than likely it will not be detected as Junk yet, the training file is still to new, mark it as junk manually to train)
- Continue with step "a." until you have manually marked 50+ messages as Junk and have changed the Junk status of some messages that were incorrectly labeled. Exit and relaunch, verify the Mail Junk Control is correctly identifying Junk/Not Junk at about 20%= accuracy.
- Junk Mail Control (moderately trained 50-100 messages
identified)
- Get new messages, mark an additional 50 junk messages. Exit, relaunch and get new messages, verify that JMC is correctly identifying Junk/Not Junk at about 50%= accuracy
- Junk Mail Control (well trained 100+ messages identified)
- Get new messages, mark an additional 50 junk messages. Exit, relaunch and get new messages, verify that JMC is correctly identifying Junk/Not Junk at about 80%= accuracy
Marking Mail as Junk/Not Junk After the Fact - IMAP, POP & Other
- Verify menu option "Run Junk Mail Controls on Selected
Messages".Setup-Enable Junk
Controls=checked. Do
not mark messages as junk mail if the sender is in my address
book=unchecked. Move
Incoming messages determined to be junk mail to: "Junk" folder on:
[Default IMAP account]=unchecked.Automatically delete messages
marked as junk mail after [14] days=unchecked. Use a profile with a mail
account that has a well trained JMC.
- Get new messages, let JMC finish evaluating new mail. Change to a folder that contains a variety of Junk/Not Junk mail and Select All the messages. Using Menu item "Run Junk Mail Controls on Selected Messages". Verify, most of the messages you expected would be marked as Junk are marked as Junk. Exit and relaunch to verify they are all still marked as Junk.
- Get new messages, let JMC finish evaluating new mail. Review messages and select all new junk mail that did get evaluated as Junk. Using menu item "Mark Selected Messages as Junk". Verify all the selected messages are now marked as junk. Exit and relauch to verify they are still marked as Junk.
- Get New messages, let JMC finish evaluating new mail. Review messages and select all new mail that was incorrectly evaluated as Junk. Using menu item "Mark Selected Messages as Not Junk". Verify all the selected messages are no longer marked as Junk. Exit and relaunch to verify they are still not marked as Junk.
Automatic Deleting of Junk - IMAP, POP & Other
- Verify Junk Control option "Run Junk Mail Controls on Selected
Messages".Setup-Enable Junk
Controls=checked. Do
not mark messages as junk mail if the sender is in my address
book=unchecked. Move
Incoming messages determined to be junk mail to: "Junk" folder on:
[Default IMAP account]=checked.Automatically delete messages
marked as junk mail after [1] days=checked. Use a profile with a mail account
that has a well trained JMC
- Get new messages, let JMC finish evaluating new mail. Verify
messages that were moved to your designated Junk folder that were
older than 24 hrs have been deleted per standard Delete outside of
this feature.
- IMAP delete model- Move to Trash and designated Junk folder=Trash. Verify the messages immediately deleted, no longer on server.
- IMAP delete model- Move to Trash and designated Junk folder=Junk or other folder not Trash. Verify the messages are move to the Trash folder
- IMAP delete model- Mark it as Deleted and designated Junk folder=Junk or other folder not Trash. Verify the messages are marked as deleted and are not moved.
- IMAP delete model- Remove Immediately and designated Junk folder=Junk or other folder not Trash. Verify the messages are removed and are not located in any other folder.
- POP account, designated Junk folder=Trash. Verifiy the messages are removed and are not located in any other folder.
- POP account, designated Junk folder=Junk or other folder not Trash. Verifiy the messages are removed and are not located in any other folder
- Verify only Junk mail messages are deleted from the Trash when using Trash as the destination Junk folder.
- Get new messages, let JMC finish evaluating new mail. Verify
messages that were moved to your designated Junk folder that were
older than 24 hrs have been deleted per standard Delete outside of
this feature.
Mail Filters interaction with Junk Controls - IMAP, POP & Other
- Verify Message Filters take precedence over Junk Mail
Controls.Setup-Enable Junk
Controls=checked. Do
not mark messages as junk mail if the sender is in my address
book=unchecked. Move
Incoming messages determined to be junk mail to: "Junk" folder on:
[Default IMAP account]=unchecked.Automatically delete messages
marked as junk mail after [14] days=unchecked. Use a profile with a mail
account that has a well trained JMC. Have a Mail Filter set up with a
criteria that would match that of a junk mail. (For easy testing of
this, you could set up the criteria "Sender contains @" this would
basically put all incoming messages into the designated filter
folder)
- Get new messages, let JMC finish evaluating new mail. Verify all messages that fit the Message Filter critereia you set, were moved to your designated Filter folder and were not flagged as Junk. Exit and relaunch, verify the messages are still in the designated message filter folder and are not marked as Junk.
- Set the option to move Junk mail to the Junk folder. Exit and relaunch. Get new messages, let JMC finish evaluating new mail. Verify all messages that fit the Message Filter critereia you set, were moved to your designated Filter folder (not the Junk folder) were not flagged as Junk.
Junk Mail Log
Other issues
- Junk Mail Control training.dat file is Profile related. However,
Enabling JMC is per mail account.
- Set up a Profile with multiple Mail accounts and set all to enable JMC. Verify it works on all accounts within the profile.
- Set up a Profile with multiple Mail accounts and set 1/2 of the accounts to enable JMC. Verify only those accounts with JMC enabled are evaulating incoming mail as Junk.
- Set up a Profile with multiple Mail accounts various types (IMAP, POP & Other), set all to enable JMC. Verify it works on all accounts within the profile