[PowerShell] linux下通过命令行获取gmail的新邮件 →→→→→进入此内容的聊天室

来自 , 2020-12-02, 写在 PowerShell, 查看 104 次.
URL http://www.code666.cn/view/1109f873
  1. #!/bin/bash
  2.  
  3. num="\033[1;36m"
  4. end="\033[0m"
  5.  
  6. read -p "Enter your mail: " name
  7. read -p "Enter pass of mail: " pass
  8.  
  9. atom=`wget -qO - https://$name:$pass@mail.google.com/mail/feed/atom \
  10.   --secure-protocol=TLSv1 -T 3 -t 1 --no-check-certificate | grep \
  11.   fullcount | sed -e 's/<fullcount>\(.*\)<\/fullcount>/\1/'`
  12.  
  13. echo -e 'You have '$num$atom$end' new letters.'
  14.  
  15. //shell/8912

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

这儿你可以回复上面这条便签

captcha