|
From: <di...@us...> - 2007-03-06 21:07:26
|
Revision: 432
http://safekeep.svn.sourceforge.net/safekeep/?rev=432&view=rev
Author: dimi
Date: 2007-03-06 13:07:23 -0800 (Tue, 06 Mar 2007)
Log Message:
-----------
Read the email properties from the global config file
Modified Paths:
--------------
safekeep/trunk/safekeep
Modified: safekeep/trunk/safekeep
===================================================================
--- safekeep/trunk/safekeep 2007-03-06 04:52:16 UTC (rev 431)
+++ safekeep/trunk/safekeep 2007-03-06 21:07:23 UTC (rev 432)
@@ -798,7 +798,7 @@
mode = None
email = []
- smtp = ''
+ smtp = None
cfgfile = None
cfglocs = []
verbosity = 0
@@ -859,7 +859,11 @@
if mode is not 'client':
if cfgfile is None:
cfgfile = os.path.join(config_dir, 'safekeep.conf')
- # FIXME: parse config file
+ props = parse_prop_file(cfgfile)
+ if 'email.smtp.server' in props:
+ smtp = props['email.smtp.server']
+ if 'email.to' in props:
+ email = props['email.to'].split(',')
if len(cfglocs) == 0:
locs = os.path.join(config_dir, 'clients.d')
cfglocs.append(locs)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|