Commit Graph

707 Commits

Author SHA1 Message Date
ducarroz%netscape.com
4f836323d6 Fix for bug 15313 & 15536. .txt files are now interpreted as XML document. Therefore we need to load a .html file even if it content is purely plain text. R=rhp
git-svn-id: svn://10.0.0.236/trunk@51047 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 22:38:54 +00:00
law%netscape.com
1c3ac7d8fe Bug #14999; stop using toolkit app core; r=ducarroz@netscape.com
git-svn-id: svn://10.0.0.236/trunk@51023 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 21:29:54 +00:00
sspitzer%netscape.com
80c75c7ae1 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.
git-svn-id: svn://10.0.0.236/trunk@51019 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 20:42:06 +00:00
sspitzer%netscape.com
37928e864b fix possible solaris bustage by including the nsIFoo.h files when we have nsCOMPtr<nsIFoo> foo;
git-svn-id: svn://10.0.0.236/trunk@50794 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 05:10:28 +00:00
sspitzer%netscape.com
b3c21470de more fixes to get copies and sent folder prefs to work right.
now, mailbox:// urls work.
change the logic of LocateMessageFolder() to be:

if (the target folder is not "anyfolder://") then {
	find the folder and return it if your find it.
	if you can't find it, create it in the datasource and return the folder.  see bug #14591
}
else {
	look for the default folder in any server associated with the current identity.
	if you find it, return it.
}


git-svn-id: svn://10.0.0.236/trunk@50790 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 05:03:03 +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
jefft%netscape.com
c0fbb70022 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
git-svn-id: svn://10.0.0.236/trunk@50434 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 05:18:27 +00:00
alecf%netscape.com
d5785373e3 land nsIModule for mail compose
git-svn-id: svn://10.0.0.236/trunk@50398 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 00:34:06 +00:00
mscott%netscape.com
6d6b3023f8 support nsIStreamObserver to get rid of an assert in necko.
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@50384 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 00:13:45 +00:00
alecf%netscape.com
450082561c fix mac-specific bustage
git-svn-id: svn://10.0.0.236/trunk@50186 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 01:11:13 +00:00
alecf%netscape.com
f562178cfd exorcise xp.h from compose header files, in preparation for nsIModule landing
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@50172 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 23:55:42 +00:00
jefft%netscape.com
a2221d154c fixed bug 10801 -- [Featuure] Save Messages, bug 14794 - message sent from unsent folder display as raw message; we need to pay attention to where we want to save the message as template, if the message goes to the local mail folder we have to add the dummy envelope header plus the x mozilla status lines; when sending unsent messages we need to set from/sender information to pass the sanity check at the send time; reviewed by rhp
git-svn-id: svn://10.0.0.236/trunk@50102 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 14:27:11 +00:00
warren%netscape.com
30cf63de80 Added AsyncOpen to nsIChannel for URL dispatching. Added ContentLength to InputStreamChannel. (r=rpotts,valeski)
git-svn-id: svn://10.0.0.236/trunk@49968 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 08:26:01 +00:00
ducarroz%netscape.com
869cfacaf7 related to bug 14561, fix some other case where we didn't bring back errors while sending message. R=rhp
git-svn-id: svn://10.0.0.236/trunk@49893 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 23:48:40 +00:00
rhp%netscape.com
3924a3e115 Fix for my screw up...sorry about this.
git-svn-id: svn://10.0.0.236/trunk@49875 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 22:15:43 +00:00
rhp%netscape.com
9230e0bd2b Fix for #14120 - Reviewer - bienvenu
git-svn-id: svn://10.0.0.236/trunk@49866 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 21:17:17 +00:00
alecf%netscape.com
455a608f47 add new findServer() method and javadoc comments
r=sspitzer
#15140


git-svn-id: svn://10.0.0.236/trunk@49791 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 03:29:42 +00:00
alecf%netscape.com
0ce90ca711 Combined checkin:
- convert Compose enums to IDL #13261
- exorcise net.h from compose and mime
r=ducarroz and rhp on both


git-svn-id: svn://10.0.0.236/trunk@49751 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 23:50:56 +00:00
ducarroz%netscape.com
03b778a6f7 Fix for bug 14561, Already checked in the M10 BRANCH. Error must have negative value. A=choffman, R=mscott
git-svn-id: svn://10.0.0.236/trunk@49746 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 23:43:57 +00:00
mscott%netscape.com
b36e29928a Bug #000...trivial fix so no bug # filed. Fix a leak of nsIURI by using nsCOMPtr.
r=bienvenu.


git-svn-id: svn://10.0.0.236/trunk@49705 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 00:25:12 +00:00
jefft%netscape.com
e615b6b808 implemented forward messages as attachments & inline; a=mcafee
git-svn-id: svn://10.0.0.236/trunk@49357 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:43:50 +00:00
alecf%netscape.com
7eb184206f fix for #14639 r=sspitzer
git-svn-id: svn://10.0.0.236/trunk@48910 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 18:43:08 +00:00
mscott%netscape.com
152c964a75 Bug #14072 --> throw up a dialog if the user tries to send a message
without providing a host name (i.e. they haven't set up there prefs right)


git-svn-id: svn://10.0.0.236/trunk@48853 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 08:25:58 +00:00
mscott%netscape.com
ca1710628a If we make an error string have a negative ID then the high bit of the id is set. This allows us to pass in the
string ID around as an nsresult and it will properly be detected as an error code when we do NS_FAILED(rv)
tests on it..nifty huh...

In order to do this, we need to get rid of the enum for the string ids. This also makes things more robust
as we must now explicitly list the id for each string id instead of using the enum to do it for us. It was easy
to get out of step with the properties file when the enum was used.


git-svn-id: svn://10.0.0.236/trunk@48847 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 08:09:25 +00:00
ducarroz%netscape.com
91fcdb5415 need to support invalid URL as well URL without "http://", fix for bug 14376
git-svn-id: svn://10.0.0.236/trunk@48831 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 07:20:49 +00:00
alecf%netscape.com
250bb01f4e hook up drafts/templates/fcc to identities
git-svn-id: svn://10.0.0.236/trunk@48828 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 07:03:27 +00:00
ducarroz%netscape.com
6ae3f74877 need to suppot bad URL or url without "http://", fix for bug 14376
git-svn-id: svn://10.0.0.236/trunk@48827 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 06:45:09 +00:00
mscott%netscape.com
32c5c2f9b6 Add smtp status strings.
git-svn-id: svn://10.0.0.236/trunk@48744 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 02:29:41 +00:00
mscott%netscape.com
97c79762b3 Add some basic status messages for sending a message.
git-svn-id: svn://10.0.0.236/trunk@48742 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 02:28:36 +00:00
alecf%netscape.com
24acb2ec58 eliminate unnecessary cast
git-svn-id: svn://10.0.0.236/trunk@48735 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 02:01:03 +00:00
mscott%netscape.com
d12c5346fe Bug #14500 --> allow user to send a message if they don't have a user name and aren't using authenticated smtp.
add a ptr for command status


git-svn-id: svn://10.0.0.236/trunk@48689 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 00:42:34 +00:00
sspitzer%netscape.com
7cf6e0c036 fix for #9508. now you can send email and post at the same time.
both sending and posting require their own listener, or when you do
email and post at the same time, all hell breaks loose.


git-svn-id: svn://10.0.0.236/trunk@48663 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 22:45:17 +00:00
mscott%netscape.com
df8e67d473 re-write so we actually use the string bundle instead of the hard coded
strings that used to be in this class. This meant changing the api to return
a unichar * instead of a char *!!!


git-svn-id: svn://10.0.0.236/trunk@48528 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 06:30:51 +00:00
mscott%netscape.com
24fb340c0c optimize use of PRunichars for string bundle. we were doing lots of
needless conversions between PRunichar * to char * and back again!
replace some hard coded strings with strings created by the string bundle


git-svn-id: svn://10.0.0.236/trunk@48527 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 06:30:11 +00:00
alecf%netscape.com
b59592644c add support for identity-specific HTML compose and signatures
git-svn-id: svn://10.0.0.236/trunk@48515 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 05:37:23 +00:00
tao%netscape.com
ac92447f0c 14391: [L12y] PLS remove locale name (en) from "*_en.properties".
git-svn-id: svn://10.0.0.236/trunk@48473 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 01:32:06 +00:00
mscott%netscape.com
6a45cd7a74 initialize the ref count on this class.
git-svn-id: svn://10.0.0.236/trunk@48430 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:07:34 +00:00
sspitzer%netscape.com
6f648e84bd fix bug #10235
implement "pre-select the right identity when composing based on folder pane selection" feature.


git-svn-id: svn://10.0.0.236/trunk@48342 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 08:13:27 +00:00
alecf%netscape.com
8b3c470d22 be smarter about building up list of SMTP servers, don't keep appending onto the pref
git-svn-id: svn://10.0.0.236/trunk@48329 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 06:49:33 +00:00
sspitzer%netscape.com
bf84e03cf4 check in work around for #10235
check in start of work for #14312
fix a couple warnings
comment out some dump() calls


git-svn-id: svn://10.0.0.236/trunk@48303 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 02:12:28 +00:00
alecf%netscape.com
aa904faf14 rename default server attribute, and change default smtp prefix to "smtp" instead of "server"
git-svn-id: svn://10.0.0.236/trunk@48287 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 23:58:57 +00:00
alecf%netscape.com
9f6334720f fix problem where we forgot to append "." to the server key
git-svn-id: svn://10.0.0.236/trunk@48286 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 23:57:53 +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
alecf%netscape.com
f378b687fe allow char properties to return null instead of throwing an exception
git-svn-id: svn://10.0.0.236/trunk@48282 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 23:35:53 +00:00
alecf%netscape.com
b15247416d be a little smarter about SMTP servers - create the default one on demand
git-svn-id: svn://10.0.0.236/trunk@48281 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 23:33:49 +00:00
jefft%netscape.com
790de605ed moved CreateStartupUrl() to nsMsgUtils
git-svn-id: svn://10.0.0.236/trunk@48061 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:17:53 +00:00
ducarroz%netscape.com
1c5f0ee7a0 NS_INIT_REFCNT must be called before any return else we crash. Fix for bug 14163
git-svn-id: svn://10.0.0.236/trunk@48024 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:47:26 +00:00
ducarroz%netscape.com
d9918e436a Remove unused function LoadFields
git-svn-id: svn://10.0.0.236/trunk@47873 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 23:55:06 +00:00
warren%netscape.com
4fc387a445 Changed signature of NewInputStreamChannel to pass load group.
git-svn-id: svn://10.0.0.236/trunk@47769 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 09:39:29 +00:00
warren%netscape.com
556cf8505e Factored file transport service out of file: protocol.
git-svn-id: svn://10.0.0.236/trunk@47704 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 01:16:22 +00:00