iobroker.imap 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -3
- package/io-package.json +14 -14
- package/lib/imap_event.js +4 -0
- package/main.js +3 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -37,10 +37,13 @@
|
|
|
37
37
|
- vodafone
|
|
38
38
|
- strato
|
|
39
39
|
|
|
40
|
-
## Description
|
|
40
|
+
## Description
|
|
41
41
|
|
|
42
|
-
🇬🇧 [Description](/docs/en/README.md)
|
|
43
|
-
|
|
42
|
+
🇬🇧 [Description](/docs/en/README.md)
|
|
43
|
+
|
|
44
|
+
## Questions
|
|
45
|
+
|
|
46
|
+
🇩🇪 [Fragen](https://forum.iobroker.net/topic/63400/test-adapter-iobroker-imap-v0-0-1-github)
|
|
44
47
|
|
|
45
48
|
## Changelog
|
|
46
49
|
|
|
@@ -48,6 +51,11 @@
|
|
|
48
51
|
Placeholder for the next version (at the beginning of the line):
|
|
49
52
|
### **WORK IN PROGRESS**
|
|
50
53
|
-->
|
|
54
|
+
### 0.0.9 (2023-07-26)
|
|
55
|
+
|
|
56
|
+
- (Lucky-ESA) Fixed RAM consumption of new emails
|
|
57
|
+
- (Lucky-ESA) Added counter attachments in JSON
|
|
58
|
+
|
|
51
59
|
### 0.0.8 (2023-07-13)
|
|
52
60
|
|
|
53
61
|
- (Lucky-ESA) Fix refresh crash
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "imap",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.9",
|
|
5
5
|
"news": {
|
|
6
|
+
"0.0.9": {
|
|
7
|
+
"en": "Fixed RAM consumption of new emails\nAdded counter attachments in JSON",
|
|
8
|
+
"de": "Fester RAM-Verbrauch neuer E-Mails\nHinzufügen von Zähleraufsätzen in JSON",
|
|
9
|
+
"ru": "Фиксированное потребление RAM новых писем\nДобавлены вложения счетчиков в JSON",
|
|
10
|
+
"pt": "Consumo de RAM fixo de novos e-mails\nAdicionado contra anexos em JSON",
|
|
11
|
+
"nl": "Vertaling:\nVertaling:",
|
|
12
|
+
"fr": "Consommation de RAM fixe de nouveaux emails\nAjout de pièces jointes dans JSON",
|
|
13
|
+
"it": "Risolto consumo di RAM di nuove email\nAggiunto accessori contatore in JSON",
|
|
14
|
+
"es": "Consumo de RAM fijo de nuevos correos electrónicos\nAgregados contadores en JSON",
|
|
15
|
+
"pl": "Zużycie pamięci RAM nowej e-maili\nAdded counter przywiązania w JSON",
|
|
16
|
+
"uk": "Виправлено споживання оперативної пам'яті нових електронних листів\nДодано лічильник вкладення в JSON",
|
|
17
|
+
"zh-cn": "新电子邮件的分期消费\n增加联索行动内的反附属"
|
|
18
|
+
},
|
|
6
19
|
"0.0.8": {
|
|
7
20
|
"en": "Fix refresh crash\nAdded MB threshold",
|
|
8
21
|
"de": "Erfrischungsabsturz beheben\nMB Schwelle",
|
|
@@ -80,19 +93,6 @@
|
|
|
80
93
|
"pl": "Beta",
|
|
81
94
|
"uk": "Бета реліз",
|
|
82
95
|
"zh-cn": "B. 释放"
|
|
83
|
-
},
|
|
84
|
-
"0.0.2": {
|
|
85
|
-
"en": "initial release",
|
|
86
|
-
"de": "erstausstrahlung",
|
|
87
|
-
"ru": "начальный выпуск",
|
|
88
|
-
"pt": "lançamento inicial",
|
|
89
|
-
"nl": "niet",
|
|
90
|
-
"fr": "initial release",
|
|
91
|
-
"it": "rilascio iniziale",
|
|
92
|
-
"es": "liberación inicial",
|
|
93
|
-
"pl": "pierwsze wydanie",
|
|
94
|
-
"uk": "початковий реліз",
|
|
95
|
-
"zh-cn": "初步释放"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"titleLang": {
|
package/lib/imap_event.js
CHANGED
|
@@ -379,16 +379,20 @@ module.exports = {
|
|
|
379
379
|
const inbox = this.clientsRaw[client].inbox_activ;
|
|
380
380
|
const new_mail = await this.loadAllSeqno(client, inbox, true);
|
|
381
381
|
let nextuid = this.diffArray(this.clientsRaw[client][inbox], new_mail, 2, client);
|
|
382
|
+
this.clientsRaw[client][inbox] = new_mail;
|
|
382
383
|
if (nextuid.length === 0) {
|
|
383
384
|
nextuid = [box.uidnext];
|
|
384
385
|
}
|
|
385
386
|
if (this.clients[client].serverSupports("SORT")) {
|
|
387
|
+
//this.log.info("newMailsSort");
|
|
386
388
|
this.newMailsSort(client, nextuid, "new");
|
|
387
389
|
} else {
|
|
388
390
|
if (nextuid.length > 0) {
|
|
389
391
|
this.newMails(client, nextuid, "new");
|
|
392
|
+
//this.log.info("newMails");
|
|
390
393
|
} else {
|
|
391
394
|
this.readMails(client);
|
|
395
|
+
//this.log.info("readMails");
|
|
392
396
|
}
|
|
393
397
|
}
|
|
394
398
|
this.setTotal(client, this.clientsRaw[client].inbox_activ);
|
package/main.js
CHANGED
|
@@ -588,6 +588,8 @@ class Imap extends utils.Adapter {
|
|
|
588
588
|
this.save_json[clientID][merge] = mail;
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
|
+
//this.log.info("COUNT SINGLE: " + Object.keys(this.save_json[clientID]).length);
|
|
592
|
+
//this.log.info("COUNT ALL: " + Object.keys(this.save_json).length);
|
|
591
593
|
this.updateIMAPData(clientID, false, false);
|
|
592
594
|
}
|
|
593
595
|
|
|
@@ -1690,6 +1692,7 @@ class Imap extends utils.Adapter {
|
|
|
1690
1692
|
}
|
|
1691
1693
|
}
|
|
1692
1694
|
}
|
|
1695
|
+
new_json["attach"] = element.attachments != null ? element.attachments : 0;
|
|
1693
1696
|
new_json["to"] = addaddress;
|
|
1694
1697
|
new_json["to_name"] = addname;
|
|
1695
1698
|
new_json["subject"] = element.subject ? element.subject : "";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iobroker.imap",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "imap to receive your emails",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Lucky-ESA",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"node": ">= 16"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@azure/msal-node": "^1.
|
|
25
|
+
"@azure/msal-node": "^1.18.0",
|
|
26
26
|
"@iobroker/adapter-core": "^2.6.8",
|
|
27
27
|
"mailparser": "^3.6.3",
|
|
28
28
|
"node-imap": "^0.9.6"
|