Commit Graph

84 Commits

Author SHA1 Message Date
jefft%netscape.com
bd7f40d706 fixed bug 27759 -- Empty Trash breaks trash folder display; r=bienvenu,a=phil,chofmann
git-svn-id: svn://10.0.0.236/trunk@61185 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-17 06:03:55 +00:00
putterman%netscape.com
5370786bac Fix for 21469. r=jefft. Deleting a message in a thread now goes to the next message and scrolls
to it so that you don't lose your place in the thread pane.  More work on 26456.  r=alecf.
Some performance improvements for loading folders by speeding up building up a uri.


git-svn-id: svn://10.0.0.236/trunk@60978 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-16 00:39:23 +00:00
bienvenu%netscape.com
ba4ec60225 more fixes for double byte folder names, including create and rename, r=putterman,jefft
git-svn-id: svn://10.0.0.236/trunk@60020 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-08 01:20:00 +00:00
bienvenu%netscape.com
8603161356 allow creation of folders with double-byte characters r=putterman, 26745
git-svn-id: svn://10.0.0.236/trunk@59965 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-07 00:20:37 +00:00
jefft%netscape.com
4f48ea3b19 fixed bug 26169 -- Sending message appears to fail if the Sent folder not yet parsed; r=scottip
git-svn-id: svn://10.0.0.236/trunk@59680 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-03 23:40:09 +00:00
putterman%netscape.com
48473eb78d Fix for 24768. r=alecf. Move view navigation code to C++ to speed up.
git-svn-id: svn://10.0.0.236/trunk@59104 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-28 23:25:17 +00:00
jefft%netscape.com
5feb9632db partial fix for bug 20366 - imap folder rename problem; rename OnCloseFolder to ForceDBClose; r=bienvenu
git-svn-id: svn://10.0.0.236/trunk@59074 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-28 15:34:13 +00:00
bienvenu%netscape.com
8cd65220ed add nsIMsgWindow to a bunch of apis so we can stop urls, r=putterman
git-svn-id: svn://10.0.0.236/trunk@58988 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-28 01:22:33 +00:00
alecf%netscape.com
f5ead0f4c3 start using weak references for the parent folder and the parent server
r=scottip


git-svn-id: svn://10.0.0.236/trunk@58833 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 22:53:55 +00:00
alecf%netscape.com
86216a4525 update the whole Set/Get[Pretty]Name functions to go through the same codepath, and send notifications as necessary
git-svn-id: svn://10.0.0.236/trunk@58684 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 01:21:24 +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
e5c7ee1fbf fix for bug #23457. when we create a new account, set the copies and folders prefs for the associated identity to the right defaults.
added to the nsIMsgProtocolInfo interface defaultCopiesAndFoldersPrefsToServer,
which we use to see for a given server type, do the defaults live on the server
or not (where not would mean "Local Folders").

fix the getFoldersWithFlag method in the nsIMsgFolder interface so it
would be easier to use in JS.

r=alecf


git-svn-id: svn://10.0.0.236/trunk@57378 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-11 08:01:37 +00:00
alecf%netscape.com
d550c3c408 first pass at fix for #7808, XPIDLizing nsIMsgHdr - for now just make an exact duplicate of the C++ interface, except in XPIDL
r=putterman


git-svn-id: svn://10.0.0.236/trunk@56764 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-04 22:41:21 +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
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
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
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
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
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
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
beard%netscape.com
5958f31830 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.
git-svn-id: svn://10.0.0.236/trunk@47845 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 21:29:22 +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
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
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
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
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
bienvenu%netscape.com
7f7758fb30 add MatchName method
git-svn-id: svn://10.0.0.236/trunk@41248 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-27 05:15:44 +00:00
putterman%netscape.com
ba41c1fd02 Added MarkMessagesRead, MarkAllMessagesRead, GetChildWithURI
git-svn-id: svn://10.0.0.236/trunk@40805 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-23 04:33:20 +00:00
sspitzer%netscape.com
b5f6e6f4ee fix the leak of nsMsgFolder. the ownership model is server owns the folder. we had a cycle. thanks to putterman for finding the problem and implementing the fix.
git-svn-id: svn://10.0.0.236/trunk@40219 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-20 03:55:23 +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
jefft%netscape.com
d021d91637 more on copy service - add nsIMsgCopyServiceListener
git-svn-id: svn://10.0.0.236/trunk@39168 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-13 20:07:32 +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