+
+d="`date +%d`"
+if [ "$d" = 1 -o "$d" = 8 -o "$d" = 15 -o "$d" = 23 -o "$1" = "-m" ]; then
+ mimencode $ARCHIVE | mail -s "Backup for `date +%Y-%m-%d`" $EMAIL \
+ -a "Content-Type: application/octet-stream; name=$ARCHIVE" \
+ -a "Content-Disposition: attachment; filename=$ARCHIVE" \
+ -a "Content-Transfer-Encoding: base64" \
+ -a "From: SexyGeek Backup <backu"p@sexyg'eek.org'
+fi
+