Open Bug 99212 Opened 24 years ago Updated 16 years ago

offline: extreme test case for filtering and downloading messages

Categories

(SeaMonkey :: MailNews: Backend, defect)

defect
Not set
normal

Tracking

(Not tracked)

People

(Reporter: grylchan, Unassigned)

Details

spun off bug 87531. In these rare test cases, filtering messages using Download/Sync will not work correctly. Bascially what happens is the message is filtered to the correct folder but it's not downloaded. test 1 1.create a brand new profile 2.set up your imap acct 3.have couple of folders besides inbox 4.set up filters to distribute mail to diff folders 5.Go to Download and Sync window 6.Click select button 7.Select just the folders that have filters on them Do not select the inbox 8.Click mail mesgs checkbox & Check work offline once download/sync is complete 9.click ok 10.Send mail from another mail account to yourself that will be filtered when you download/sync. Only send mail that will be filterd. Do not send general mail that will go to the inbox. 11.Go online 12.Don't click on any folder or don't do a 'get mesg' 13.Go to Download and Sync window 14.click ok Result: Messages in the first filtered folder won't be downloaded. Rest of filtered folders with messages will be downloaded. Only applies to the '1st filtered folder'. If you send email only to one filtered folder, you will see same results: Messages not downloaded. In order to download,you have to resync or go online & click the messages that did not get downloaded. Expected: all mesgs to be downloaded in my filtered folders Test 2 1. Repeat steps 1-6 from test 1. 2. This time select INBOX and folders w/filters for download. 3. Make sure mail messages checkbox and work offline once download/sync is complete is checked 4. click ok 5. Send messages that will be filtered and messages that will go to your inbox. 6. Go online in the first mail account 7. Don't click on any folder or don't do a 'get mesg' 8. Go to Download and Sync window 9. Click ok Result: Everything is filtered properly but messages sent to the inbox aren't downloaded. Messages in filtered folders are downloaded. If you just sent a message to your inbox (and not to any filtered folders), it would work. Inbox message would be downloaded. But when you send mail both to inbox and filtered folders is when the download fails for inbox messages. expect: all messages in all folders to be filtered and downloaded For both test cases, if the user clicks few folders or does a get mesg when initially they get back online, then you would not see this problem. This is for the user who i guess is extreme hurry and only thing he/she does is hop back online and do a download/sync and them immediately goes offline.
As part of the mail qa's bug triage day, this is still present in 2001-12-14-09-trunk build. Though when I tried the first mail test for 3 filtered folders. For the first 2 folders, the mesgs weren't downloaded (unlike my comments in the test case which said only the first folder wasn't downloaded). The 3rd folder was the only one to have the filtered and downloaded mesg.
Product: Browser → Seamonkey
We do update the inboxes of all accounts before starting the offline download of any folders. It may be the case that the listener for the GetNewMessages() method gets called before the hdr download and filtering process is finished, making the update of the inbox for offline download use get confused. But the code certainly looks OK. The test case is a bit unreliable because there's no guarantee that messages sent in the download sync process are going to be delivered to your inbox before we go offline.
QA Contact: grylchan → offline
Assignee: bienvenu → nobody
QA Contact: offline → mailnews-backend
You need to log in before you can comment on or make changes to this bug.