122 Commits

Author SHA1 Message Date
sspitzer%netscape.com
28110d2fbc fix for #22109. r=putterman, a=sdagley
the problem was we were appending "/<newsgroup>" to the path to the server
by using AppendRelativeUnixPath.  this leaf us with <path>//<newsgroup
and not <path>/newsgroup.


git-svn-id: svn://10.0.0.236/trunk@56300 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-21 21:59:15 +00:00
sspitzer%netscape.com
f0c33d138d initialize some uninitialized variables
git-svn-id: svn://10.0.0.236/trunk@56262 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-21 01:18:47 +00:00
alecf%netscape.com
6c17e623e4 move GetPath/SetPath into a base class, combining all the .sbd directory creators. reduces calls to FindServer() by about 2 calls per folder
r=sspitzer
a=chofmann


git-svn-id: svn://10.0.0.236/trunk@56165 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-18 01:09:51 +00:00
bienvenu%netscape.com
6435fe240d changes for caching imap hierarchy separator, handling no inferiors flag r=jefft,a=chofmann
git-svn-id: svn://10.0.0.236/trunk@56130 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-17 03:05:04 +00:00
bienvenu%netscape.com
2589b7864d fix msf file names for imap folders with illegal characters, r=mscott 20324
git-svn-id: svn://10.0.0.236/trunk@55535 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-07 05:51:53 +00:00
sspitzer%netscape.com
14a73bf9f8 remove CanBeRenamed and CanCreateChildren. In most cases, these weren't
implemented or they were just stubs.  I added CanRename and CanCreateSubfolder
(which follow the naming convention, so we'll keep them) without knowing these were there.  I move over the additional logic for special folders (like INBOX, TRASH, etc) in CanBeRenamed to CanRename, and put the logic in one place, in nsMsgFolder::CanRename(), instead of in multiple places.  thanks to alecf for pointing out that CanBeRenamed and CanCreateChildren were already there.


git-svn-id: svn://10.0.0.236/trunk@55306 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-04 19:56:06 +00:00
alecf%netscape.com
c39011af4c lazily parse the URI so that we never loose the server information before the account manager can load the prefs.
helps to fix #20607 for bienvenu
r=sspitzer, design discussed w/sspitzer and putterman


git-svn-id: svn://10.0.0.236/trunk@55268 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-04 03:00:22 +00:00
sspitzer%netscape.com
20ef5057f7 fix for #17402, stationary -> stationery.
r=alecf

major fixes for the new folder / rename folder / subscribe dialogs.
we no longer use an html select for the folder picker.
now we use cascading menu popups, like the copy and move menus.
this fixes a lot of bugs, and allows pre-flighting to finally work.

our folder data source has some new properies:
CanFileMessages, CanSubscribe, CanRename, and CanCreateSubfolders
we use these to determine what cascading menu to build, what to disable, etc.

also, nsMessenger::NewFolder() and nsMessenger::RenameFolder() were changes to
take a nsIRDFResource instead of a nsIDOMXULElement.  Before we were
passing through to the back end the selected xul element, now we pass
the resource in.

other cool side effects:
in the copy & move menus, you don't get the choice to file or copy to a server, on folders
in the rename dialog, you can't pick a server, on a folder
in the new folder dialog, you can't pick the imap inbox. (* more needs to be done here.)

bugs fixed: #14773, #14254, #20599, #20646
r=alecf

a couple bullet proofing fixes to prevent some crashes reported on fullcircle
r=bienvenu


git-svn-id: svn://10.0.0.236/trunk@55172 18797224-902f-48f8-a5cc-f745e15eee43
1999-12-03 08:10:09 +00:00
putterman%netscape.com
962c93df68 Work on making folder pane look like spec. Fixes 17841. Reviewed by alecf.
git-svn-id: svn://10.0.0.236/trunk@54179 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-22 22:08:23 +00:00
jefft%netscape.com
d54f209fd6 fixed bug 17765 - Rename not implemented for Pop3, bug 19097 -- copying messages cause corrupted messages if the message size is greater than 4 k; r=putterman; added new method AddSubfolder()
git-svn-id: svn://10.0.0.236/trunk@53992 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-19 14:35:31 +00:00
bienvenu%netscape.com
6f45f8a08a only send change notification for pending filtered messages if the count changed - performance tweak
git-svn-id: svn://10.0.0.236/trunk@53805 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-18 02:36:22 +00:00
putterman%netscape.com
3ce86bbc71 Fix for 17712. Reviewed by bienvenu and alecf. Mailnews shuts down accounts, biff,
and folders properly as an xpcom shutdown observer.


git-svn-id: svn://10.0.0.236/trunk@53475 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-14 20:36:22 +00:00
putterman%netscape.com
3eee221ecf Work on 12846 for making message threads work. Reviewed by bienvenu.
git-svn-id: svn://10.0.0.236/trunk@53122 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-11 00:23:29 +00:00
sspitzer%netscape.com
a0d9a56a3c check in patch from cls@seawood.org
add comment.


git-svn-id: svn://10.0.0.236/trunk@53110 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-10 23:53:40 +00:00
bienvenu%netscape.com
fcfedf2d17 move folder cache to account mgr, per alecf, fix pending counts r=jefft
git-svn-id: svn://10.0.0.236/trunk@53051 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-10 00:41:52 +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
b5de07e079 fix for blocker #17882
a=leaf


git-svn-id: svn://10.0.0.236/trunk@52723 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-03 19:47:17 +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
5b5b7371ea fix build warnings, r=putterman, add cancel method to protocol r=mscott
git-svn-id: svn://10.0.0.236/trunk@52658 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-03 03:16:26 +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
putterman%netscape.com
9c5e4137a1 Fix for 17556. Reviewed by alecf. Newsgroups show abbreviated name in folder pane.
git-svn-id: svn://10.0.0.236/trunk@52249 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 20:46:15 +00:00
bienvenu%netscape.com
9187011a29 changes to use nsIMsgWindow r=putterman
git-svn-id: svn://10.0.0.236/trunk@52190 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 04:39:06 +00:00
alecf%netscape.com
2e274875d3 more cleanup work - now retrieve the server at URI creation time, so that GetServer() is really fast, and just forward calls to GetUsername and GetPassword() to the server. r=sspitzer
git-svn-id: svn://10.0.0.236/trunk@52097 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 20:19:57 +00:00
alecf%netscape.com
6b7dfaa5e0 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


git-svn-id: svn://10.0.0.236/trunk@51471 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 01:02:08 +00:00
alecf%netscape.com
8d5865d224 clean up nsIMsgFolder API in preparation for fixing a number of bugs, most importantly #14437
r=scottip


git-svn-id: svn://10.0.0.236/trunk@51302 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 21:58:21 +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
e3f84eb9e4 add more comments about what's left to do, and why this is a little scary.
git-svn-id: svn://10.0.0.236/trunk@50565 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 05:33:26 +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
d468916c06 Remove ctor/dtor counter macros I added before it was determined we shouldn't
use them for xpcom classes.


git-svn-id: svn://10.0.0.236/trunk@50331 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-10 22:52:49 +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
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
putterman%netscape.com
8f317b6531 more performance work for loading folders without .msf files or that have to have
headers downloaded.


git-svn-id: svn://10.0.0.236/trunk@48047 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:12:44 +00:00
putterman%netscape.com
8186e12634 Add NotifyFolderLoaded.
git-svn-id: svn://10.0.0.236/trunk@47833 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 21:07:56 +00:00
bienvenu%netscape.com
910b8a999f break out UpdateFolder method from GetMessages
git-svn-id: svn://10.0.0.236/trunk@47272 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-14 04:02:34 +00:00
bienvenu%netscape.com
f7ce4a362d add folder loaded notification and hack around dynamic folder loading slowness method
git-svn-id: svn://10.0.0.236/trunk@47173 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-13 21:36:02 +00:00
bienvenu%netscape.com
42dc83546b return error from writing out folder cache if any, add code to turn off rdf notifications
git-svn-id: svn://10.0.0.236/trunk@47076 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-12 21:36:51 +00:00
alecf%netscape.com
4aa767d9b0 switch to nsCRT routines and PR_TRUE/PR_FALSE to reduce include dependancy
git-svn-id: svn://10.0.0.236/trunk@46281 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-08 03:08:27 +00:00
tonyr%fbdesigns.com
013d0e1e29 Added NS_ADDREF to child returned from GetChildNamed
git-svn-id: svn://10.0.0.236/trunk@45733 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-02 21:23:26 +00:00
bienvenu%netscape.com
f3d8c61a0f replace nsIEnumerator with nsISimpleEnumerator
git-svn-id: svn://10.0.0.236/trunk@44641 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-26 04:41:07 +00:00
putterman%netscape.com
1a770d51fb work on MarkFlagged.
git-svn-id: svn://10.0.0.236/trunk@44351 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-24 21:47:22 +00:00
alecf%netscape.com
e44877c7c6 remove the "depth" attribute now that we have isServer
git-svn-id: svn://10.0.0.236/trunk@43933 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-21 01:03:00 +00:00
putterman%netscape.com
8dfbc8b006 Use nsISupports.
git-svn-id: svn://10.0.0.236/trunk@43873 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:47:55 +00:00
alecf%netscape.com
ebc9d39804 add new isServer attribute
git-svn-id: svn://10.0.0.236/trunk@43849 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-20 22:41:38 +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
alecf%netscape.com
64f96fb0e6 fix naming of folder by caching in mName
git-svn-id: svn://10.0.0.236/trunk@42860 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-10 00:03:46 +00:00
bienvenu%netscape.com
34728dd0c2 get rid of nsString2, more hooking up of status
git-svn-id: svn://10.0.0.236/trunk@42619 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-07 02:30:11 +00:00
jefft%netscape.com
4a3e4f7a52 added base folder EmptyTrash() method
git-svn-id: svn://10.0.0.236/trunk@42484 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 18:24:39 +00:00
jefft%netscape.com
b4517d227d implement message folder base Compact() method
git-svn-id: svn://10.0.0.236/trunk@42444 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-06 13:40:08 +00:00
mscott%netscape.com
5af5a87dcd Changes for:
nsString(eOneByte) --> nsCString
nsString(eTwoByte) nsString
nsString2 --> nsString


git-svn-id: svn://10.0.0.236/trunk@42263 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-05 04:28:28 +00:00
bienvenu%netscape.com
c17def88fd fix notification of filter folders
git-svn-id: svn://10.0.0.236/trunk@41845 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-02 21:33:00 +00:00