Guest User

Untitled

a guest
Apr 23rd, 2020
231
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. username=""
  4. password=""
  5.  
  6. SHOW_COUNTS=5
  7.  
  8. echo
  9. curl -u $username:$password --silent \
  10. "https://mail.google.com/mail/u/0/#inbox" | \
  11. tr -d '\n' | sed 's:</entry>:\n:g' |\
  12. sed -n 's/.*<title>\(.*\)<\/title.*<author><name>\([^<]*\)<\/name><email>\([^<]*\).*/Author: \2 [\3] \nTemat: \1\n/' | \
  13. head -n $(($SHOW_COUNT * 3))
RAW Paste Data