This file contains 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
FROM ubuntu:18.04 | |
RUN apt-get update --fix-missing | |
RUN apt-get upgrade -y | |
RUN apt-get -y install locales | |
RUN locale-gen en_US.UTF-8 | |
ENV LC_CTYPE en_US.UTF-8 | |
ENV LANG en_US.UTF-8 | |
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8' |
This file contains 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
from imaplib import IMAP4_SSL | |
HOST = 'mail.XXXX.com' | |
USERNAME = 'XXXX' | |
PASSWORD = 'XXXX' | |
SUBJECT_CHECK = b'[repository/thing]' | |
with IMAP4_SSL(HOST) as m: | |
m.login(USERNAME, PASSWORD) | |
m.select('INBOX') |