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

2 years ago
"""
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()
2 years ago
# 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')
2 years ago
# 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")
2 years ago
# Setup Search parameter
searchUnawnsered = "UNANSWERED SENTSINCE "
searchAll = 'ALL'
2 years ago
searchSentsince = 'SENTSINCE '
searchToday = 'SENTON ' + dateStringToday
searchYesterday = 'SENTON ' + dateStringYesterday