mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-05 20:24:26 +08:00
[local-sync] Fix a couple bugs that popped up while sending
- Pass in the account when creating an ImapConnection - Wrap the return value of the SendMessage task in an object
This commit is contained in:
parent
5a1fb3c9ad
commit
b46ffd4a3f
2 changed files with 2 additions and 1 deletions
|
@ -126,6 +126,7 @@ class SyncWorker {
|
||||||
db: this._db,
|
db: this._db,
|
||||||
settings: Object.assign({}, settings, credentials),
|
settings: Object.assign({}, settings, credentials),
|
||||||
logger: this._logger,
|
logger: this._logger,
|
||||||
|
account: this._account,
|
||||||
});
|
});
|
||||||
|
|
||||||
conn.on('mail', () => {
|
conn.on('mail', () => {
|
||||||
|
|
|
@ -48,7 +48,7 @@ class SendMessageIMAP extends SyncbackTask {
|
||||||
// actually did
|
// actually did
|
||||||
logger.error(err, 'SendMessage: Could not sent message to sent folder')
|
logger.error(err, 'SendMessage: Could not sent message to sent folder')
|
||||||
}
|
}
|
||||||
return message.toJSON()
|
return {message: message.toJSON()}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue