Advertisement
metalx1000

Mutt link view for email mbox mailbox

Jan 10th, 2018
966
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.52 KB | None | 0 0
  1. #!/bin/bash
  2. #Author Kris Occhipinti https://filmsbykris.com
  3. #Copyright Jan 10th 2018
  4. #License GPLv3 https://www.gnu.org/licenses/gpl-3.0.txt
  5. #Description: to be used to view links in a mailbox/mbox file
  6. #created for use with Mutt
  7.  
  8. message=$(cat)
  9. #echo "$message"|sed 's/=$//g'|sed 's/=3D/=/g'|sed ':a;N;$!ba;s/\n//g'|sed 's/"/\n/g'|sed 's/http/\nhttp/g'|grep http|less
  10. echo "$message"|\
  11.   sed 's/=$//g'|\
  12.   sed 's/=3D/=/g'|\
  13.   sed ':a;N;$!ba;s/\n//g'|\
  14.   sed 's/"/\n/g'|\
  15.   sed 's/http/\nhttp/g'|\
  16.   grep http|\
  17.   less
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement