Fix manual deletion
The fact this has gone unnoticed for so long is genuinely patheticmain
parent
919c770fe3
commit
159cd9942e
|
@ -244,7 +244,7 @@ class ImapService extends EventEmitter {
|
||||||
*/
|
*/
|
||||||
async deleteSpecificEmail(uid) {
|
async deleteSpecificEmail(uid) {
|
||||||
debug(`deleting mails ${uid}`)
|
debug(`deleting mails ${uid}`)
|
||||||
if (!this.config.http.examples.uids.includes(parseInt(uid))) {
|
if (!this.config.email.examples.uids.includes(parseInt(uid))) {
|
||||||
await this.connection.deleteMessage(uid)
|
await this.connection.deleteMessage(uid)
|
||||||
console.log(`deleted mail with UID: ${uid}.`)
|
console.log(`deleted mail with UID: ${uid}.`)
|
||||||
this.emit(ImapService.EVENT_DELETED_MAIL, uid)
|
this.emit(ImapService.EVENT_DELETED_MAIL, uid)
|
||||||
|
|
Loading…
Reference in New Issue