Closed Bug 300312 Opened 19 years ago Closed 13 years ago

Template field is empty for filters on local folders

Categories

(MailNews Core :: Filters, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 5.0b1

People

(Reporter: iannbugzilla, Assigned: rkent)

References

Details

(Whiteboard: [fixed-seamonkey2.1])

Attachments

(2 files)

Using TB build ID 20050705 and SM build ID 2005070506 on Win XP SP2
Steps to reproduce
1. Make sure your have a template in the local folders' templates folder
1. Create a new filter for local folders
2. Click on the reply with template dropdown

Expected result
1. List of available templates from local folders' templates folder

Actual result
1. Empty list

It looks like
accountManager.getFirstIdentityForServer(gFilterList.folder.server) returns null
for local folders as the server, which I think is what causes the problem.
We either need to disable reply with template for local folders or get the
correct resource for the local folders' template folder.
this was fallout from bug 297360 - I'd like to fix this for 1.1a2, even if your
rewrite fixes this in general, Scott.
Assignee: nobody → bienvenu
Status: NEW → ASSIGNED
Attachment #188946 - Flags: superreview?(mscott)
Attachment #188946 - Flags: superreview?(mscott) → superreview+
Comment on attachment 188946 [details] [diff] [review]
fix general case (but not specific local folders case)

this is needed for new reply with template feature to work.
Attachment #188946 - Flags: approval-aviary1.1a2?
fix for general case is checked in; I'll look at the specific local folders case
later.
*** Bug 300384 has been marked as a duplicate of this bug. ***
Attachment #188946 - Flags: approval-aviary1.1a2? → approval1.8b4+
(In reply to comment #3)
> fix for general case is checked in; I'll look at the specific local folders
> case later.

I experienced this Bug on TB 1.5RC2 - I posted my findings (including screenshot) on Mozillazine:
http://forums.mozillazine.org/viewtopic.php?t=363805&highlight=

The strange thing is that it 'fixed' itself... though I have no idea how/why.
QA Contact: filters
Product: Core → MailNews Core
Bienvenu still want this assigned?
Since in TB 3.1 I made local folders the default for deferred accounts, this is going to show up more. I'm assigning to myself to keep it on my radar screen, but no promises of when I will get to it.
Assignee: bienvenu → kent
Error console shows identity is null when you try to select a template for a Local Folder. There is no perfect choice for identify, but defaultAccount.defaultIdentity should work just fine for most users.
Attachment #528529 - Flags: review?(dbienvenu)
Whiteboard: [has path for review]
Comment on attachment 528529 [details] [diff] [review]
Use defaultAccount.defaultIdentity for Local Folders

I had to restart after creating the local folders templates folder for the first time, but after that it worked - I guess computers hate me too!
Attachment #528529 - Flags: review?(dbienvenu) → review+
Comment on attachment 528529 [details] [diff] [review]
Use defaultAccount.defaultIdentity for Local Folders

Checked in http://hg.mozilla.org/comm-central/rev/74b6bb752d8e
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [has path for review]
Target Milestone: --- → Thunderbird 3.3a4
Just a SeaMonkey FYI. Pushed to comm-2.0
http://hg.mozilla.org/releases/comm-2.0/rev/193447332537
Whiteboard: [fixed-seamonkey2.1]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: