150 Commits

Author SHA1 Message Date
sspitzer%netscape.com
5a4cb1be4b add "Equals" to the nsIMsgIncomingServer interface. we'll use this soon. r=alecf
git-svn-id: svn://10.0.0.236/trunk@58726 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 04:11:14 +00:00
alecf%netscape.com
38d7153b4f use nsCAutoStrings instead of PR_smprintf/PR_smprintf_free/etc
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@58660 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 00:54:15 +00:00
pavlov%netscape.com
a424cf9a4c add support for new pref/migrate it from 4.x r=alecf
git-svn-id: svn://10.0.0.236/trunk@58187 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-19 01:16:35 +00:00
alecf%netscape.com
0f46623f5b add "valid" attribute to the identity and server to determine if we need to run through the account wizard at startup. part of fix for #23391
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@57899 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-15 03:06:39 +00:00
alecf%netscape.com
6a4dac3b40 make the mail notification systems use nsIAtoms instead of char*s, and add capability to notify on PRUnichar* data that changes
(in preparationfor #19079)
r=scottip


git-svn-id: svn://10.0.0.236/trunk@57809 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-14 09:01:39 +00:00
sspitzer%netscape.com
0fa1fcdaff fix the bogus comment
git-svn-id: svn://10.0.0.236/trunk@57503 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-12 03:03:30 +00:00
sspitzer%netscape.com
ef45f52c55 back end (migration) fix for bug #16219
migrate the mail.pop3_gets_new_mail and mail.imap.new_mail_get_headers get
migrated to mail.server.server1.download_on_biff


git-svn-id: svn://10.0.0.236/trunk@57414 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-11 20:03:51 +00:00
sspitzer%netscape.com
2e52c17f46 warnings fixes, and fix for #21901, all password dialogs to have titles
if the user passes one in, or use "Password" if they pass null.


git-svn-id: svn://10.0.0.236/trunk@56308 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-21 23:03:29 +00:00
alecf%netscape.com
01769cf0b5 fix for #20647 (required to verify a PDT+ bug)
r=sspitzer
nsCRT::strcmp was returning 0 when you pass a PRUnichar* 0 null pointer


git-svn-id: svn://10.0.0.236/trunk@55569 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-07 08:48:52 +00:00
alecf%netscape.com
498dc1681d fix unicode support for prettyName, #20405
retrieve name from prefs using CopyUnicharPref()
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@55122 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 00:10:00 +00:00
dmose%mozilla.org
0efb7c174c updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@52910 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:43:54 +00:00
alecf%netscape.com
e92bd577aa fix for #17214 - consolidate all username and hostname handling so that escaping/unescaping happens logically
git-svn-id: svn://10.0.0.236/trunk@52694 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-03 07:16:59 +00:00
bienvenu%netscape.com
b3ee9d6099 add support for pending counts for imap folders r=mscott
git-svn-id: svn://10.0.0.236/trunk@52369 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 01:06:29 +00:00
alecf%netscape.com
32ed46c795 fix casting problem on solaris
git-svn-id: svn://10.0.0.236/trunk@52116 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 21:13:06 +00:00
alecf%netscape.com
5ecb0c11b3 prepare to consolidate server URI creation - create a new property of incoming servers, the local store type, and construct the URL from there.
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@52098 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 20:22:06 +00:00
sspitzer%netscape.com
71d282e592 fix for #17212, r=mscott.
migrate imap servers that have the port in the name (like nsmail-2:143)


git-svn-id: svn://10.0.0.236/trunk@51915 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 23:34:30 +00:00
sspitzer%netscape.com
cb1644bdd6 fix for bug #14591, r=mscott.
handle the case where we migrate from 4.x and our sent folder is on the imap server.
but, since we haven't logged into the imap server yet, our folders are undiscovered.

other related fixes:
1) make it so on failure to fcc, save to draft, save to template, send later the message shows up.
2) clean up the error message strings
3) fix how we determine if an URI points to a local folder. (all we need to do is look at the scheme and see if it is "mailbox:"
4) remove a stale comment.


git-svn-id: svn://10.0.0.236/trunk@50551 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 04:12:06 +00:00
putterman%netscape.com
12980882c5 Added constructor/destructor counting macros for various mailnews
classes.  reviewed by bienvenu.  no bug.


