Closed Bug 241348 Opened 20 years ago Closed 20 years ago

emptying mail files causes crash

Categories

(SeaMonkey :: MailNews: Message Display, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bjlockie, Assigned: Bienvenu)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a) Gecko/20040421
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a) Gecko/20040421

I blanked a bunch of mail files for mailing lists that I'm on with:
for f in *; do
        echo > "$f"
done

Now mail crashes when I enter those folders.

$ mozilla
/usr/local/mozilla/run-mozilla.sh: line 423:  4089 Floating point
exception"$prog" ${1+"$@"}


Reproducible: Always
Steps to Reproduce:
1. Empty some mail files.
2. Remove all .sbf files.
3. Access the mail file from within Mozilla/Mail.


Actual Results:  
Everything closes.

Expected Results:  
It should have rebuilt summary files and then worked normally.
so these are local mailboxes with 0 size?
"echo > testing.txt" creates a file size 1 byte, only containing a newline (\n)
Yes, 1 byte, newline only.
I have filters that send mail to some of them and those ones work after a
message is filtered to them.
Attached patch proposed fixSplinter Review
fix divide by 0 error
Attachment #146816 - Flags: superreview?(mscott)
Status: UNCONFIRMED → ASSIGNED
Component: Mail Database → Subscribe
Ever confirmed: true
Attachment #146816 - Flags: superreview?(mscott) → superreview+
fixed
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Product: Browser → Seamonkey
Component: MailNews: Subscribe → MailNews: Message Display
QA Contact: search
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: