owner_total_conflicts = {}
owner_total_missing = {}
for user in self.data:
- statsfile.write("total1 \t\t total2 \t mailbox \n")
+ statsfile.write("user: %s\n" % user)
owner_total_conflicts[user] = 0
owner_total_missing[user] = 0
for box_key in self.data[user]:
owner_total_conflicts[user] += self.data[user][box_key].date_conflicts
owner_total_missing[user] += self.data[user][box_key].no_received_field
- statsfile.write("{0} \t\t {1} \t\t {2}\n"\
- .format(self.data[user][box_key].date_conflicts,
+ statsfile.write("date conflicts: %-15.15s missing header: %-15.15s mailbox: %s\n"\
+ % (self.data[user][box_key].date_conflicts,
self.data[user][box_key].no_received_field,
self.data[user][box_key].name))
- statsfile.write("\n{0} \t\t {1} \t\t {2}\n\n"\
- .format(owner_total_conflicts[user], owner_total_missing[user], user))
+ statsfile.write("date conflicts: %-15.15s missing header: %-15.15s TOTAL \n\n"\
+ % (owner_total_conflicts[user], owner_total_missing[user]))
return