reboot after a year
This commit is contained in:
parent
202f72a228
commit
c6bbbb8454
@ -130,12 +130,12 @@ def emit_mail_xml(msg, li, thread_nbr, msg_nbr):
|
||||
|
||||
h = hash(msg) # patch
|
||||
if h in hashes:
|
||||
#logging.warning("Duplicate: " + msg['from'] + " - " + msg['subject'] + " - " + msg['date'] + ". Skipping...")
|
||||
logging.warning("Duplicate: " + msg['from'] + " - " + msg['subject'] + " - " + msg['date'] + ". Skipping...")
|
||||
return ''
|
||||
else:
|
||||
hashes.append(h)
|
||||
|
||||
print(msg['date'] + " - " + msg['subject'])
|
||||
# print(msg['date'] + " - " + msg['subject'])
|
||||
|
||||
nbr = make_xml_element("nbr", str(thread_nbr) + "." + str(msg_nbr)) + "\n"
|
||||
|
||||
@ -249,7 +249,10 @@ def export_single_tag(t, sel, fout):
|
||||
thread_nbr = 0
|
||||
|
||||
for m in ch['lists']:
|
||||
chapter_mails += emit_mail_xml(m, m['list'], thread_nbr, 0)
|
||||
mail = emit_mail_xml(m, m['list'], thread_nbr, 0)
|
||||
if mail == '':
|
||||
continue
|
||||
chapter_mails += mail
|
||||
thread_nbr += 1
|
||||
|
||||
|
||||
@ -266,9 +269,10 @@ def export_single_tag(t, sel, fout):
|
||||
print(str(len(all_follow)))
|
||||
all_follow = sorted(all_follow, key=lambda m: export.utils.parse_date_msg(m))
|
||||
for f in all_follow:
|
||||
chapter_mails += emit_mail_xml(f, m['list'], thread_nbr, msg_nbr)
|
||||
msg_nbr += 1
|
||||
|
||||
mail = emit_mail_xml(f, m['list'], thread_nbr, msg_nbr)
|
||||
if mail != '':
|
||||
chapter_mails += mail
|
||||
msg_nbr += 1
|
||||
|
||||
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user