我是靠谱客的博主 诚心手链,这篇文章主要介绍linux下通过命令行获取gmail的新邮件,现在分享给大家,希望可以做个参考。

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下通过命令行获取gmail的新邮件的全部内容,更多相关linux下通过命令行获取gmail内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(170)

评论列表共有 0 条评论

立即
投稿
返回
顶部