Commit Graph

371 Commits

Author SHA1 Message Date
sspitzer%netscape.com
6844e8ec38 fix for #17212, r=mscott.
migrate imap servers that have the port in the name (like nsmail-2:143)
1999-10-26 23:34:30 +00:00
nhotta%netscape.com
35df054c4f Unicode encoder related change for unmapped characters.
If unicode encoder cannot map a character to the target encoding, it returns used unicode length including the unmapped character.
That is true for all encoder except ISO-2022-JP (bug #15706). Changed the callers to match the encoder behavior. bug 8865, r=cata.
1999-10-26 20:16:11 +00:00
warren%netscape.com
f50d3df7c0 Added nsIChannel::GetOriginalURI so that we can get back to the original chrome file (bug#17144). r=rpotts,mscott 1999-10-26 09:16:24 +00:00
alecf%netscape.com
4bd03fe287 start to consolidate URL and URI parsing into the base classes: remove a whole bunch of protocol-specific code in favor of generalization
basically, more fixes for #14437
r=scottip
1999-10-22 01:02:08 +00:00
nhotta%netscape.com
73e800ef37 Adding a wrapper function for a new i18n interface, part of bug fix 15475, r=rhp. 1999-10-20 23:51:25 +00:00
alecf%netscape.com
a33565470d clean up nsIMsgFolder API in preparation for fixing a number of bugs, most importantly #14437
r=scottip
1999-10-20 21:58:21 +00:00
mscott%netscape.com
860d40cd8b Bug #16814 --> i found a problem which may be causing us to block in the imap protocol when downloading larger
attachments or images. Basically, the nsMsgLineStreamBuffer class had a fence post bug when determining
if it had enough room to read in more bytes. If the # of free bytes in the stream buffer was 1 byte and we
had just one byte of data left to read in from the incoming stream, we would fail to read in that one byte.
r=sspitzer
1999-10-20 21:01:58 +00:00
nhotta%netscape.com
49eae1bcac Checking in a fix for the linux build bastage, 1999-10-18 23:32:45 +00:00
nhotta%netscape.com
b5873913b7 Changed interface and implementation of nsIEntityConverter,
more entity support (before Latin1 only), added a string based interface. Bug fix 8865, r=ftang.
1999-10-18 22:33:14 +00:00
sspitzer%netscape.com
af4500add9 fix warnings. following alecf's recommendations, remove the FindServerUsingURI() method from the nsIMsgAccountManager, remove CreateFolderInDatasource() from nsIMsgFolder, change several methods in nsMsgCopy to return nsresult, and have nsIMsgFolder ** as an outparam, use GetResource() instead of CreateFolderInDatasource(). use NS_SUCCEEDED() instead of comparing against NS_OK directly. 1999-10-18 20:42:06 +00:00
gagan%netscape.com
f1203c259d Fix for bug # 10333. Made webshell a progress event sink as well so that now it redirects all progress messages from necko land to the appropriate docloader observer. The hack to delete strings which are being received in the status messages is a work around the current limitation of the proxy event code. When bug # 16273 is fixed that delete wont be necessary. In fixing this I also noticed that the nsFileTransport wasn't using the proxy events and was incorrectly firing status messages directly onto the UI thread. Fixed that as well. r=rpotts,warren 1999-10-13 10:24:12 +00:00
sspitzer%netscape.com
872b817711 add more comments about what's left to do, and why this is a little scary. 1999-10-13 05:33:26 +00:00
sspitzer%netscape.com
8227e7bda9 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.
1999-10-13 04:12:06 +00:00
jefft%netscape.com
64fe1a5593 added files: mozilla/mailnews/base/util/nsMsgI18N.cpp 1999-10-12 05:21:21 +00:00
jefft%netscape.com
57a2c2ac1e fixed bug 15676 - Display problem in Subject header with non-ascii when Forwarding; decode the subject string based on character prior setting it to nsMsgComposeFields; move nsMsgI18N.h, nsMsgI18N.cpp from compose/src to base/util; r=rhp, nhotta 1999-10-12 05:18:27 +00:00
warren%netscape.com
641f3b5442 Lowercased idl method names for scriptability. Cleaned up nsIURL interface. 1999-10-12 01:39:37 +00:00
mscott%netscape.com
c73e972de5 support nsIStreamObserver to get rid of an assert in necko.
r=sspitzer
1999-10-12 00:13:45 +00:00
putterman%netscape.com
df01d32703 Remove ctor/dtor counter macros I added before it was determined we shouldn't
use them for xpcom classes.
1999-10-10 22:52:49 +00:00
putterman%netscape.com
6a6fa70abd Use ctor/dtor counter macros on non xpcom classes. reviewed by mscott. no bug. 1999-10-10 22:32:54 +00:00
putterman%netscape.com
d73cfc95db Added constructor/destructor counting macros for various mailnews
classes.  reviewed by bienvenu.  no bug.
1999-10-06 20:32:25 +00:00
valeski%netscape.com
43edbee475 r=warren, 15457. Added file extension attribute to URL implementations 1999-10-06 14:36:22 +00:00
warren%netscape.com
8603974025 Added AsyncOpen to nsIChannel for URL dispatching. Added ContentLength to InputStreamChannel. (r=rpotts,valeski) 1999-10-06 08:26:01 +00:00
mscott%netscape.com
dbd7050065 Bug #0000 --> (no bug necessary)....add a #ifdef guard around this header file
so we don't try to include the contents multiple times!!
r=sspitzer
1999-10-05 05:53:31 +00:00
bienvenu%netscape.com
5f056b6037 add method to shut down connections 1999-09-30 01:44:30 +00:00
mscott%netscape.com
0df4028173 GetPasswordWithUI takes a prompt string to give the protocols finer control over the actual text that goes with the dialog 1999-09-22 06:02:46 +00:00
alecf%netscape.com
fa0ee6edae 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..)
1999-09-22 02:21:18 +00:00
putterman%netscape.com
c3de5f7fdb Implement init ins nsMessage. 1999-09-21 20:03:37 +00:00
alecf%netscape.com
95f9061092 depricate old SMTP API. 1999-09-20 06:50:21 +00:00
sspitzer%netscape.com
ca2ce65b99 check in work around for #10235
check in start of work for #14312
fix a couple warnings
comment out some dump() calls
1999-09-20 02:12:28 +00:00
mccabe%netscape.com
4f7990cd94 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.
1999-09-19 23:46:35 +00:00
bienvenu%netscape.com
300285c838 check for null before addreffing 1999-09-18 17:42:51 +00:00
alecf%netscape.com
09558ecb98 it's ok to return null from a pref read 1999-09-17 23:56:39 +00:00
jefft%netscape.com
8e557400ac add CreateStartupUrl() utility routine 1999-09-17 23:17:03 +00:00
putterman%netscape.com
a3e720e049 more performance work for loading folders without .msf files or that have to have
headers downloaded.
1999-09-17 23:12:44 +00:00
mscott%netscape.com
008d364cfc Bug #14021 --> convert nsIURI into a nsISupports before passing in to avoid an nsCOMPtr assert later on. 1999-09-17 20:13:59 +00:00
alecf%netscape.com
93750d1ed6 make the signature an nsIFileSpec for right now 1999-09-17 06:43:27 +00:00
beard%netscape.com
ab95fb6cf4 Added QueryElementAt() which combines GetElementAt() and QueryInterface(). Rationale: combining operations saves a call to AddRef/Release, since it's done by QI. Approved by dp. 1999-09-16 21:29:22 +00:00
putterman%netscape.com
2ad6180b7c Add NotifyFolderLoaded. 1999-09-16 21:07:56 +00:00
cls%seawood.org
cb3abff6ef Remove unnecessary -D_BSD_SOURCE now that __STRICT_ANSI__ is set in <prinet.h> 1999-09-16 14:50:19 +00:00
sspitzer%netscape.com
68d0a7b530 don't need this code anymore, as we don't need to hash the hostname to get a suitable directory name. see #13480 1999-09-15 07:31:27 +00:00
bienvenu%netscape.com
1120b750bf add folder loaded notifications 1999-09-15 00:59:03 +00:00
sspitzer%netscape.com
b1a85f548a fix for #13833
now we support multiple accounts of the same type on the same server.
1999-09-15 00:04:47 +00:00
briano%netscape.com
22b5e77499 General cleanup. 1999-09-14 22:49:58 +00:00
sspitzer%netscape.com
80d5ac54f4 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.
1999-09-14 09:03:40 +00:00
bienvenu%netscape.com
3456144dd5 break out UpdateFolder method from GetMessages 1999-09-14 04:02:34 +00:00
alecf%netscape.com
43d4c32346 use new protocolinfo service 1999-09-14 00:36:37 +00:00
bienvenu%netscape.com
0907f107dc add folder loaded notification and hack around dynamic folder loading slowness method 1999-09-13 21:36:02 +00:00
bienvenu%netscape.com
4f5af29de4 return error from writing out folder cache if any, add code to turn off rdf notifications 1999-09-12 21:36:51 +00:00
cls%seawood.org
a87b20551f Fix my bustage using -D_BSD_SOURCE 1999-09-12 17:15:57 +00:00
mscott%netscape.com
fd311c0688 Fix build breakage across the board!!!! 1999-09-12 06:28:20 +00:00
mscott%netscape.com
983a6c8ddf Include nsIPrincipal.h just to be safe. (The unix tree turned red, but I don't know if it was a midcheckin problem
or if it really needs this).
1999-09-12 05:30:25 +00:00
mscott%netscape.com
68858a62a7 support nsIChannel interface. Part of Bug #10933 --> improve message display performance. 1999-09-12 05:05:28 +00:00
warren%netscape.com
40ed9d6ad2 Removed NS_BASE_STREAM_EOF in favor of returning a count of 0 from Read to indicate EOF. Renamed GetLength to Available. Fixed a number of places where AppendElement's broken error code wasn't checked. 1999-09-09 22:05:05 +00:00
sspitzer%netscape.com
8457354b34 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.
1999-09-09 21:17:32 +00:00
arielb%rice.edu
a5c4082159 spamming tree with NS_DECL_IFOO's. generated code from macros replacing code in .h files 1999-09-09 06:02:05 +00:00
alecf%netscape.com
22703b41c3 change nsIMsgIncomingServer->SetLocalPath/GetLocalPath to be an nsIFileSpec instead of a string 1999-09-09 04:11:38 +00:00
alecf%netscape.com
8c203fba2a switch to nsCRT routines and PR_TRUE/PR_FALSE to reduce include dependancy 1999-09-08 03:08:27 +00:00
bruce%cybersight.com
ea2a483a36 Use nsCRT::free() on result of nsEscape(). 1999-09-04 17:32:36 +00:00
sspitzer%netscape.com
2e20b1a044 fix for #13062. prevent infinite loop when reading news. 1999-09-02 22:07:48 +00:00
tonyr%fbdesigns.com
52e5ad25fd Added NS_ADDREF to child returned from GetChildNamed 1999-09-02 21:23:26 +00:00
mscott%netscape.com
3110bc82ef Bug #8076/9836 --> use specialDirectory::OS_TemporaryDirectory to determine the directory to write tempMessage.eml out to. 1999-09-01 04:09:07 +00:00
alecf%netscape.com
d651af4ec5 it's ok to clear a user pref that isn't there. 1999-09-01 00:45:15 +00:00
mscott%netscape.com
44de0f44c0 Bug #11895 --> add protection for preventing multiple get new message calls on the same server. 1999-08-31 06:52:27 +00:00
alecf%netscape.com
9d390186f0 remove the second most common FMM in mail/news 1999-08-31 06:13:42 +00:00
mscott%netscape.com
58ce8728d2 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
1999-08-31 04:39:43 +00:00
alecf%netscape.com
2d544a12eb add a bunch of new attributes for identities 1999-08-31 00:19:08 +00:00
putterman%netscape.com
82d604a5a0 msgbaseutil.dll isn't 8.3 so change to msgbsutl.dll 1999-08-30 22:17:13 +00:00
putterman%netscape.com
6c0316033c If there's no root folder in GetRootFolder, create one. 1999-08-30 22:12:20 +00:00
alecf%netscape.com
eabcd7839d implement toString() for identities (for debugging) 1999-08-27 20:57:07 +00:00
sspitzer%netscape.com
804a7e88a4 fix for #12595, #12596, #12570, and #10672. migrate some more 4.x prefs, and fix some crashers, and clear 4.x prefs after migrating. 1999-08-27 06:16:14 +00:00
rpotts%netscape.com
0085d83ab0 M9 BRANCH landing... 1999-08-26 22:45:55 +00:00
bienvenu%netscape.com
922a55a1b7 replace nsIEnumerator with nsISimpleEnumerator 1999-08-26 04:41:07 +00:00
putterman%netscape.com
58d47cf74a work on MarkFlagged. 1999-08-24 21:47:22 +00:00
bienvenu%netscape.com
be96b97427 clear progress when it meteors stop 1999-08-24 04:24:19 +00:00
alecf%netscape.com
109da3ad7b fix leak from redundant SetKey calls 1999-08-24 00:29:55 +00:00
mccabe%netscape.com
a900e17559 Replace declarations of interface methods in implementation classes with xpidl-generated NS_DECL_NSIFOO.
Remainder of the netwerk portion of the NS_DECL_NSIFOO spam.
1999-08-22 23:52:07 +00:00
mccabe%netscape.com
381fb81c4f Replace manual method declarations in implementations of xpcom/ interfaces with NS_DECL_NSIFOO. 1999-08-22 11:25:50 +00:00
ramiro%netscape.com
2c19866af3 cleanup linking of libmozreg. 1999-08-21 15:41:53 +00:00
alecf%netscape.com
cce4d3df48 remove the "depth" attribute now that we have isServer 1999-08-21 01:03:00 +00:00
putterman%netscape.com
ce0f3e0ba2 Use nsISupports. 1999-08-20 22:47:55 +00:00
alecf%netscape.com
0bdba7f2fc add new isServer attribute 1999-08-20 22:41:38 +00:00
alecf%netscape.com
672767ddb5 make identity more robust to the prefs service going up and down 1999-08-18 02:40:08 +00:00
gagan%netscape.com
d418cf6936 Added the Param field for a URL. Fixes the bugs being seen by semicolons in URL. 1999-08-12 10:01:33 +00:00
sspitzer%netscape.com
b3d7f66956 change API to avoid using NS_COMFALSE. As jband puts it: NS_COMFALSE generally sucks. NS_COMFALSE is going away. fixes bug #11579 1999-08-11 03:44:32 +00:00
mscott%netscape.com
e79d4ee94c add get server support. 1999-08-10 18:17:25 +00:00
alecf%netscape.com
719f9b06af 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
1999-08-10 04:39:22 +00:00
bienvenu%netscape.com
88bba45875 more work on meteors when loading imap folders 1999-08-10 03:28:30 +00:00
alecf%netscape.com
9694f7aa53 fix naming of folder by caching in mName 1999-08-10 00:03:46 +00:00
bienvenu%netscape.com
b83ba56403 more bulletproofing for those who assume nsMsgDBFolder was including nsIMessage 1999-08-07 03:53:12 +00:00
bienvenu%netscape.com
bbf4cffcd7 get rid of nsString2, more hooking up of status 1999-08-07 02:30:11 +00:00
putterman%netscape.com
0ce25d7084 UpdateSummaryTotals when adding messages. 1999-08-07 00:24:25 +00:00
jefft%netscape.com
1f687f996d added base folder EmptyTrash() method 1999-08-06 18:24:39 +00:00
jefft%netscape.com
1f85f838f6 implement message folder base Compact() method 1999-08-06 13:40:08 +00:00
mscott%netscape.com
073b668253 Correctly handle ref counting for nsMsgStatusFeedback member variable. 1999-08-05 22:25:03 +00:00
mscott%netscape.com
5d87ebf97e Cast nsCSTring as a const char * before passing as an argument. 1999-08-05 05:13:15 +00:00
mscott%netscape.com
16f3cd4cc3 Changes for:
nsString(eOneByte) --> nsCString
nsString(eTwoByte) nsString
nsString2 --> nsString
1999-08-05 04:28:28 +00:00
mscott%netscape.com
11da7e4372 Fix linux warning. 1999-08-04 20:35:58 +00:00
mscott%netscape.com
af877474fd SetErrorMessage takes a const char *, stub out Set/GetErrorMessage
add accessors for nsIMsgStatusFeedback.
1999-08-04 20:29:22 +00:00
bienvenu%netscape.com
3618d8c8bf fix notification of filter folders 1999-08-02 21:33:00 +00:00
sspitzer%netscape.com
8035a9d87c turn of my debugging printfs. 1999-07-31 19:07:05 +00:00