Created
April 20, 2018 21:02
-
-
Save mikerr/086feee87b04ba37c5a471a7c0313c3d to your computer and use it in GitHub Desktop.
Revisions
-
mikerr created this gist
Apr 20, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ #!/bin/bash username="USERNAME" password="PASSWORD" echo curl -u $username:$password --silent "https://mail.google.com/mail/feed/atom" | grep -oPm1 "(?<=<summary>)[^<]+" # title = email subject # summary = body of message # name = sender name # email = sender email # issued = date sent