-
Notifications
You must be signed in to change notification settings - Fork 162
REST GET message source
James Hillyerd edited this page Feb 26, 2016
·
6 revisions
Retrieve message source
GET /api/v1/mailbox/{name}/{id}/source
-
name
- name of the mailbox the message belongs to -
id
- identifier of the message to retrieve
Plain text dump of the message headers and body in SMTP format.
Request: curl -i -H "Accept: application/json" http://localhost:9000/api/v1/mailbox/swaks/20131015T161202-0000/source
Response:
HTTP/1.1 200 OK
Content-Type: text/plain
Content-Length: 264
Date: Tue, 15 Oct 2013 23:52:09 GMT
Date: Tue, 15 Oct 2013 16:12:02 -0700
To: [email protected]
From: [email protected]
Subject: Swaks Plain Text
X-Mailer: swaks v20130209.0 jetmore.org/john/code/swaks/
This is a test mailing.
This should be clickable: http://google.com/