您好,欢迎来到外链网!
当前位置:外链网 » 站长资讯 » 专业问答 » 文章详细 订阅RssFeed

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

来源:互联网 浏览:38次 时间:2023-04-08

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.'
ubuntu 图形界面开发 吃掉Linux开发者,WSL支持GUI应用

mg class="aligncenter" referrerPolicy="no-referrer" src="https://i01piccdn.sogoucdn.com/a5cee2ac6f96a8bf" alt="如何在windows下通过命令行发送邮件 ">
>以上所述就是本文的全部内容了,希望大家能够喜欢。

本文从互联网转载,来源地址:www.downzz.com/linux-shell/171112.html,原作者保留一切权利,若侵权或引用不当,请联系茶猫云(cmy.cn)删除。【茶猫云,优质云服务器提供商】