mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-10-06 11:57:27 +08:00
v1.0.86
This commit is contained in:
parent
0214cda968
commit
4afc2261bd
4 changed files with 53 additions and 23 deletions
71
docs/api.md
71
docs/api.md
|
@ -1381,7 +1381,7 @@ Returns timeline information about a specific message.
|
||||||
**Example**
|
**Example**
|
||||||
|
|
||||||
```
|
```
|
||||||
curl "http://localhost:8080/users/59467f27535f8f0f067ba8e6/mailboxes/596c9dd31b201716e764efc2/messages/444/events"
|
curl "http://localhost:8080/users/59cb9b0f8d78173c5fc6871c/mailboxes/59cb9b0f8d78173c5fc6871d/messages/43/events"
|
||||||
```
|
```
|
||||||
|
|
||||||
Response for a successful operation:
|
Response for a successful operation:
|
||||||
|
@ -1389,28 +1389,57 @@ Response for a successful operation:
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"success": true,
|
"success": true,
|
||||||
"id": 444,
|
"id": "59e9dfac7f60c84cb2c467c4",
|
||||||
"from": {
|
"events": [
|
||||||
"address": "sender@example.com",
|
|
||||||
"name": "Sender Name"
|
|
||||||
},
|
|
||||||
"to": [
|
|
||||||
{
|
{
|
||||||
"address": "testuser@example.com",
|
"id": "15f3991b258000f6e5.002",
|
||||||
"name": "Test User"
|
"action": "STORE",
|
||||||
|
"source": "MX",
|
||||||
|
"origin": "sender.com",
|
||||||
|
"from": "andris12@example.com",
|
||||||
|
"to": [
|
||||||
|
"andris2@example.com"
|
||||||
|
],
|
||||||
|
"transtype": "ESMTPSA",
|
||||||
|
"time": "2017-10-20T11:36:12.481Z"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "15f3991b9d7000fb8f",
|
||||||
|
"action": "FORWARD",
|
||||||
|
"from": "andris12@example.com",
|
||||||
|
"to": [
|
||||||
|
"andris@kreata.ee",
|
||||||
|
"andris.reinman@gmail.com"
|
||||||
|
],
|
||||||
|
"time": "2017-10-20T11:36:12.523Z"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "15f3991b9d7000fb8f",
|
||||||
|
"seq": "002",
|
||||||
|
"action": "REJECTED",
|
||||||
|
"src": "0.0.0.0",
|
||||||
|
"dst": "gmail-smtp-in.l.google.com",
|
||||||
|
"response": "421-4.7.0 This message does not have authentication information or fails to pass authentication checks. To best protect our users from spam, the message has been blocked. Please visit https://",
|
||||||
|
"from": "andris12@example.com",
|
||||||
|
"to": [
|
||||||
|
"andris.reinman@gmail.com"
|
||||||
|
],
|
||||||
|
"time": "2017-10-20T11:36:18.446Z"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "15f3991b9d7000fb8f",
|
||||||
|
"seq": "001",
|
||||||
|
"action": "ACCEPTED",
|
||||||
|
"src": "0.0.0.0",
|
||||||
|
"dst": "aspmx.l.google.com",
|
||||||
|
"response": "250 2.0.0 OK 1508499378 v89si365958lje.238 - gsmtp",
|
||||||
|
"from": "andris12@example.com",
|
||||||
|
"to": [
|
||||||
|
"andris@kreata.ee"
|
||||||
|
],
|
||||||
|
"time": "2017-10-20T11:36:18.934Z"
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
"subject": "Subject line",
|
|
||||||
"messageId": "<FA472D2A-092E-44BC-9D38-AFACE48AB98E@example.com>",
|
|
||||||
"date": "2011-11-02T19:19:08.000Z",
|
|
||||||
"seen": true,
|
|
||||||
"deleted": false,
|
|
||||||
"flagged": false,
|
|
||||||
"draft": false,
|
|
||||||
"html": [
|
|
||||||
"Notice that the HTML content is an array of HTML strings"
|
|
||||||
],
|
|
||||||
"attachments": []
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -827,6 +827,7 @@ module.exports = (db, server, messageHandler) => {
|
||||||
id: messageData._id,
|
id: messageData._id,
|
||||||
events: [
|
events: [
|
||||||
{
|
{
|
||||||
|
id: messageData.meta.queueId,
|
||||||
action: 'STORE',
|
action: 'STORE',
|
||||||
source: messageData.meta.source,
|
source: messageData.meta.source,
|
||||||
origin: messageData.meta.origin,
|
origin: messageData.meta.origin,
|
||||||
|
|
|
@ -409,7 +409,7 @@ class FilterHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (receivedData.has('id')) {
|
if (receivedData.has('id')) {
|
||||||
messageOpts.meta.queueId = receivedData.get('id');
|
messageOpts.meta.id = receivedData.get('id');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (receivedData.has('from')) {
|
if (receivedData.has('from')) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "wildduck",
|
"name": "wildduck",
|
||||||
"version": "1.0.85",
|
"version": "1.0.86",
|
||||||
"description": "IMAP server built with Node.js and MongoDB",
|
"description": "IMAP server built with Node.js and MongoDB",
|
||||||
"main": "server.js",
|
"main": "server.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Loading…
Add table
Reference in a new issue