fix: return receipts are now displayed correctly.

new: parameters module refactored. The API is more simple now, there is no need to provide a module name anymore, this last is automatically guessed. Also, a new 'label' field can be provide when declaring a new parameter. It will be used instead of the name.

new: email parsing refactored. My first attempt was really ugly. I did not really studied the various RFC describing how messages are formatted or what IMAP fetch queries can do. Now, I hope this new code will face better unknown types. At least, It will be simpler to update.
This commit is contained in:
tonio
2010-09-17 09:23:35 +02:00
parent 9b04aefbe0
commit c01d6de7d8
27 changed files with 398 additions and 257 deletions
+2 -2
View File
@@ -261,8 +261,8 @@ if __name__ == "__main__":
main.init()
log_file = parameters.get_admin("stats", "LOGFILE")
rrd_rootdir = parameters.get_admin("stats", "RRD_ROOTDIR")
log_file = parameters.get_admin("LOGFILE")
rrd_rootdir = parameters.get_admin("RRD_ROOTDIR")
parser = OptionParser()
parser.add_option("-l","--logfile", default=log_file,