[#] набросал простенький чекер
51t(mira, 2) — All
2014-05-27 19:07:33


import os

msgs = os.listdir('msg')
passed = set()

echoes = os.listdir('echo')

for ea in echoes:
    for h in open('echo/%s' % ea).read().splitlines():
        if h in msgs:
            msgs.remove(h)
            passed.add(h)
        else:
            if h in passed:
                print 'double in %s: %s' % (ea, h)
            else:
                print 'bad record in %s: "%s"' % (ea, h)

for h in msgs:
    print 'no owner for %s' % h