This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) 2021, Lawrence Livermore National Security, LLC | |
# | |
# Python3 script using GraphQL interface to GitHub discussions to read | |
# .txt file mbox files of VisIt User's email archive and import each | |
# email thread as a GitHub discussion. | |
# | |
# 1. Reads a directory of .txt files in mbox format for messages (readAllMboxFiles) | |
# 2. Removes duplicate messages (removeDateAndSubjectDups) which have | |
# identical dates and highly similar subjects. | |
# 3. Threads messages using filtered email subjects and date proximity |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) 2021, Lawrence Livermore National Security, LLC | |
# | |
# Python3 script using GraphQL interface to GitHub to transfer | |
# issues between GitHub repos. | |
# | |
# Programmer: Mark C. Miller, Tue Jul 20 10:21:40 PDT 2021 | |
# | |
import datetime, email.header, glob, mailbox, os, pytz | |
import re, requests, shutil, sys, textwrap, time | |
from difflib import SequenceMatcher |