Closed Bug 296520 Opened 19 years ago Closed 19 years ago

Mails incorrectly deleted when using "Delete messages more than xx days"

Categories

(Thunderbird :: Account Manager, defect)

x86
Windows XP
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: nthomas, Assigned: Bienvenu)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050603 Firefox/1.0+
Build Identifier: Thunderbird version 1.0+ (20050602)

Setting the Disk Space preference for the Local Folders account to "Delete
messages more than 30 days" results in Thunderbird (and SeaMonkey trunk same
day) deleting all but 30 messages regardless of their date. 

Reproducible: Always

Steps to Reproduce:
1, Create a new profile
2, Use the wizard to create a new Newsgroup account, point it a real newsserver
(eq: news.mozilla.org)
3, Create a test folder at the top level in the Local Folders account
4, Go to Account Settings, Local Folders, Disk Space and tick the checkbox
"Delete messages more than 30 days"
5, Subscribe to a group with more than 30 posts in the last 30 days (eg:
netscape.public.mozilla.browser)
6, Copy > 30 new posts to your test folder
7, Click on the test folder 
Actual Results:  
The number of messages in the folder drops to 30 (the number of new messages may
be slightly lower).

Expected Results:  
No messages are deleted since none are old enough.

This may be fallout from bug 11055 - I haven't been bold enough to test this on
an IMAP account.

Other testers at Mozillazine forums
(http://forums.mozillazine.org/viewtopic.php?t=274565) report that changing the
value from 30 is not reliable.
Confirmed using Thunderbird 1.1 Alpha build.

I'm wondering if this might not just be a simple XUL problem. The preferences
page looks like:

( ) Don't delete any messages
( ) Delete all but the last [ 30 ] messages
(o) Delete messages more than [ 45 ] days 

And what seems to be happening is although the third radio button is checked,
the result is as if the user had checked the 2nd radio button.
Status: UNCONFIRMED → NEW
Ever confirmed: true
To be clear, this problem doesn't affect the recently released Thunderbird 1.1a1
(version 1.0+ (20050531)).
I think my diagnosis is right :)

Try this:

   - follow the steps listed above to re-create, but ..
   - select (o) Delete all but the last [  ] messages
   - set that value to 15
   - select (o) Delete messages more than [  ] days
   - set that value to whatever

You should now find that the folder deletes all but the 15 most recent messages.
I think it's just that the radio button is associated with the wrong function.

(but this may all be moot now if that dialog's no longer in the build)
it's an embarrassing bug in the backend code - fix upcoming.
Status: NEW → ASSIGNED
Attached patch fixSplinter Review
Assignee: mscott → bienvenu
Attachment #185269 - Flags: superreview?(sspitzer)
Attachment #185269 - Flags: review?(sspitzer)
Attachment #185269 - Flags: superreview?(sspitzer)
Attachment #185269 - Flags: superreview+
Attachment #185269 - Flags: review?(sspitzer)
Attachment #185269 - Flags: review+
Attachment #185269 - Flags: approval-aviary1.1a2+
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: