Commit Graph

686 Commits

Author SHA1 Message Date
jefft%netscape.com
33672e6f76 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 1999-10-07 14:27:11 +00:00
mscott%netscape.com
d50b1fcc45 Bug #14739 --> fix use of unitiailized variable.
r=sspitzer
1999-10-05 20:48:37 +00:00
sspitzer%netscape.com
e3cdd7da27 a bunch of changes, all reviewed by mscott.
fix some bugs with next, back, and cancel in the profile manager.
(#15223, #15271)
re-write all callers of nsProfile::GetCurrentProfileDir() to use the file locator.
(#15063)
more profile code clean up. (#15042)
rename the old 4.x history.dat file.  it's called history.dat in 5.0, but the file
formats are different.  (binary in 4.x, vs mork in 5.0)
1999-10-05 04:12:58 +00:00
beard%netscape.com
9eae33066d changed from directly using "MSL DropInRuntime.Lib" to using "NSComponentStartup.o" to enable GC leak detector. r=smfr 1999-10-03 20:46:23 +00:00
hyatt%netscape.com
0c1aef9920 Splitting xul.css into two files and making them load automatically at startup. R=danm@netscape.com 1999-10-01 20:49:07 +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
sspitzer%netscape.com
d9bde9f94b fix for #14268. change all PR_ASSERT() to NS_ASSERTION(). PR_ASSERT() calls abort and that ain't cool. 1999-09-19 22:19:27 +00:00
sspitzer%netscape.com
b51994cbe8 fix a couple of my warnings. 1999-09-19 19:43:25 +00:00
alecf%netscape.com
05e5230991 implement mapping from server.type to IID 1999-09-17 23:59:51 +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
bienvenu%netscape.com
ec7fff420e fix news to use folder cache 1999-09-17 20:13:22 +00:00
sspitzer%netscape.com
ce93235c0f more changes for simple subscribe. now, it writes out the new newsgroup to the newsrc file, so it will be there when you quit and come back. 1999-09-17 11:43:24 +00:00
sspitzer%netscape.com
9b4362409f don't create the empty file. (cut and paste error.) pass PR_TRUE to Open() so it creates the summary file. all that's left is writing out <newsgroupname>: to the newsrc file, and simple subscribe is done! 1999-09-17 10:59:54 +00:00
sspitzer%netscape.com
e63507631f don't make it unique.
later, we may need to has the newsgroup name so that it's safe for
the native file system.
1999-09-17 10:35:26 +00:00
sspitzer%netscape.com
d9ec0050b2 remove unused / dead code that I copied and pasted a while ago.
start the work to make "New Folder" behave like simple subscribe for news.
1999-09-17 10:17:26 +00:00
sspitzer%netscape.com
455d3c18b6 fix for #14125
when creating a new news server with the account wizard, the newsrc file that it creates
should be a file, and not a directory.
1999-09-17 06:38:51 +00:00
putterman%netscape.com
afbff3d0db Don't call GetNewMessages in GetMessages. 1999-09-16 21:10:07 +00:00
mscott%netscape.com
b019973e07 set rv to the result of RunNewsUrl. This fixes the reply bug where the subject wasn't showing up for news. 1999-09-16 20:39:02 +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
f4fbf93b0c clean up my code. 1999-09-16 11:03:56 +00:00
sspitzer%netscape.com
8baa5349c4 add support for the the markOldRead, notifySize, notifyOn attributes of nsINntpIncomingServer. make sure we migrate these prefs, too. 1999-09-16 07:01:17 +00:00
sspitzer%netscape.com
8ee260f294 make the postMessageFile in the nsINNTPNewsgroupPost be a nsIFileSpec, instead
of a nsFilePath.  this means nsINNTPNewsgroupPost is fully scriptable.
it also allowed me to clean up a lot of code.
most of these changes are results of this change.

add notifyOn, maxArticles, and markOldRead attributes to nsINntpIncomingServer
these correspond to "news.max_articles","news.mark_old_read", and "news.notify.o
n" prefs in 4.x.  (in 5.0, they are on a per server basis now.)
rewrite nsNNTPProtocol.cpp to use these attributes, instead of the old 4.x globa
l prefs.

fix warnings.
1999-09-15 21:29:30 +00:00
bienvenu%netscape.com
cbb6e71f55 pass folder in as listener to getnewnews 1999-09-15 05:40:39 +00:00
bienvenu%netscape.com
6ed63b2dd7 do folder loaded notification for news 1999-09-15 04:04:44 +00:00
ramiro%netscape.com
e8ba593918 Cleanup the neckutil linking thing. 1999-09-15 02:15:11 +00:00
jefft%netscape.com
a46c88cc36 fixed bug 13574 -- use stream converter instead of temp file for reply quoting 1999-09-15 02:13:04 +00:00
briano%netscape.com
b849f37e00 General cleanup. 1999-09-15 00:10:25 +00:00
sspitzer%netscape.com
829bf9dd2f adding a string to match the addition state. we need this, or we crash when DEBUG_NEWS is set. 1999-09-14 21:24:44 +00:00
sspitzer%netscape.com
6e6ad7cc7c mail.root.nntp wasn't getting set when I called SetDefaultLocalPath() on a nntp incoming server because QueryInterface for nsNttpService was not fixed to support nsIMsgProtocolInfo. use the cool macro and the problem goes away. woo-hoo! 1999-09-14 09:34:23 +00:00
sspitzer%netscape.com
5ed079462d my mistake, news is correct in this case. this case. 1999-09-14 09:14:22 +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
sspitzer%netscape.com
f7e2446777 the type is nntp, not news. this was preventing me from setting mail.root.nntp 1999-09-14 08:57:34 +00:00
sspitzer%netscape.com
532077a63a when you get the default local path, and it wasn't set, and you make one up, you need to set it so the pref will get set. 1999-09-14 08:32:58 +00:00
bienvenu%netscape.com
3456144dd5 break out UpdateFolder method from GetMessages 1999-09-14 04:02:34 +00:00
sspitzer%netscape.com
b6a9d0a97f make the defaultLocalPath attribute of the nsIMsgProtocolInfo interface NOT read only. when we do pref migration, I have to call the setter (which will set the pref for me) 1999-09-14 03:16:02 +00:00
alecf%netscape.com
6932d80141 register news protocol info 1999-09-14 00:34:02 +00:00
alecf%netscape.com
f9e4ffdaf0 implement nsIMsgProtocolInfo in news 1999-09-13 23:53:33 +00:00
cls%seawood.org
a87b20551f Fix my bustage using -D_BSD_SOURCE 1999-09-12 17:15:57 +00:00
bruce%cybersight.com
3d6a5579ca Add newline to end of file to fix HPUX bustage. 1999-09-12 16:34:14 +00:00
mscott%netscape.com
50e5ac4e1b Bug #10933 displaying a message no longer involves spooling to a temp file! *yeah*
unfify copy and display code.
add save mesage to disk support.
1999-09-12 05:12:30 +00:00
mscott%netscape.com
d49399016b displaying a message no longer involves spooling to a temp file! *yeah*
Run display article urls through the webshell.
unify copy and display article code.
1999-09-12 05:11:45 +00:00
mscott%netscape.com
3a0b703487 news url action work. Also added save message to disk implementation. 1999-09-12 05:11:16 +00:00
mscott%netscape.com
ed77e4f208 Remove run news url method which shouldn't be exposed in the service. 1999-09-12 05:10:49 +00:00
mscott%netscape.com
0596f3245a Add notion of news actions to the url. 1999-09-12 05:10:08 +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
061c211972 spamming mailnews/news with NS_DECL_NSIFOO's, voucher mccabe 1999-09-09 07:44:24 +00:00
sspitzer%netscape.com
e249df99ca bulletproofing fixes for #12712, crash when your directory pref for a news server points a non-existant directory. the second half of this fix is to make sure it always exists. that fix is coming soon. 1999-09-09 04:37:11 +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
colin%theblakes.com
956aa62e1d Add -lrdfutil_s to EXTRA_DSO_LDOPTS 1999-09-08 18:57:45 +00:00