Closed
Bug 335846
Opened 19 years ago
Closed 19 years ago
Need a Junk Preferences Panel in Seamonkey
Categories
(SeaMonkey :: Preferences, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mscott, Assigned: mnyromyr)
References
()
Details
(Keywords: fixed-seamonkey1.1a, fixed1.8.1, relnote)
Attachments
(3 files, 8 obsolete files)
2.05 KB,
patch
|
mnyromyr
:
review+
|
Details | Diff | Splinter Review |
20.51 KB,
patch
|
iannbugzilla
:
review+
neil
:
approval-seamonkey1.1a+
|
Details | Diff | Splinter Review |
SeaMonkey pref panel, v5: consolidated update functions [checked in on trunk and MOZILLA_1_8_BRANCH]
29.48 KB,
patch
|
iannbugzilla
:
review+
mnyromyr
:
superreview+
kairo
:
approval-seamonkey1.1a+
|
Details | Diff | Splinter Review |
As part of the work in Bug #257990, the following spam settings are becoming global instead of account specific:
loggingmanualMark, manualMarkMode and spamLogging
seamonkey is going to need a Mail News pref panel for junk settings to allow users to change these new global settings.
257990 will be landing on the trunk and the 1.8.1 branch, so this work would have to go into both places too.
Assignee | ||
Updated•19 years ago
|
Assignee: prefs → mnyromyr
Assignee | ||
Comment 1•19 years ago
|
||
This is the first go at a SeaMonkey pref panel, plus needed help changes.
The diff is against trunk, so my slight changes to the new files of bug 257990 am-junk.js/.dtd (I readded the markAsReadOnSpam pref) result in these files marked as entirely new. You should have attachment 220151 [details] [diff] [review] applied to your tree as a prerequisite.
Attachment #221987 -
Flags: review?(iann_bugzilla)
Reporter | ||
Comment 2•19 years ago
|
||
Karsten, thank you for taking this on.
Would it be easier for me to land the patch in 257990 so it becomes easier to test and see the pref panel patch for this bug? During the time between when I check in and when this bug lands, the only real user impact would be an inability to see the junk mail logs which could be something one could get by without for a day or two of nightly builds I think. That will also make it easier for me to see what changes need to be added to am-junk.xul/.js to support this patch as well.
Assignee | ||
Comment 3•19 years ago
|
||
Diffing my changed versions of am-junk.xul/.dtd against their initial versions in bug 257990. (The change to am-junk.js in attachment 221987 [details] [diff] [review] here is not needed, so I left it out.)
Scott, I'm fine with 257990 leading the way, go ahead.
Reporter | ||
Comment 4•19 years ago
|
||
The suite will need this patch (or something like it) to migrate the settings which have become global.
I also migrated the mark spam as read pref as well in this patch. I think that pref should be global and not account specific, thus adding it to the seamonkey pref panel (I just added it to the thunerbird options panel) instead of in the account panel.
Feel free to add this patch to your existing seamonkey pref panel patch or review it and I can check it in. I'm fine either way.
Attachment #222536 -
Flags: review?(mnyromyr)
Comment 5•19 years ago
|
||
Just a sidenote: when updating the help doc, please be sure to double check the UI labels, especially with upper/lower case handling. As it is now, it's very unconsistent.
Comment 6•19 years ago
|
||
Scott, mark as read on spam still seems to be implemented per-server.
Assignee | ||
Comment 7•19 years ago
|
||
Comment on attachment 222536 [details] [diff] [review]
[checked in trunk and branch] seamonkey changes to migrate several acct. prefs to their global equivalents
r=me; this has already been checked in on trunk as part of bug 257990.
Attachment #222536 -
Flags: review?(mnyromyr) → review+
Assignee | ||
Comment 8•19 years ago
|
||
Patch against the current trunk after bug 257990 got checked in.
Attachment #221987 -
Attachment is obsolete: true
Attachment #222420 -
Attachment is obsolete: true
Attachment #222742 -
Flags: superreview?(neil)
Attachment #222742 -
Flags: review?(iann_bugzilla)
Attachment #221987 -
Flags: review?(iann_bugzilla)
Assignee | ||
Comment 9•19 years ago
|
||
The respective help changes.
Attachment #222743 -
Flags: review?(iann_bugzilla)
Comment 10•19 years ago
|
||
Comment on attachment 222742 [details] [diff] [review]
SeaMonkey pref panel, v2
>Index: mailnews/base/prefs/resources/content/pref-junk.js
>@@ -0,0 +1,44 @@
No licence :-(
>+ window.openDialog("chrome://messenger/content/junkLog.xul",
>+ "junkLog",
>+ "chrome,modal,titlebar,resizable,centerscreen",
>+ null);
Why the null?
>+ // if the user says no, then just fall out
>+ if (!promptService.confirm(window, title, text))
Might be worth using confirmEx so you can make No the default.
>+<!ENTITY junk.label "Junk">
>+<!ENTITY pref.junk.title "Junk">
Change these (and any I missed) to "Junk Settings" perhaps?
>+<!ENTITY junkSettings.caption "Global Junk Settings">
Either way I think I'd like this to say "Global Junk Mail Settings".
>- // for security, disable JS
>- gLogView.docShell.allowJavascript = false;
>+ gLogView.docShell.allowJavascript = false; // for security, disable JS
Why this change?
>+ var directoryService = Components.classes["@mozilla.org/file/directory_service;1"]
>+ .getService(Components.interfaces.nsIProperties);
.s not lined up.
>+ ioService = Components.classes["@mozilla.org/network/io-service;1"]
>+ .getService(Components.interfaces.nsIIOService);
Again.
sr=me with these fixed or explained.
Attachment #222742 -
Flags: superreview?(neil) → superreview+
Assignee | ||
Comment 11•19 years ago
|
||
> >Index: mailnews/base/prefs/resources/content/pref-junk.js
> >@@ -0,0 +1,44 @@
> No licence :-(
Oops.
> >+<!ENTITY junk.label "Junk">
> >+<!ENTITY pref.junk.title "Junk">
> Change these (and any I missed) to "Junk Settings" perhaps?
I considered that, but I think that the word "settings" does not hold any significance for a pref panel - what else should it contain than settings?
I actually don't like it in the mail account prefs, but there we have "server settings", too, so it probably doesn't too much.
> >- // for security, disable JS
> >- gLogView.docShell.allowJavascript = false;
> >+ gLogView.docShell.allowJavascript = false; // for security, disable JS
> Why this change?
To get that line closer to that above:
| gLogView = document.getElementById("logView");
| -
| - // for security, disable JS
| - gLogView.docShell.allowJavascript = false;
I overhauled almost the whole function, so a blame history change shouldn't be that problematic.
> .s not lined up.
Bah, I definitely need a better editor on Mac. :-/
I'll do that other requested fixes. Ian, do you like that changed before your review?
Comment 12•19 years ago
|
||
Comment on attachment 222742 [details] [diff] [review]
SeaMonkey pref panel, v2
>Index: mailnews/base/prefs/resources/content/pref-junk.js
>===================================================================
>+function Startup()
>+{
>+ UpdateManualMarkMode(document.getElementById('manualMark').checked);
>+ UpdateJunkLogButton(document.getElementById('enableJunkLogging').checked);
>+}
>+
>+function UpdateManualMarkMode(aEnableRadioGroup)
>+{
>+ document.getElementById('manualMarkMode').disabled = !aEnableRadioGroup;
You need to take into account locked prefs here I think.
>+}
>+
>+function UpdateJunkLogButton(aEnableButton)
>+{
>+ document.getElementById('openJunkLogButton').disabled = !aEnableButton;
Alot of buttons in prefs can be disabled by a pref setting, should we look having this one pref controlable?
Attachment #222742 -
Flags: review?(iann_bugzilla) → review-
Comment 13•19 years ago
|
||
Comment on attachment 222743 [details] [diff] [review]
SeaMonkey help changes, v2
>Index: extensions/help/resources/locale/en-US/mail_help.xhtml
>===================================================================
>@@ -4703,16 +4730,56 @@ to filter unwanted mail.</p>
.
.
.
>+ <li><strong>Mark messages determined to be junk as read</strong>: Select this
>+ option to mark junk messages as read, so they will not show up as new.</li>
>+ <li><strong>Enable junk filter logging</strong>: Select this option to allow
>+ logging the history of Junk mail detections. Click the
There is space to move part of the line below up a line.
>+ <strong>Show log</strong> button to open a dialog showing this log.</li>
>+ <li><strong>Reset training data</strong>: Click this button to clear the
>+ training data of the adaptive junk filter. Since this will effectively
>+ destroy your personal junk profile, you will be asked for confirmation.</li>
The line above goes over the 80 column limit.
Attachment #222743 -
Flags: review?(iann_bugzilla) → review+
Reporter | ||
Comment 14•19 years ago
|
||
(In reply to comment #7)
> (From update of attachment 222536 [details] [diff] [review] [edit])
> r=me; this has already been checked in on trunk as part of bug 257990.
>
I didn't mean to check that file in before you had a chance to review it. Sorry about that. I'll land it on the branch too.
Reporter | ||
Updated•19 years ago
|
Attachment #222536 -
Attachment description: seamonkey changes to migrate several acct. prefs to their global equivalents → [checked in trunk and branch] seamonkey changes to migrate several acct. prefs to their global equivalents
Assignee | ||
Comment 15•19 years ago
|
||
Made buttons lockable; added some licences; fixed most nits; renamed "Junk" panel to "Junk Mail" panel. Carrying over sr+, rerequesting r?.
Attachment #222742 -
Attachment is obsolete: true
Attachment #222939 -
Flags: superreview+
Attachment #222939 -
Flags: review?(iann_bugzilla)
Assignee | ||
Comment 16•19 years ago
|
||
Help changes synced up to the code changes (Junk->Junk Mail) + fixed nits.
Attachment #222939 -
Attachment is obsolete: true
Attachment #222940 -
Flags: review?(iann_bugzilla)
Attachment #222939 -
Flags: review?(iann_bugzilla)
Assignee | ||
Updated•19 years ago
|
Attachment #222939 -
Attachment is obsolete: false
Attachment #222939 -
Flags: review?(iann_bugzilla)
Assignee | ||
Updated•19 years ago
|
Attachment #222743 -
Attachment is obsolete: true
Assignee | ||
Comment 17•19 years ago
|
||
Comment on attachment 222939 [details] [diff] [review]
SeaMonkey pref panel, v3: incl. locked buttons
bah, wrong patch
Attachment #222939 -
Flags: superreview+
Attachment #222939 -
Flags: review?(iann_bugzilla)
Assignee | ||
Comment 18•19 years ago
|
||
Correct version.
Attachment #222939 -
Attachment is obsolete: true
Attachment #222952 -
Flags: superreview+
Attachment #222952 -
Flags: review?(iann_bugzilla)
Assignee | ||
Comment 19•19 years ago
|
||
Matching help patch for real code patch v3.
Attachment #222940 -
Attachment is obsolete: true
Attachment #222953 -
Flags: review?(iann_bugzilla)
Attachment #222940 -
Flags: review?(iann_bugzilla)
Comment 20•19 years ago
|
||
Comment on attachment 222952 [details] [diff] [review]
SeaMonkey pref panel, real v3: incl. locked buttons
>+function UpdateManualMarkMode(aEnableRadioGroup)
>+{
>+ document.getElementById("manualMarkMode").disabled = !aEnableRadioGroup;
>+}
You forgot the lockpref test...
>+function UpdateResetTrainingDataButton()
>+{
>+ var resetTrainingDataButton = document.getElementById("resetTrainingData");
>+ var lockpref = resetTrainingDataButton.getAttribute("prefstring");
>+ var isLocked = parent.hPrefWindow.getPrefIsLocked(lockpref);
>+ resetTrainingDataButton.disabled = isLocked;
>+}
This button doesn't need a test; because it has a prefstring it is automatically disabled if the pref is locked. The problem with the other button and the radiogroup is to avoid making it appear enabled by mistake.
Comment 21•19 years ago
|
||
Comment on attachment 222953 [details] [diff] [review]
SeaMonkey help changes, real v3: updated to match code v3 + nits [checked in on trunk and MOZILLA_1_8_BRANCH]
<p>[<a href="#organizing_your_messages">Return to beginning of section</a>]</p>
+
+
<h1 id="controlling_junk_mail">Controlling Junk Mail</
.
.
.
</div>
+
<h2 id="using_junk_mail_controls">Using Junk Mail Controls</h2>
.
.
.
</li>
- <li>Open the Tools menu and choose <q>Junk Mail Controls...</q>. Enable the
- feature for your mail account, and &brandShortName; will automatically
- classify incoming messages. (See
- <a href="#junk_controls_options">Junk Mail Controls Options</a>.)</li>
+
+ <li>Open the Edit menu, and choose Mail & Newsgroups Account Settings.
.
.
.
<p>[<a href="#controlling_junk_mail">Return to beginning of section</a>]</p>
+
<h2 id="junk_controls_options">Junk Mail Controls Options</h2>
.
.
.
<p>[<a href="#controlling_junk_mail">Return to beginning of section</a>]</p>
+
<h2 id="junk_controls_and_filters">Junk Mail Controls and Filters</h2>
.
.
.
<p>[<a href="#controlling_junk_mail">Return to beginning of section</a>]</p>
+
+
<h1 id="importing_mail_from_other_programs">Importing Mail from Other
Programs</h1>
.
.
.
<p>[<a href="#mail_and_newsgroups_account_settings">Return to beginning of
section</a>]</p>
+
+<h2 id="junk_settings">Mail & Newsgroups Account Settings - Junk
+ Settings</h2>
.
.
.
<p>[<a href="#mail_and_newsgroup_preferences">Return to beginning of
section</a>]</p>
+
+<h2 id="global_junk_settings">Mail & Newsgroups Preferences -
.
.
.
+<p>[<a href="#mail_and_newsgroup_preferences">Return to beginning of
+ section</a>]</p>
+
+
<h2 id="labels">Mail & Newsgroups Preferences - Labels</h2>
Those empty lines you're adding doesn't conform with the rest of the file and the other help files, can you please remove them?
Comment 22•19 years ago
|
||
+<p>[<a href="#mail_and_newsgroup_preferences">Return to beginning of
+ section</a>]</p>
+
+
<h2 id="labels">Mail & Newsgroups Preferences - Labels</h2>
That is, one empty line is enough ;)
Assignee | ||
Comment 23•19 years ago
|
||
> +<p>[<a href="#mail_and_newsgroup_preferences">Return to beginning of
> + section</a>]</p>
> +
> +
> <h2 id="labels">Mail & Newsgroups Preferences - Labels</h2>
>
> That is, one empty line is enough ;)
That help source file is almost unreadable. Since it's XHTML, adding empty lines and breaking lines per logic instead of by line size would help reading/editing it significantly, without altering the actual layout a single iota.
I will, of course, do so if Ian requests it, but I really think that this won't be enhancements...
Assignee | ||
Comment 24•19 years ago
|
||
Updated to Neil's comment.
Attachment #222952 -
Attachment is obsolete: true
Attachment #223079 -
Flags: superreview+
Attachment #223079 -
Flags: review?(iann_bugzilla)
Attachment #222952 -
Flags: review?(iann_bugzilla)
Assignee | ||
Comment 25•19 years ago
|
||
*** Bug 339971 has been marked as a duplicate of this bug. ***
Comment 26•19 years ago
|
||
Comment on attachment 223079 [details] [diff] [review]
SeaMonkey pref panel, v4: corrected lockpref usage
>Index: mailnews/base/prefs/resources/content/pref-junk.js
>===================================================================
>+function Startup()
>+{
>+ UpdateManualMarkMode(document.getElementById("manualMark").checked);
>+ UpdateJunkLogButton(document.getElementById("enableJunkLogging").checked);
>+}
>+
>+function IsLocked(aElement)
>+{
>+ return parent.hPrefWindow.getPrefIsLocked(aElement.getAttribute("prefstring"));
>+}
>+
>+function UpdateManualMarkMode(aEnableRadioGroup)
>+{
>+ var manualMarkGroup = document.getElementById("manualMarkMode");
>+ manualMarkGroup.disabled = !aEnableRadioGroup || IsLocked(manualMarkGroup);
>+}
>+
>+function UpdateJunkLogButton(aEnableButton)
>+{
>+ var openJunkLogButton = document.getElementById("openJunkLog");
>+ openJunkLogButton.disabled = !aEnableButton || IsLocked(openJunkLogButton);
>+}
The two functions above just do the same thing to two different elements, so perhaps you could just make the three functions into one? (3rd one being IsLocked).
Attachment #223079 -
Flags: review?(iann_bugzilla) → review-
Attachment #222953 -
Flags: review?(iann_bugzilla) → review+
Assignee | ||
Comment 27•19 years ago
|
||
Fixed IanN's review comments.
Attachment #223079 -
Attachment is obsolete: true
Attachment #224619 -
Flags: superreview+
Attachment #224619 -
Flags: review?(iann_bugzilla)
Attachment #224619 -
Flags: review?(iann_bugzilla) → review+
Assignee | ||
Updated•19 years ago
|
Attachment #222953 -
Attachment description: SeaMonkey help changes, real v3: updated to match code v3 + nits → SeaMonkey help changes, real v3: updated to match code v3 + nits [checked in on trunk]
Attachment #222953 -
Flags: approval-seamonkey1.1a?
Assignee | ||
Updated•19 years ago
|
Attachment #224619 -
Attachment description: SeaMonkey pref panel, v5: consolidated update functions → SeaMonkey pref panel, v5: consolidated update functions [checked in on trunk]
Attachment #224619 -
Flags: approval-seamonkey1.1a?
Assignee | ||
Updated•19 years ago
|
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Updated•19 years ago
|
Attachment #222953 -
Flags: approval-seamonkey1.1a? → approval-seamonkey1.1a+
Updated•19 years ago
|
Attachment #224619 -
Flags: approval-seamonkey1.1a? → approval-seamonkey1.1a+
Assignee | ||
Updated•19 years ago
|
Attachment #222953 -
Attachment description: SeaMonkey help changes, real v3: updated to match code v3 + nits [checked in on trunk] → SeaMonkey help changes, real v3: updated to match code v3 + nits [checked in on trunk and MOZILLA_1_8_BRANCH]
Assignee | ||
Updated•19 years ago
|
Attachment #224619 -
Attachment description: SeaMonkey pref panel, v5: consolidated update functions [checked in on trunk] → SeaMonkey pref panel, v5: consolidated update functions [checked in on trunk and MOZILLA_1_8_BRANCH]
Comment 28•19 years ago
|
||
Please take a look at bug 257990 comment 47, and please close bug 180087 as it is fixed by now, right?
Assignee | ||
Comment 29•19 years ago
|
||
> Please take a look at bug 257990 comment 47
Fixed typo on trunk and MOZILLA_1_8_BRANCH.
> close bug 180087 as it is fixed by now, right?
Right. Done.
Thanks for pointing out these glitches!
Assignee | ||
Updated•19 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•