git-svn-id: svn://10.0.0.236/trunk@50005 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 20:32:25 +00:00
bienvenu%netscape.com
87dca3f0ba add method to shut down connections
git-svn-id: svn://10.0.0.236/trunk@49384 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 01:44:30 +00:00
mscott%netscape.com
614fb1e359 GetPasswordWithUI takes a prompt string to give the protocols finer control over the actual text that goes with the dialog
git-svn-id: svn://10.0.0.236/trunk@48800 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 06:02:46 +00:00
alecf%netscape.com
7893976449 turn the password back into an attribute so I can access it from HTML forms.
Created new GetPasswordWithUI which is the equivalent of getpassword(PR_TRUE..)


git-svn-id: svn://10.0.0.236/trunk@48741 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 02:21:18 +00:00
mccabe%netscape.com
69a8cf7c7b Fix to 7610. Modify xpidl compiler to add 'const' to the method signature for generated attribute setter methods for string, wstring and nsid attributes.
As this changed the generated interface signatures, I had to change all of the uses to avoid bustage.  Any corners of the browser that aren't built by default, or that I haven't discovered how to build, may be at risk of bustage if they use string or wstring attributes.  (This could mean blackwood; sorry, guys!)

Many thanks to Alec Flett (alecf@netscape.com) for preparing diffs for the mailnews portion of the signature changes; thanks also to Ariel Backenroth (arielb@rice.edu) and Mike Shaver (shaver@mozilla.org) for help with updating the tree with NS_DECL_NSIFOO macros; everwhere where one of these macros was used was one less place I had to manually add 'const'.

Also removed extraneous space from generated method signatures, leftover from Brendan's capitalization spam, and made 'const decl must be of type short or long' an error rather than just a warning.


git-svn-id: svn://10.0.0.236/trunk@48284 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 23:46:35 +00:00
sspitzer%netscape.com
348ca4fb1c don't need this code anymore, as we don't need to hash the hostname to get a suitable directory name. see #13480
git-svn-id: svn://10.0.0.236/trunk@47553 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 07:31:27 +00:00
sspitzer%netscape.com
b8c79c5d27 fix for #13833
now we support multiple accounts of the same type on the same server.


git-svn-id: svn://10.0.0.236/trunk@47463 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 00:04:47 +00:00
sspitzer%netscape.com
af2bd19ff0 nsIMsgIncomingServer needs a SetDefaultLocalPath(). we use this when migrating prefs.
add the newsrcRootPath attribute to the nsINntpIncomingServer interface.
implement Set/GetNewsrcRootPath(), similar to how Set/GetDefaultLocalPath() are implemented.

rewrite nsMsgAccountManager to use
Set/GetDefaultLocalPath() and Set/GetNewsrcRootPath()

rename some methods in nsMsgAccountManager for correctness.


