Closed Bug 38932 Opened 24 years ago Closed 23 years ago

Allow Mail/News Account Wizard branding through CCK tool

Categories

(CCK Graveyard :: CCK-Wizard, defect, P3)

x86
Windows 95
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: robinf, Assigned: shrutiv)

References

(Depends on 1 open bug)

Details

(Whiteboard: nscckb1 Checked in 7 Patch files r=racham r=varada)

Attachments

(8 files)

Include a screen in the CCK tool that allows the ISP to brand the Mail Account 
Wizard (username/pwd dialog). We can take the old "Internet Setup - Part 2" 
screen and use it for this purpose.
Depends on: 38707
Accepting, but there's no agreement yet on whether we will allow mail wizard 
customizations through the CCK tool. We should discuss this at our next team 
meeting. I'm planning to document this as a manual customization.
Status: NEW → ASSIGNED
Target Milestone: --- → M17
re-assigning to Bijal
Assignee: robinf → bijals
Status: ASSIGNED → NEW
Target Milestone: M17 → Future
changing QA contact to blee
QA Contact: bmartin → blee
removing bmartin from cc list
Blocks: 62177
changing assigned to shrutiv
Assignee: bijals → shrutiv
Summary: Allow Mail Account Wizard branding through CCK tool → RFE: Allow Mail Account Wizard branding through CCK tool
Depends on: 73499
Depends on: 65715
Depends on: 73514
In the Netscape commercial release, mail account username/password dialog will
be handled by Account Setup (separately from CCK). However some of the mail/news 
account customizations like server type, incoming server, outgoing server, 
domain name etc. for ISP will be done through the CCK tool.
Status: NEW → ASSIGNED
Summary: RFE: Allow Mail Account Wizard branding through CCK tool → RFE: Allow Mail/News Account Wizard branding through CCK tool
Whiteboard: 7 Patch files need to be reviewed: nscckb1
Varada,
   Tao is out, and we'd like one person familiar with CCK to review the
   changes.  Will you please review all of these changes?

Bhuvan,
  Will you please review the specific changes related to creating the rdf files?
     http://bugzilla.mozilla.org/showattachment.cgi?attach_id=36205
     http://bugzilla.mozilla.org/showattachment.cgi?attach_id=36206

Thanks.
Here are some comments, suggestions and questions (looking at rdf file related
changes):

* (Patch ID : 36205) Please add comments to the code segments that you have
added in this patch. Also, add some example paths or command structures that are
processing in those routines. Like, what is a rootPath and how does it's value
look like. Similarly, xpiArcDest, xpiList and another vars that need explaination. 

Also, as to what is happening in block "else if (strcmp(cmdname, "addrdfFile")
== 0) {". This will help you when you look back at this code couple of months
from now and will be easy for me to expedite the review.

* So, looking at the other patches, I noticed that you are using "isp.rdf" to
represent mail accounts and "news.rdf" to represent news accounts (probaly you
should have named them as mailaccount.rdf and newsaccount.rdf
respectively..anyway that's not a major concern). This setup is per
configuration right...? Will we ever have a scenario where single configuration
will have multiple mail related rdf files (say one for POP and one for IMAP)..?
If yes, we will have problems with the current naming scheme as it allows ISP to
have only one mail type account. Also, only one news account. If we are going
explain ISPs how to generate these files manually & where to place them, if
needed additionally, then we are at least covered. Is there a plan for that ?

I noticed that some of the values that go into rdf files are all hardcoded in
the cpp file. 
For example, 

# <NC:showServerDetailsOnWizardSummary>false</NC:showServerDetailsOnWizardSummary>
#  <NC:wizardSkipPanels>true</NC:wizardSkipPanels>
# <NC:deleteMailLeftOnServer>false</NC:deleteMailLeftOnServer>
& all sample email related fields.

I hope that you all discussed about these options and decided that they remain
that way for a generic rdf file we create via CCK. But remember to update the
help notes as to how ISP can go modify these files if they really need to change
some of those values.

* So, we are putting the generated rdf files in -> root + "\\Configs\\" + config
+ "\\Temp\\";

Is ib.cpp file picking up these files and putting them in the right place...?
Looks like script.ib has command addrdfFile providing required input info as to
where these rdf files have to go..Is that right ?

And finally, please create some sample customizations and rdf files and test the
account creation process for the correctness.

Please update the patches with comments. 

thanks
bhuvan
Bhuvan,
Resubmitting patch for ib.cpp, helpmenu.cpp and script.ib.
I made some changes based on your suggestions. Added a few comments to specify 
the functionality of some routines and variables. Renamed isp.rdf and news.rdf 
as "mailaccount.rdf" and "newsaccount.rdf" respectively.

Script.ib has command addrdfFile providing required input info as to where these 
rdf files have to go. I had attached the patch for this (id=36208). Anyway, I 
have included the patch file for this again.

All other things like multiple accounts, default values, etc. will probably be 
handled by documentation after we discuss about it in our meeting. I created 
some sample customizations and rdf files and tested the account creation 
process. It worked fine. 

Thanks,
Shruti
Target Milestone: Future → ---
You said

// mailaccount.rdf file is created 

in one of the comments inside void CreateNewsMenu(void). Change that to
"newsaccount.rdf" before you check in.

Also, for all your future changes remember that it will be easy for you manage
code later, if you can confine the line length of the each statement to 80 chars
and add comments right above the statement you would like to comment on. Go to
VC++'s Tools->Options->Tabs and select "Insert Spaces" for tab/indent, so that
you will have proper indentation when you check in.

Thanks for adding comments. It's better now.

r=bhuvan on rdf generation related patches.
Thanks. I'll change the mailaccount.rdf comment, I probably overlooked it.
Bhuvan,  Thanks for the detailed review!
Summary: RFE: Allow Mail/News Account Wizard branding through CCK tool → Allow Mail/News Account Wizard branding through CCK tool
Whiteboard: 7 Patch files need to be reviewed: nscckb1 → nscckb1 7 Patch files need to be reviewed, r=racham
The patches seem to be good.
r=varada
Bhuvan and Varada,
Thanks for the review.
Whiteboard: nscckb1 7 Patch files need to be reviewed, r=racham → nscckb1 7 Patch files need to be checked in, r=racham r=varada
Whiteboard: nscckb1 7 Patch files need to be checked in, r=racham r=varada → nscckb1 Checked in 7 Patch files r=racham r=varada
Checked in patch files. Marking this as fixed.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Verified in 6/7 bld. 

FYI, The original description seems to suggest somewhat different from what's 
been done to address this.
Status: RESOLVED → VERIFIED
Blocks: 96876
No longer blocks: 62177
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: