Kleies Utility programm für unsere Email verwaltung
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

34 lines
944 B

"""
This file holds all the important variables used accross this programm
"""
import os
from dotenv import load_dotenv
from datetime import date, timedelta
load_dotenv()
# Setup Email Credentials
server = os.getenv('EMAIL_SERVER')
address = os.getenv('EMAIL_ADDRESS')
username = os.getenv('EMAIL_USERNAME')
password = os.getenv('EMAIL_PASSWORD')
# Setup Chatbot Credentials
botAPI = os.getenv('BOT_API')
botUsername = os.getenv('BOT_USERNAME')
botPassword = os.getenv('BOT_PASSWORD')
botRoomToken = os.getenv('BOT_ROOMTOKEN')
# Setup important Times and Formatting them
today = date.today()
yesterday = today - timedelta(days=1)
dateStringToday = today.strftime("%d-%b-%Y")
dateStringYesterday = yesterday.strftime("%d-%b-%Y")
# Setup Search parameter
searchUnawnsered = "UNANSWERED SENTSINCE "
searchAll = 'ALL'
searchSentsince = 'SENTSINCE '
searchToday = 'SENTON ' + dateStringToday
searchYesterday = 'SENTON ' + dateStringYesterday