#!/bin/sh
TODAY=`date +"%Y%m%d"`
ROOTPATH=/config
RECIPEPATH=$ROOTPATH/recipe
MOBIPATH=$RECIPEPATH/dl
OPTIONS="--output-profile kindle_pw"
echo $RECIPEPATH
#
# download oriental daily
#
ebook-convert "$RECIPEPATH/oriental_daily_pure.recipe" $MOBIPATH/$TODAY-orient.mobi $OPTIONS
calibre-smtp  --attachment $MOBIPATH/$TODAY-orient.mobi --relay smtp.gmail.com --port 587 --username cigarbar@gmail.com --password "on2next1" --encryption-method TLS cigarbar@gmail.com larry1chan@kindle.cn ""

