#!/bin/sh
#
# Sending of Garfield strips per mail
#

year=`date +%Y`
month=`date +%m`
day=`date +%d`
file_name=$year-$month-$day.gif
folder=/home/martin/garfield/downloads/$year/$month
current_date=$day-$month-$year

if [ -e $folder/$file_name ] ; then
    echo "Garfield strip from $current_date" | mutt -a $folder/$file_name -s "Garfield $current_date" -- martin.kirner@gmx.at 2>&1
    echo "Garfield $current_date successfully sent..."
fi
