User Tools

Site Tools


curl:check_gmail

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
curl:check_gmail [2019/11/27 00:03] – removed petercurl:check_gmail [2020/09/25 12:56] (current) 192.168.1.1
Line 1: Line 1:
 +====== Curl - Check gmail ======
  
 +Check your gmail from Linux command line.
 +
 +Using curl, you are able to read each of your unread emails (subject and who it's from) in your command line.
 +
 +<WRAP info>
 +**NOTE**:  Change the username to your username, use your full email if you are a google apps user.
 +</WRAP>
 +
 +
 +
 +<code bash>
 +curl -u username --silent "https://mail.google.com/mail/feed/atom" | perl -ne 'print "\t" if /<name>/; print "$2\n" if /<(title|name)>(.*)<\/\1>/;'
 +</code>
curl/check_gmail.1574813032.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki