Closed Bug 40033 Opened 25 years ago Closed 24 years ago

Pressing on a "news:" link should ask to add to newsgroup

Categories

(MailNews Core :: Networking: NNTP, enhancement, P3)

x86
All
enhancement

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: bugzilla, Assigned: hwaara)

References

Details

Attachments

(4 files)

If you go to: http://www.bootdisk.com/ and press the "win98" link at the top a new news account called "alt.windows98" is automatically added to the mail/news accounts. This should not be the case. There should be a dialog asking the user if he/she want to add this news group to his default news server. Or even better ask which news server to add it to! PS: Currently mozilla add the alt.windows98 as a new newsaccount which is wrong, but that's properly another bug...
I think this is what Seth talks about in bug 37464. Marking as dup. *** This bug has been marked as a duplicate of 37464 ***
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
no, that other bug is something else. this bug is a RFE, for something new.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
note, 4.x doesn't do this. if we ever do this, it would be configurable with a pref. (I wouldn't want this behaviour.) this is low on my priority list, adding help wanted, marking m30
Severity: normal → enhancement
Keywords: helpwanted
Target Milestone: --- → M30
moving to future milestone.
Target Milestone: M30 → Future
Mass moving all NEWS bugs from esther to myself.
QA Contact: lchiang → stephend
If there is a mailto: link on a webpage and you click it, the mail program that is configured to use the mailto: protocol on your system will open up a compose message window, I don't see why it should be any different for NNTP, but that's just my opinion. Seth - can I assign this to nobody@mozilla.org?
Pressing a mailto: and a news: isn't the same. Pressing a mailto: just gives you an compose window that you can close. Pressing a "news:alt.windows98" adds a newsaccount called "alt.windows98" to your list of accounts. Actually it adds a newsserver "alt.windows98" which is dead wrong. If it should do anything it should to adding the newsgroup "alt.windows98" to the default newsserver. Since a lot of hocus pocus is done without the user knowing it (like setting the username and email adresse of the account "alt.windows98") I think it should ask the user before doing this!
Summary: Pressing on a "news:" link should ask to add to newsgroup → {RFE} Pressing on a "news:" link should ask to add to newsgroup
Henrik - obviously this isn't part of a Netscape spec, but a Mozilla contributor could contribute the code if he/she wanted. Leaving the bug as it is, in case someone wants to add this. I still think this should be assigned to nobody@mozilla.org until someone steps up to the plate for this.
Assignee: sspitzer → nobody
Status: REOPENED → NEW
Setting OS to ALL
OS: Windows 2000 → All
"obviously this isn't part of a Netscape spec..."? Why not? Aren't Netscape an News reader and a Browser? But helpwanted is ok...
once I land my fix for #41146, a link like "news:alt.windows98" will behave much better. (see that bug for details.)
Depends on: 41146
RFE cleanup. RFE is already indicated by the Severity field...Sorry for the spam!
Summary: {RFE} Pressing on a "news:" link should ask to add to newsgroup → Pressing on a "news:" link should ask to add to newsgroup
I've got some rough code in my tree that does this, but it depends on the regression in bug 39584 getting fixed.
Assignee: nobody → hwaara
Depends on: 39584
cc'ing jglick so she can review the proposed changes in behaviour. hwaara, can you summarize what the user will see?
It's simple, it would be the opposite of today's auto-unsubscribe stuff. autoUnsubscribeText=The newsgroup %1$S does not appear to exist on the host %2$S. Would you like to unsubscribe from it? autoSubscribeText=Would you like to subscribe to %1$S?
Status: NEW → ASSIGNED
Keywords: helpwanted
Target Milestone: Future → ---
Text Håkan suggested seems fine. Should there be a "Do not show me this dialog again" checkbox? If so, what does checking it to? Future - Clicking on a newsgroup link automatically subscribes user to the group? (Since the dialog is asking the user if they want to be added (vs confirming an action), its not really clear what behavior they will get if they don't want to see the dialog again). Should there be a place in the UI to turn the dialog back on? If so, is it a global or per news server setting?
jglick, "don't ask me again"-checkboxes should only be used for actions that are used very frequently (to not annoy the user). This is not one of those cases, as far as I can see.
Attached patch FixSplinter Review
The code is pretty straightforward. When a news link is run to auto-subscribe, ask the user "Would you like to subscribe to alt.blah?", if the user hits OK, we subscribe, if Cancel, nothing happens. Also, this will work much better with the fix in bug 47981. Bienvenu, requesting your r= here as well. Thanks.
Seth is the module owner for news, so he should review, and I'll sr.
Blocks: 106553
I've been using this patch and this feature a lot, and it works great. Seth, would you please sr=?
GetNewPrompter() takes an nsIDOMWindow for the parent. if we've got it, we should use the msg window for the parent, instead of always passing null. I'll finish reviewing later.
I'll make us pass m_msgWindow there, so if it's null it will create a parent for us and if not we'll use the existing msgwindow.
see nsImapIncomingServer::FEAlert() in nsImapIncomingServer.cpp for an example of what to do.
Funny, I coded the change before your comment and my code looks almost identical to that function.
1) what's this for? +#include "nsIMimeMiscStatus.h" 2) now that commandSpecificData is an XPIDLCString, you can (and have to) fix other code. because you can: - if (m_messageID && commandSpecificData && !PL_strcmp(commandSpecificData, "?cancel")) { + if (m_messageID && !PL_strcmp(commandSpecificData, "?cancel")) { because I think you have to (you should double check) - else if (commandSpecificData) + else if (commandSpecificData.Length())
Comment on attachment 55930 [details] [diff] [review] Hopefully final patch r=sspitzer make sure to test well.
Attachment #55930 - Flags: review+
Bienvenu, r=sspitzer... You know what to do. ;-)
Comment on attachment 55930 [details] [diff] [review] Hopefully final patch sr=bienvenu
Attachment #55930 - Flags: superreview+
fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago24 years ago
Resolution: --- → FIXED
This works fine if you confirm it, but goes bad on cancel... Anyway there are 3 known issues, and they're specific cases. See bug 108256, bug 108264 and bug 108251. Verified FIXED, 2001-11-02 builds - Mac OS 9.1, Windows 2K, RedHat 7.2
Status: RESOLVED → VERIFIED
Product: MailNews → Core
Product: Core → MailNews Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: