Update of /cvsroot/csmail/csmail/src/CSMail
In directory usw-pr-cvs1:/tmp/cvs-serv4311/CSMail
Modified Files:
ChangeLog Session.cs
Added Files:
ProviderList.cs
Removed Files:
ProviderCollection.cs
Log Message:
2002-08-29
* CSMail/ProviderCollection.cs : Renamed to ProviderList
* CSMail/ProviderList.cs : Renamed version of ProviderCollection
* CSMail/Session.cs : Stubbed LoadProviders, LoadAddressMap
* CSMail.Utils/Properties.cs : Indexer - Implemented
: LoadFrom(string) - Implemented
: LoadFrom(TextReader) - Implemented
--- NEW FILE ---
/**
* Namespace: CSMail
* Class: ProviderList
*
* Author: Gaurav Vaish
* Maintainer: mastergaurav AT users DOT sf DOT net
*
* (C) Gaurav Vaish (2002)
*/
using System.Collections;
namespace CSMail
{
public class ProviderList : IEnumerable
{
private ArrayList providers = new ArrayList();
public ProviderCollection()
{
}
public IEnumerator GetEnumerator()
{
return providers.GetEnumerator();
}
}
}
Index: ChangeLog
===================================================================
RCS file: /cvsroot/csmail/csmail/src/CSMail/ChangeLog,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- ChangeLog 29 Aug 2002 04:10:11 -0000 1.10
+++ ChangeLog 29 Aug 2002 07:03:03 -0000 1.11
@@ -1,6 +1,12 @@
2002-08-29 Gaurav Vaish <mastergaurav AT users DOT sf DOT net>
+ * ProviderCollection.cs : Renamed to ProviderList
+ * ProviderList.cs : Renamed version of ProviderCollection
+ * Session.cs : Stubbed LoadProviders, LoadAddressMap
+
+2002-08-29 Gaurav Vaish <mastergaurav AT users DOT sf DOT net>
+
* ProviderCollection.cs : Added class.
* Session.cs : Added property Debug
Index: Session.cs
===================================================================
RCS file: /cvsroot/csmail/csmail/src/CSMail/Session.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- Session.cs 29 Aug 2002 04:10:11 -0000 1.5
+++ Session.cs 29 Aug 2002 07:03:04 -0000 1.6
@@ -46,6 +46,9 @@
addrMap = new Properties();
debug = bool.Parse(this.properties["CSMail.debug"]);
+
+ this.LoadProviders();
+ this.LoadAddressMap();
}
public bool Debug
@@ -87,6 +90,36 @@
public static Session GetDefaultInstance(Properties properties)
{
return GetDefaultInstance(properties, null);
+ }
+
+ /// <summary>
+ /// Loads from the following files:
+ /// 1. $CSMAIL_HOME/config/CSMail.properties
+ /// 2. each { $CSMAIL_PATH }/config/CSMail.properties
+ /// 3. $PWD/config/CSMail.properties
+ /// 4. $PWD/config/CSMail.properties.default
+ /// 5. Load default providers*
+ ///
+ /// * To be provided later by CSMail itself.
+ /// </summary>
+ private void LoadProviders()
+ {
+ // Load from the file.
+ }
+
+ /// <summary>
+ /// Loads from the following files:
+ /// 1. $CSMAIL_HOME/config/CSMail.adress.map
+ /// 2. each { $CSMAIL_PATH }/config/CSMail.adress.map
+ /// 3. $PWD/config/CSMail.adress.map
+ /// 4. $PWD/config/CSMail.adress.map.default
+ /// 5. Load default map*
+ ///
+ /// * To be provided later by CSMail itself.
+ /// </summary>
+ private void LoadAddressMap()
+ {
+ // Load from the file.
}
}
}
--- ProviderCollection.cs DELETED ---
|