分页: 1 / 1

谁能帮忙编个监测Foxmail脚本

发表于 : 2009-05-06 13:16
tony3322
conky使用下面这个脚本可以监测Gmail新邮件

代码: 全选

#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收取126和gmail了。
所以最好能够监测foxmail邮件。

哪位大侠研究一下,写个check_foxmail,造福于民。
谢谢了!!!

Re: 谁能帮忙编个监测Foxmail脚本

发表于 : 2009-05-06 13:19
hubert_star
不知道foxmail支持不支持url登录和rss,如果支持的话直接替换掉地址就可以了

Re: 谁能帮忙编个监测Foxmail脚本

发表于 : 2009-05-06 13:28
tony3322

忘了说了
我把foxmail迁移到qqmail了。就是两个邮箱合并起来了。
看了一下,现在实际上就是使用qqmail的pop和smtp了。其他估计也都和qqmail一样。

Re: 谁能帮忙编个监测Foxmail脚本

发表于 : 2009-05-06 13:33
hubert_star
http://bhaviksblog.com/03/have-conky-check-your-email/

需要你打开imap选项,qq邮箱应该有的吧?

Re: 谁能帮忙编个监测Foxmail脚本

发表于 : 2009-05-06 13:58
tony3322
hubert_star 写了:http://bhaviksblog.com/03/have-conky-check-your-email/

需要你打开imap选项,qq邮箱应该有的吧?
可以用。

只是监测的是收件箱中的邮件数,而不是未读邮件数。(不知道是不是我在脚本里,填写有误)

而且qq邮箱中收取其他邮箱的邮件,不是在收件箱的,估计监测不到。

现在我有事要出去了。明天再来探讨。

谢谢!!!

Re: 谁能帮忙编个监测Foxmail脚本

发表于 : 2009-05-07 17:39
limutian

代码: 全选

#check_gmail.sh
#!/bin/bash
gmail_login="test"
gmail_password="test"

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