首页 > 系统 > Linux > 正文

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

2019-10-26 18:46:01
字体:
来源:转载
供稿:网友

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

#!/bin/bash num="/033[1;36m"end="/033[0m" read -p "Enter your mail: " nameread -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.'

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

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表