protocols page (to see when references to newly published RFCs have been updated) and parsing IANA review emails to be included as comments - Legacy-Id: 4850
28 lines
711 B
Python
Executable file
28 lines
711 B
Python
Executable file
#!/usr/bin/env python
|
|
|
|
import os, sys, re, json, datetime, optparse
|
|
import syslog
|
|
|
|
# boilerplate
|
|
basedir = os.path.abspath(os.path.join(os.path.dirname(__file__), "../.."))
|
|
sys.path = [ basedir ] + sys.path
|
|
|
|
from ietf import settings
|
|
from django.core import management
|
|
management.setup_environ(settings)
|
|
|
|
|
|
syslog.openlog(os.path.basename(__file__), syslog.LOG_PID, syslog.LOG_LOCAL0)
|
|
|
|
from ietf.sync.iana import *
|
|
|
|
msg = sys.stdin.read()
|
|
|
|
syslog.syslog("Reading IANA review email")
|
|
|
|
doc_name, review_time, by, comment = parse_review_email(msg)
|
|
add_review_comment(doc_name, review_time, by, comment)
|
|
|
|
if by.name == "(System)":
|
|
syslog.syslog("WARNING: person responsible for email does not have a IANA role")
|