git-svn-id: svn://10.0.0.236/trunk@47319 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-14 09:03:40 +00:00
alecf%netscape.com
e836287365 use new protocolinfo service
git-svn-id: svn://10.0.0.236/trunk@47236 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-14 00:36:37 +00:00
sspitzer%netscape.com
3cc43be9a5 do some clean up in preperation of migrating the fcc prefs. (for bug #10583)
change the newsrcFilePath attribute to be a nsIFileSpec, instead of a string.(bug #13306)
add code to do hashing of hostname. [not turned on yet].  (for bug #13480)
remove the obsolete GetRootFolderPath() code from the incoming servers.


git-svn-id: svn://10.0.0.236/trunk@46629 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-09 21:17:32 +00:00
alecf%netscape.com
c07bf750e5 change nsIMsgIncomingServer->SetLocalPath/GetLocalPath to be an nsIFileSpec instead of a string
git-svn-id: svn://10.0.0.236/trunk@46502 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-09 04:11:38 +00:00
mscott%netscape.com
ff10a09b38 Bug #11895 --> add protection for preventing multiple get new message calls on the same server.
git-svn-id: svn://10.0.0.236/trunk@45314 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-31 06:52:27 +00:00
mscott%netscape.com
aaea6659ab migrate smarts about getting password from pop3 protocol to incoming server
so everyone can share in the logic including imap and eventually news.
Bug #7444 --> Add remember password smarts


git-svn-id: svn://10.0.0.236/trunk@45290 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-31 04:39:43 +00:00
putterman%netscape.com
1637886931 If there's no root folder in GetRootFolder, create one.
git-svn-id: svn://10.0.0.236/trunk@45193 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-30 22:12:20 +00:00
alecf%netscape.com
cdf5a4417a clean up folder and server naming:
- prettyName is now a unicode string and lives in nsIFolder
- servers now have the automatic pretty name of "userid on servername" and can be overridden
- name consolidation is complete


git-svn-id: svn://10.0.0.236/trunk@42922 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 04:39:22 +00:00
bienvenu%netscape.com
af6cbfea6d more work on folder cache
git-svn-id: svn://10.0.0.236/trunk@39902 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-17 20:33:15 +00:00
bienvenu%netscape.com
b7fc51af77 more work on folder cache
git-svn-id: svn://10.0.0.236/trunk@39839 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-17 03:26:24 +00:00
sspitzer%netscape.com
840dcdd71b changes to automatically migrate 4.x mail prefs to 5.0 prefs. news doesn't migrate gracefully yet. also, changes to newsrc.file pref and the directory path differently for news.
git-svn-id: svn://10.0.0.236/trunk@39155 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-13 19:23:40 +00:00
ducarroz%netscape.com
880e9ed48f Look for the default value when a pref doesn't exist. Fix problem with actual code, we passed the wrong name to GetDefaultName.
git-svn-id: svn://10.0.0.236/trunk@37885 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-01 21:56:54 +00:00
putterman%netscape.com
2c5afbbd59 Use nsCOMTypeInfo
git-svn-id: svn://10.0.0.236/trunk@37592 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-01 00:16:39 +00:00
bienvenu%netscape.com
f4d2c6ce79 make name and pretty name unichar's
git-svn-id: svn://10.0.0.236/trunk@37244 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-28 21:56:33 +00:00
alecf%netscape.com
a5d51bf47d add type attribute to nsIMsgIncomingServer, and reduce warnings by not using "value"
git-svn-id: svn://10.0.0.236/trunk@35341 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 03:47:59 +00:00
alecf%netscape.com
ff1427278d implement GetPrettyName() correctly - return the hostname if no prettyname is known
git-svn-id: svn://10.0.0.236/trunk@35262 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:53:09 +00:00
putterman%netscape.com
407e992f48 More work on Biff.
git-svn-id: svn://10.0.0.236/trunk@34871 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 22:10:42 +00:00
alecf%netscape.com
d5365cd6f1 XPConnect doesn't seem to like returning NULL from string accessors
git-svn-id: svn://10.0.0.236/trunk@33972 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 04:29:18 +00:00
alecf%netscape.com
4b2b40f6f2 make a little more robust so that we can easily call this from JS
git-svn-id: svn://10.0.0.236/trunk@33961 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-06 18:46:03 +00:00
alecf%netscape.com
215d241d04 rename GetUserName -> GetUsername because Win32 substitutes all GetUserName's with GetUserNameA
git-svn-id: svn://10.0.0.236/trunk@32904 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-27 05:36:10 +00:00
bienvenu%netscape.com
c2b91a445c changes for mail filters, including setting root folder for server
git-svn-id: svn://10.0.0.236/trunk@32815 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-26 23:56:21 +00:00
alecf%netscape.com
e9d3322134 add new accessor to nsIMsgIncomingServer to get local folder path
git-svn-id: svn://10.0.0.236/trunk@28978 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-23 22:57:31 +00:00
alecf%netscape.com
32119cb129 add a few more attributes to nsMsgIncomingServer
git-svn-id: svn://10.0.0.236/trunk@27772 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-16 00:36:52 +00:00
alecf%netscape.com
6acab92870 forgot to define getDefaultCharPref
git-svn-id: svn://10.0.0.236/trunk@27054 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-10 21:58:09 +00:00
alecf%netscape.com
d64f3b4451 implementation for updated Multiple Accounts. create accounts/identities lazily, etc
git-svn-id: svn://10.0.0.236/trunk@27045 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-10 20:55:30 +00:00
alecf%netscape.com
6249be58f7 first addition of identity work
- Identity for outgoing mail
- Incoming Server for incoming mail


git-svn-id: svn://10.0.0.236/trunk@26563 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-06 22:34:19 +00:00