Closed Bug 445343 Opened 16 years ago Closed 16 years ago

adding imap saved search creates unneeded .sbd

Categories

(MailNews Core :: Search, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.9.1a1

People

(Reporter: Bienvenu, Assigned: Bienvenu)

Details

Attachments

(1 file)

When we create an imap saved search, it creates a .sbd folder for that saved search - I think it really means to be creating a .sbd folder for the parent folder.
Attached patch proposed fix Splinter Review
I think this is what the code meant to do - create a .sbd folder for the parent folder.

I'm still working on some other isses having to do with escaping folder names. I want to make sure everything is fixed before getting reviews, in case the patches are dependent on each other.
Comment on attachment 329693 [details] [diff] [review]
proposed fix 

turned out the %20 names was unrelated to this issue, so this fix should be sufficient for this issue.
Attachment #329693 - Flags: superreview?(neil)
Attachment #329693 - Flags: review?(neil)
Comment on attachment 329693 [details] [diff] [review]
proposed fix 

>+  PRBool isServer;
>+  rv = GetIsServer(&isServer);
>+  NS_ENSURE_SUCCESS(rv, rv);
>+
>+  if (!isServer)
>+  {
>+  }
I don't think this is necessary - the code checks whether the directory name exists with and without a .sbd before creating it with a .sbd, and (at least in my tests) the server folder is always created when the account is created.

It's good to be getting rid of that unsafe-looking static cast :-)
Attachment #329693 - Flags: superreview?(neil)
Attachment #329693 - Flags: superreview+
Attachment #329693 - Flags: review?(neil)
Attachment #329693 - Flags: review+
I think you're right - I've [gladly] gotten rid of the isServer check locally.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
OS: Windows XP → All
Hardware: PC → All
Target Milestone: --- → mozilla1.9.1a1
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: