Permalink
Browse files

* mailinator.com: updated

  • Loading branch information...
l29ah committed Sep 13, 2014
1 parent 9b169b4 commit 62ffa0ab1e7720293c71a0cb2bd9dc658e59d328
Showing with 5 additions and 19 deletions.
  1. +0 −3 mailinator.com/mailiaddr
  2. +0 −2 mailinator.com/mailibox
  3. +5 −8 mailinator.com/mailinator
  4. +0 −6 mailinator.com/mailiread
View

This file was deleted.

Oops, something went wrong.
View

This file was deleted.

Oops, something went wrong.
View
@@ -1,8 +1,5 @@
#!/bin/bash
msgs="`mailibox ${1:?Usage: $0 <username>}`"
if [ -z "$msgs" ]; then
echo "No mail for $1." 1>&2
exit 1
else
echo "${msgs}" | xargs -n 1 mailiread $1
fi
#!/bin/sh
tok=202055f2976f4cbd936c2f13de990cc4
for i in `curl -s "https://api.mailinator.com/api/inbox?to=$1&token=$tok" | jq -r '.messages[].id'`; do
curl -s "https://api.mailinator.com/api/email?msgid=$i&token=$tok" | jq -r '"Subject: " + .data.subject, .data.parts[].body'
done
View

This file was deleted.

Oops, something went wrong.

0 comments on commit 62ffa0a

Please sign in to comment.