您的位置:首页 > 运维架构 > Linux

linux下通过命令行获取gmail的新邮件

2015-05-22 12:01 1246 查看

linux下通过命令行获取gmail的新邮件,不需输入@gmail.com部分

#!/bin/bash
num="\033[1;36m"
end="\033[0m"
read -p "Enter your mail: " name
read -p "Enter pass of mail: " pass
atom=`wget -qO - https://$name:$pass@mail.google.com/mail/feed/atom \
--secure-protocol=TLSv1 -T 3 -t 1 --no-check-certificate | grep \
fullcount | sed -e 's/<fullcount>\(.*\)<\/fullcount>/\1/'`
echo -e 'You have '$num$atom$end' new letters.'

以上所述就是本文的全部内容了,希望大家能够喜欢。

您可能感兴趣的文章:

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  linux 命令行 邮件