Jamin W. Collins wrote: > I think I've found the culprit. In housekeeping.py: (snip) > with this change, my spool files were taken from the root of the spool > directory into their respective sub folders on startup. > > I'm attaching the diff file for the change.
Please disregard the previous patch. It did indeed result in the spool migration, but it would attempt the migration every single time the transport started. Digging further I found that if the "notes_to_myself" file did not exist the NotesToMyself constructor was populating the self.notes variable with the stock contents. This resulted in the check routine always finding an entry and thus never migrating the spool directory or doing any of the other checks. Removing this results in the checks running only when the "notes_to_myself" file does not exist. I've attached the corrected patch. Sorry for the repeated postings. -- Jamin W. Collins
diff -Naur pymsnt-0.11.2/src/housekeep.py pymsnt-0.11.2.mod/src/housekeep.py --- pymsnt-0.11.2/src/housekeep.py 2006-10-18 00:40:55.000000000 -0400 +++ pymsnt-0.11.2.mod/src/housekeep.py 2007-11-01 09:59:03.000000000 -0400 @@ -45,7 +45,7 @@ if not os.path.exists(pre): os.makedirs(pre) global noteList - self.notes = noteList + #self.notes = noteList def check(self, note): return self.notes.count(note) == 0
_______________________________________________ py-transports mailing list py-transports@blathersource.org http://lists.modevia.com/cgi-bin/mailman/listinfo/py-transports