====[python]====
import urllib,base64
cfg = open('config.cfg').read().splitlines()
NODECODE=cfg[0]
def get_echoarea(name):
    try: return open('echo/%s' % name).read().splitlines()
    except: return  []
def raw_msg(h):
    try: return open('msg/%s' % h).read()
    except: return ''
def mk_jt(mh,mb):
    return mh + ':' + base64.b64encode(mb)
def getl(l):
    print 'fetch %s' % l
    return urllib.urlopen(cfg[1][:-2] + l).read()
def postf(s,e):
    data = urllib.urlencode({'upush': s,'nauth': NODECODE, 'echoarea': e })
    u = urllib.urlopen(cfg[1] + 'push', data)
    return u.read()
for ea in cfg[2:]:
    oecho = set(getl('e/%s' % ea).splitlines())
    pushlist = [x for x in myecho if x not in oecho]
    sendlist = [mk_jt(x,raw_msg(x)) for x in pushlist]
    if sendlist:
        postf('\n'.join(sendlist),ea)
но, в любом случае, если такой идентификатор уже есть (В ЭТОЙ ЭХЕ) - его принимать нельзя, ни записывать в базу эхи, ни создавать файл.