谁能帮忙编个监测Foxmail脚本
发表于 : 2009-05-06 13:16
conky使用下面这个脚本可以监测Gmail新邮件
我现在用foxmail收取126和gmail了。
所以最好能够监测foxmail邮件。
哪位大侠研究一下,写个check_foxmail,造福于民。
谢谢了!!!
代码: 全选
#check_gmail.sh
#!/bin/bash
gmail_login="username"
gmail_password="password"
dane="$(wget --secure-protocol=TLSv1 --timeout=3 -t 1 -q -O - \
https:/{gmail_login}:${gmail_password}@mail.google.com/mail/feed/atom \
--no-check-certificate | grep 'fullcount' \
| sed -e 's/.*<fullcount>//;s/<\/fullcount>.*//' 2>/dev/null)"
if [ -z "$dane" ]; then
echo "?"
else
echo "$dane"
fi
所以最好能够监测foxmail邮件。
哪位大侠研究一下,写个check_foxmail,造福于民。
谢谢了!!!