Created attachment 471806 [details] Test message with empty subject line When you save a message with an empty subject line and open it again by double clicking the file, you get a window with "nullMozilla Thunderbird" as title. When you view the same message from within Thunderbird, you only see "Thunderbird" as title. Steps to Reproduce: 1. Compose a message with an empty subject line and send it to yourself 2. View the message in a new window in thunderbird and verify the window title is "Mozilla Thunderbird" 3. Save the message as a file 4. Open the saved file and see the window title is now "nullMozilla Thunderbird" The subject displayed in the window title should be the same as when viewed from within Thunderbird, so without the null part.
Onno is this a regression ?
In Thunderbird 2 the subject is initialized and the title is shown as "- Thunderbird". In TB3.0.6 also the wrong "nullMozilla Thunderbird" is shown, so yes, it's a regression, but for version 3.0.
(In reply to comment #2) > In Thunderbird 2 the subject is initialized and the title is shown as "- Can you try to figure out when this broke ?
I cannot seem to find old releases of 3.0.1 or nightlies of around that version on http://ftp.mozilla.org/pub/mozilla.org/thunderbird/ :-( Oldest version is 3.0.4...
This has been bOrken since TB3.0b3. In alpha versions and earlier beta versions the opening of .EML files doesn't work at all...
(In reply to comment #5) > This has been bOrken since TB3.0b3. In alpha versions and earlier beta versions > the opening of .EML files doesn't work at all... Can you try to get a date range for that ?
date situation 2009-06-28 does not launch thunderbird on double click 2009-06-29 shows "null - Shredder" as windows title ... 2009-07-06 shows "null - Shredder" as windows title 2009-07-07 shows "nullShredder" as windows title
2009-06-27 works ?
No, before 2009-06-28 window doesn't open on double click...
> 2009-07-06 shows "null - Shredder" as windows title > 2009-07-07 shows "nullShredder" as windows title regression range points to this Bug 502389 - Thunderbird should make use of titlemodifier and titlemenuseparator attributes on the main and message windows - see http://hg.mozilla.org/comm-central/pushloghtml?startdate=2009-07-06&enddate=2009-07-07
Created attachment 589034 [details] [diff] [review] fix
Created attachment 589362 [details] [diff] [review] Tests
Please use MPL2 - http://www.mozilla.org/MPL/headers/ Also, can you add file documentation /** * Tests that opening an .eml file with emtpy subject works. */ header like ^^ to the test? That way dir listings with mxr are useful.
Comment on attachment 589034 [details] [diff] [review] fix thx, Hiro!
Comment on attachment 589362 [details] [diff] [review] Tests thx, Hiro, r=me, with a couple nits: 2012 copyright year and + let expectedTitle; + if (subject) + expectedTitle = subject + " - " + productName; + else + expectedTitle = productName; + this can be just let expectedTitle = (subject) ? subject + " - " + productName : productName;
Created attachment 591345 [details] [diff] [review] Revised test file Carrying over review +. Switch to MPL2, add comment about the test and use ternary operator.
6 years ago