Closed
Bug 105838
Opened 23 years ago
Closed 23 years ago
Don't choose news identity when sending mail from non Mail Window
Categories
(MailNews Core :: Composition, defect, P2)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.9
People
(Reporter: scottputterman, Assigned: vparthas)
References
Details
Attachments
(1 file, 1 obsolete file)
2.58 KB,
patch
|
bugzilla
:
review+
mscott
:
superreview+
|
Details | Diff | Splinter Review |
This is a side effect of http://bugzilla.mozilla.org/show_bug.cgi?id=79053.
We now use the identity of the selected account in the mail window when
intiating a compose window from a place in the product that isn't mail. In the
case where the currently selected account is news, I think we should use the
default mail identity. I often find myself browsing and want to send something
to someone based on what I'm looking at and find myself stuck with a preselected
news identity and a newsgroup filled into the To field.
Steps:
1. Read a newsgroup
2. Go to the browser and bring up a compose window
3. See that the identity is preselected to News and that the newsgroup is
filled into the To field.
I'd rather see the default identity.
*** Bug 105832 has been marked as a duplicate of this bug. ***
Updated•23 years ago
|
QA Contact: sheelar → nbaca
*** Bug 107347 has been marked as a duplicate of this bug. ***
Reporter | ||
Updated•23 years ago
|
Reporter | ||
Updated•23 years ago
|
Priority: -- → P2
Reporter | ||
Comment 4•23 years ago
|
||
*** Bug 117216 has been marked as a duplicate of this bug. ***
Reporter | ||
Updated•23 years ago
|
Target Milestone: --- → mozilla0.9.9
Do you want to use the default identity for all three cases - new message
window, send link and send page? or should the news identity be retained for any
of the three cases?
Status: NEW → ASSIGNED
Comment 6•23 years ago
|
||
Personally, I think they should all behave the same way, and give you the
default identity. The state of my mailnews window shouldn't affect the
behaviour of File->* in the navigator, to my mind. Action at a distance is
confusing!
This fix will ensure that the default identity is used when a new message
window is brought up from the browser (when the news server is selected in the
mail window).
Reporter | ||
Comment 8•23 years ago
|
||
It should affect all of the cases you mentioned. I don't want my news identity
when I'm sending mail from another part of the app and I definitely don't want
to send to a newsgroup unless I explicitly choose to.
Comment 10•23 years ago
|
||
Comment on attachment 69565 [details] [diff] [review]
Patch V.1
>+ var cwindowManager = Components.classes['@mozilla.org/rdf/datasource;1?name=window-mediator'].getService();
>+ var iwindowManager = Components.interfaces.nsIWindowMediator;
>+ var windowManager = cwindowManager.QueryInterface(iwindowManager);
>+ var mailWindow = windowManager.getMostRecentWindow('mail:3pane');
If I am right, you could use instead the nsIMailSession to retreive the topmost
mail window.
BTW, The mostRecentWindow is by creation time, it will not necessary give you
the top most!
var mailSession =
Components.classes["@mozilla.org/messenger/services/session;1"].getService(Comp
onents.interfaces.nsIMsgMailSession);
if (mailSession)
mailWindow = mailSession .topmostMsgWindow;
...
>+ var currentIdentity = getCurrentIdentityKey();
>+ if(currentIdentity)
>+ params.identity = currentIdentity;
could be just:
params.identity = getCurrentIdentityKey();
Assignee | ||
Comment 11•23 years ago
|
||
I have tested and spoken to Jean Francois about it and found that
windowManager.getMostRecentWindow('mail:3pane') does return the most recently
active mail window. I have modified the patch to
params.identity = getCurrentIdentityKey();
Attachment #69565 -
Attachment is obsolete: true
Comment 12•23 years ago
|
||
Comment on attachment 69770 [details] [diff] [review]
Patch V.2
R=ducarroz
Attachment #69770 -
Flags: review+
Comment 13•23 years ago
|
||
Comment on attachment 69770 [details] [diff] [review]
Patch V.2
sr=mscott
Attachment #69770 -
Flags: superreview+
Assignee | ||
Comment 14•23 years ago
|
||
Marking Fixed.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 15•23 years ago
|
||
Trunk build 2002-03-01: WinMe, Linux RH 7.1, Mac 9.1
Verified Fixed, it now selects the default Mail Identity.
Status: RESOLVED → VERIFIED
Updated•20 years ago
|
Product: MailNews → Core
Updated•17 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•