diff --git a/old.py b/old.py
new file mode 100755
index 0000000..0b3a9e4
--- /dev/null
+++ b/old.py
@@ -0,0 +1,62 @@
+ #!/usr/bin/env python3
+
+ import csv
+ import datetime
+ import smtplib
+ from email.mime.text import MIMEText
+ from email.mime.multipart import MIMEMultipart
+ import email.utils
+ import calendar
+
+ def send_email(subject, body, to_email):
+ me = "from@example.com"
+ msg = MIMEMultipart('alternative')
+ msg['From'] = me
+ msg['To'] = to_email
+ msg['Subject'] = subject
+ msg['Date'] = email.utils.formatdate(localtime=True)
+ part1 = MIMEText(body, 'plain', 'utf-8')
+ msg.attach(part1)
+ s = smtplib.SMTP('localhost')
+ s.sendmail(me, to_email, msg.as_string())
+ s.quit()
+
+ file_path = '/full/path/to/list.csv'
+ current_day = datetime.datetime.now().day
+ current_month = datetime.datetime.now().month
+ current_date = datetime.datetime.now().strftime('%d %b')
+ current_weekday = datetime.datetime.now().strftime('%A')
+
+ to_email = 'to@example.com'
+
+ with open(file_path, 'r') as csvfile:
+ reader = csv.DictReader(csvfile, delimiter='\t')
+
+ for row in reader:
+ subject = row['Subject']
+ occurrence = row['Occurrence']
+
+ if 'Last day of every month' in occurrence:
+ last_day_of_month = calendar.monthrange(datetime.datetime.now().year, current_month)[1]
+ if current_day == last_day_of_month:
+ email_subject = subject
+ email_body = subject
+ send_email(email_subject, email_body, to_email)
+
+ elif 'of every month' in occurrence:
+ day_of_month = int(occurrence.split(' ')[0])
+ if current_day == day_of_month:
+ email_subject = subject
+ email_body = subject
+ send_email(email_subject, email_body, to_email)
+
+ elif current_date in occurrence:
+ email_subject = subject
+ email_body = subject
+ send_email(email_subject, email_body, to_email)
+
+ elif current_weekday.lower() in occurrence.lower():
+ email_subject = subject
+ email_body = subject
+ send_email(email_subject, email_body, to_email)
+