secs=$[ $opt_advance * 86400 ]
-c_date=`date -d now+${secs}seconds +%d.%m`
+c_date=`date -d now+${secs}seconds +%m%d`
s_date=`LANG=$opt_lang date -d now+${secs}seconds "+$opt_dateform"`
tmp=`tempfile`
trap 'rm -f $tmp' INT EXIT
-calendar -l 0 -w 0 -t $c_date > $tmp
+calendar -A 0 -t $c_date > $tmp
if [ -s $tmp ]
then
echo "Subject: $opt_subject $s_date"
echo "To: $opt_to"
echo
- calendar -l 0 -w 0 -t $c_date
+ cat $tmp
) | /usr/sbin/sendmail "$opt_to"
fi