This repository has been archived by the owner on Feb 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Mailinator to support Private Domain (#13)
Support private domain and custom options
- Loading branch information
1 parent
9877be3
commit e661b4d
Showing
15 changed files
with
283 additions
and
69 deletions.
There are no files selected for viewing
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,42 @@ | ||
HTTP/1.1 200 OK | ||
Server: Apache-Coyote/1.1 | ||
Date: Sun, 28 Dec 2014 13:39:51 GMT | ||
Date: Mon, 14 May 2018 13:39:51 GMT | ||
|
||
{"apiInboxFetchesLeft":696,"apiEmailFetchesLeft":10,"data":{"headers":{"sender":"example@example.net","content-type":"multipart\/alternative;\r\n\tboundary=\"MIMEBoundaryec1dc8828d9bbedf095f9e9d2ebdbdeb\"","to":"recipient@mailinator.com","x-connecting-ip":"127.0.0.1","subject":"This is a subject","mime-version":"1.0","x-received-time":"1419696967076","reply-to":"example@example.net","received":"from 127-0-0-1.dynamic-ip.example.net ()\r\n by mail.mailinator.com with SMTP (Postfix)\r\n for recipient@mailinator.com;\r\n Sat, 27 Dec 2014 16:16:07 +0000 (UTC)","from":"\"Sender\" <example@example.net>","date":"Sun, 28 Dec 2014 00:16:00 +0800"},"seconds_ago":77024,"id":"1419696967-44152505-recipient","to":"recipient@mailinator.com","time":1419696967076,"subject":"This is a subject","fromfull":"example@example.net","parts":[{"headers":{"content-type":"text\/plain;\r\n\tcharset=\"iso-8859-1\"","content-transfer-encoding":"quoted-printable"},"body":"This is a body"}],"been_read":false,"from":"Sender","ip":"127.0.0.1"},"forwardsLeft":10} | ||
{ | ||
"data": { | ||
"fromfull": "example@example.net", | ||
"headers": { | ||
"date": "Mon, 14 May 2018 00:47:55 -0600 (MDT)", | ||
"mime-version": "1.0", | ||
"x-virus-scanned": "ClamAV using ClamSMTP", | ||
"subject": "This is a Subject", | ||
"message-id": "<message.id@example.com>", | ||
"received": ["from 127-0-0-1.dynamic-ip.example.net ()\r\n by mail.mailinator.com with SMTP (Postfix)\r\n for recipient@mailinator.com;\r\n Sat, 27 Dec 2014 16:16:07 +0000 (UTC)"], | ||
"from": "\"Sender\" <example@example.net>", | ||
"content-type": "multipart/mixed; boundary=\"----=_part_50750_324040880.1526280475585\"", | ||
"to": "<recipient@mailinator.com>", | ||
"x-mailinator-smtp": ["system: start;0", "s: 220 mail.mailinator.com esmtp postfix;0", "r: ehlo bmta1.somemail.com;102", "s: 250-mail.mailinator.com 250-8bitmime 250 ok;102", "r: mail from:<exampl@example.net>;194", "s: 250 ok;194", "r: rcpt to:<recipient@mailinator.com>;286", "s: 250 ok;286", "r: data;377", "s: 354 end data with <cr><lf>.<cr><lf>;377", "s: 250 ok;6137"] | ||
}, | ||
"subject": "This is a Subject", | ||
"parts": [{ | ||
"headers": { | ||
"content-transfer-encoding": "7bit", | ||
"content-type": "text/html; charset=\"utf-8\"" | ||
}, | ||
"body": "This is a body" | ||
}, { | ||
"headers": { | ||
"content-transfer-encoding": "base64", | ||
"content-disposition": "attachment; filename=some.pdf", | ||
"content-type": "text\/html;\r\n\tcharset=\"iso-8859-1\"" | ||
}, | ||
"body": "This is a BASE64 body" | ||
}], | ||
"from": "Sender", | ||
"origfrom": "Example <example@example.net>", | ||
"to": "recipient", | ||
"id": "1419696967-44152505-recipient", | ||
"time": 1526072140000, | ||
"seconds_ago": 55994 | ||
} | ||
} |
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,50 @@ | ||
HTTP/1.1 200 OK | ||
Server: Apache-Coyote/1.1 | ||
Date: Sun, 28 Dec 2014 13:39:51 GMT | ||
Date: Fri, 11 May 2018 13:39:51 GMT | ||
|
||
{"apiInboxFetchesLeft":696,"apiEmailFetchesLeft":10,"data":{"headers":{"sender":"example@example.net","content-type":"multipart\/alternative;\r\n\tboundary=\"MIMEBoundaryec1dc8828d9bbedf095f9e9d2ebdbdeb\"","to":"recipient@mailinator.com","x-connecting-ip":"127.0.0.1","subject":"This is a subject","mime-version":"1.0","x-received-time":"1419696967076","reply-to":"example@example.net","received":"from 127-0-0-1.dynamic-ip.example.net ()\r\n by mail.mailinator.com with SMTP (Postfix)\r\n for recipient@mailinator.com;\r\n Sat, 27 Dec 2014 16:16:07 +0000 (UTC)","from":"\"Sender\" <example@example.net>","date":"Sun, 28 Dec 2014 00:16:00 +0800"},"seconds_ago":77024,"id":"1419696967-44152505-recipient","to":"recipient@mailinator.com","time":1419696967076,"subject":"This is a subject","fromfull":"example@example.net","parts":[{"headers":{"content-type":"text\/plain;\r\n\tcharset=\"iso-8859-1\"","content-transfer-encoding":"quoted-printable"},"body":"This is a body"},{"headers":{"content-type":"text\/html;\r\n\tcharset=\"iso-8859-1\"","content-transfer-encoding":"quoted-printable"},"body":"<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD XHTML 1.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-transitional.dtd\">\r\n<html xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\r\n\r\n<head>\r\n<meta content=\"en-us\" http-equiv=\"Content-Language\" \/>\r\n<meta content=\"text\/html; charset=utf-8\" http-equiv=\"Content-Type\" \/>\r\n<title>Alert<\/title>\r\n<\/head>\r\n\r\n<body><p>This is a body<\/p><\/body>\r\n\r\n<\/html>"}],"been_read":false,"from":"Sender","ip":"127.0.0.1"},"forwardsLeft":10} | ||
{ | ||
"data": { | ||
"fromfull": "example@example.net", | ||
"headers": { | ||
"date": "Mon, 14 May 2018 00:47:55 -0600 (MDT)", | ||
"mime-version": "1.0", | ||
"x-virus-scanned": "ClamAV using ClamSMTP", | ||
"subject": "This is a Subject", | ||
"message-id": "<message.id@example.com>", | ||
"received": [ | ||
"from bmta1.example.com([9.9.9.9]) by mail.mailinator.com with SMTP (Postfix) for receipient@example.com; Fri, 11 May 2018 20:55:36 +0000 (UTC)", | ||
"from mail-2.example.com (mail.example.com [9.9.9.9]) by bmta1.example.com (Postfix) with ESMTP id 5B2118627 for <receipient@example.com>; Fri, 11 May 2018 14:55:39 -0600 (MDT)", | ||
"from mail-2.example.com (localhost [127.0.0.1]) by mail.example.com (Postfix) with ESMTP id 4BF611FFAF for <receipient@example.com>; Fri, 11 May 2018 16:55:39 -0400 (EDT)", | ||
"from mail-1.example.com (smtp.example.com [9.9.9.9]) by mail-prod-2.example.com (Postfix) with ESMTP id 3BB0E1FF38 for <receipient@example.com>; Fri, 11 May 2018 16:55:39 -0400 (EDT)", | ||
"from app-4.example.net (app-4.example.net [9.9.9.9]) by mail.example.com (Postfix) with ESMTP id 3946F20A83 for <receipient@example.com>; Fri, 11 May 2018 16:55:39 -0400 (EDT)", | ||
"from app-4.example.net (localhost [127.0.0.1]) by app-4.example.net (Postfix) with ESMTP id 3481E413E1 for <receipient@example.com>; Fri, 11 May 2018 14:55:39 -0600 (MDT)" | ||
], | ||
"from": "Sender <sender@example.com>", | ||
"content-type": "multipart/mixed; boundary=\"-- -- = _part_124646_371774408 .1526072139209 \"", | ||
"to": "<recipient@mailinator.com>", | ||
"x-mailinator-smtp": ["system: start;0", "s: 220 mail.mailinator.com esmtp postfix;0", "r: ehlo bmta1.somemail.com;102", "s: 250-mail.mailinator.com 250-8bitmime 250 ok;102", "r: mail from:<exampl@example.net>;194", "s: 250 ok;194", "r: rcpt to:<recipient@mailinator.com>;286", "s: 250 ok;286", "r: data;377", "s: 354 end data with <cr><lf>.<cr><lf>;377", "s: 250 ok;6137"] | ||
}, | ||
"subject": "This is a Subject", | ||
"requestId": "638363", | ||
"parts": [{ | ||
"headers": { | ||
"content-transfer-encoding": "quoted-printable", | ||
"content-type": "text/html; charset=\"utf-8\"" | ||
}, | ||
"body": "<p>This is a body</p>" | ||
}, { | ||
"headers": { | ||
"content-transfer-encoding": "base64", | ||
"content-disposition": "attachment; filename=some.pdf", | ||
"content-type": "text\/html;\r\n\tcharset=\"iso-8859-1\"" | ||
}, | ||
"body": "This is a BASE64 body JVBERi0xLjUKJeLjz9MKMSAwIG9iag08PC9UeXBlL1BhZ2UvUGFyZW50IDYgMCBSIC9NZWRpYUJv" | ||
}], | ||
"from": "Sender", | ||
"origfrom": "Sender <sender@example.com>", | ||
"to": "Recipient", | ||
"id": "1419696967-44152505-recipient", | ||
"time": 1526072140000, | ||
"seconds_ago": 15258 | ||
} | ||
} |
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
HTTP/1.1 200 OK | ||
Server: Apache-Coyote/1.1 | ||
Date: Mon, 4 14 2018 12:26:18 GMT | ||
|
||
{ | ||
"data": { | ||
"fromfull": "example@example.net", | ||
"headers": { | ||
"date": "Mon, 14 May 2018 00:47:55 -0600 (MDT)", | ||
"mime-version": "1.0", | ||
"x-virus-scanned": "ClamAV using ClamSMTP", | ||
"subject": "This is a Subject", | ||
"message-id": "<message.id@example.com>", | ||
"received": [ | ||
"from bmta1.example.com([9.9.9.9]) by mail.mailinator.com with SMTP (Postfix) for receipient@example.com; Fri, 11 May 2018 20:55:36 +0000 (UTC)", | ||
"from mail-2.example.com (mail.example.com [9.9.9.9]) by bmta1.example.com (Postfix) with ESMTP id 5B2118627 for <receipient@example.com>; Fri, 11 May 2018 14:55:39 -0600 (MDT)", | ||
"from mail-2.example.com (localhost [127.0.0.1]) by mail.example.com (Postfix) with ESMTP id 4BF611FFAF for <receipient@example.com>; Fri, 11 May 2018 16:55:39 -0400 (EDT)", | ||
"from mail-1.example.com (smtp.example.com [9.9.9.9]) by mail-prod-2.example.com (Postfix) with ESMTP id 3BB0E1FF38 for <receipient@example.com>; Fri, 11 May 2018 16:55:39 -0400 (EDT)", | ||
"from app-4.example.net (app-4.example.net [9.9.9.9]) by mail.example.com (Postfix) with ESMTP id 3946F20A83 for <receipient@example.com>; Fri, 11 May 2018 16:55:39 -0400 (EDT)", | ||
"from app-4.example.net (localhost [127.0.0.1]) by app-4.example.net (Postfix) with ESMTP id 3481E413E1 for <receipient@example.com>; Fri, 11 May 2018 14:55:39 -0600 (MDT)" | ||
], | ||
"from": "Sender <sender@example.com>", | ||
"content-type": "multipart/mixed; boundary=\"-- -- = _part_124646_371774408 .1526072139209 \"", | ||
"to": "<recipient@mailinator.com>", | ||
"x-mailinator-smtp": ["system: start;0", "s: 220 mail.mailinator.com esmtp postfix;0", "r: ehlo bmta1.somemail.com;102", "s: 250-mail.mailinator.com 250-8bitmime 250 ok;102", "r: mail from:<exampl@example.net>;194", "s: 250 ok;194", "r: rcpt to:<recipient@mailinator.com>;286", "s: 250 ok;286", "r: data;377", "s: 354 end data with <cr><lf>.<cr><lf>;377", "s: 250 ok;6137"] | ||
}, | ||
"subject": "This is a Subject", | ||
"requestId": "638363", | ||
"parts": [{ | ||
"headers": { | ||
"content-transfer-encoding": "7bit", | ||
"content-type": "text/html; charset=\"utf-8\"" | ||
}, | ||
"body": "<p>This is a body</p>" | ||
}, { | ||
"headers": { | ||
"content-transfer-encoding": "base64", | ||
"content-disposition": "attachment; filename=some.pdf", | ||
"content-type": "text\/html;\r\n\tcharset=\"iso-8859-1\"" | ||
}, | ||
"body": "This is a BASE64 body JVBERi0xLjUKJeLjz9MKMSAwIG9iag08PC9UeXBlL1BhZ2UvUGFyZW50IDYgMCBSIC9NZWRpYUJv" | ||
}], | ||
"from": "Sender", | ||
"origfrom": "Sender <sender@example.com>", | ||
"to": "recipient", | ||
"id": "1419696967-44152505-recipient", | ||
"time": 1526072140000, | ||
"seconds_ago": 15258 | ||
} | ||
} |
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,27 @@ | ||
HTTP/1.1 200 OK | ||
Server: Apache-Coyote/1.1 | ||
Date: Sun, 28 Dec 2014 16:26:18 GMT | ||
Date: Mon, 14 May 2018 16:26:18 GMT | ||
|
||
{"messages":[{"seconds_ago":87011,"id":"1419696967-44152505-recipient","to":"recipient@mailinator.com","time":1419696967076,"subject":"First subject","fromfull":"sender@example.org","been_read":false,"from":"Sender name","ip":"127.0.0.1"},{"seconds_ago":73130,"id":"1419710848-46252175-recipient","to":"recipient@mailinator.com","time":1419710848789,"subject":"Second subject","fromfull":"sender@example.org","been_read":false,"from":"Another sender name","ip":"127.0.0.2"}]} | ||
{ | ||
"messages": [{ | ||
"seconds_ago": 87011, | ||
"id": "1419696967-44152505-recipient", | ||
"to": "recipient@mailinator.com", | ||
"time": 1419696967076, | ||
"subject": "First subject", | ||
"fromfull": "sender@example.org", | ||
"been_read": false, | ||
"from": "Sender name", | ||
"ip": "127.0.0.1" | ||
}, { | ||
"seconds_ago": 73130, | ||
"id": "1419710848-46252175-recipient", | ||
"to": "recipient@mailinator.com", | ||
"time": 1419710848789, | ||
"subject": "Second subject", | ||
"fromfull": "sender@example.org", | ||
"been_read": false, | ||
"from": "Another sender name", | ||
"ip": "127.0.0.2" | ||
}] | ||
} |
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
HTTP/1.1 200 OK | ||
Server: Apache-Coyote/1.1 | ||
Date: Mon, 14 2018 12:26:18 GMT | ||
|
||
{ | ||
"messages": [{ | ||
"subject": "First subject", | ||
"from": "Sender name", | ||
"id": "1419696967-44152505-recipient", | ||
"to": "recipient@private_domain.mailinator.com", | ||
"seconds_ago": 41616 | ||
}, { | ||
"subject": "Second subject", | ||
"from": "Another Sender name", | ||
"id": "1556696970-44152699-recipient", | ||
"to": "recipient@private_domain.mailinator.com", | ||
"seconds_ago": 41506 | ||
}] | ||
} |
This file contains 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 characters
Oops, something went wrong.
Hello