diff --git a/AppScope/app.json5 b/AppScope/app.json5 index fe0cde8c0831712e8693d28ec9e46149e81afe1b..3a927bc9b213d5a0e8f427e027f4cf7e25c0849f 100644 --- a/AppScope/app.json5 +++ b/AppScope/app.json5 @@ -3,7 +3,7 @@ "bundleName": "cn.openharmony.mail", "vendor": "example", "versionCode": 1000000, - "versionName": "1.0.8", + "versionName": "1.0.9", "icon": "$media:app_icon", "label": "$string:app_name", "distributedNotificationEnabled": true diff --git a/CHANGELOG.md b/CHANGELOG.md index ceedf3abf30b197c7d24b342f459ffcfe571f28c..5960fdeb0b1d2248de5c6e34408ca482f007e241 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +## v1.0.9 + +- 修改无法获取到部分邮件正文 +- 修改getAllHeaders卡死的问题 +- 修改邮箱主题乱码的问题 +- 修改获取邮箱指定文件夹错误的问题 +- ohos_mail采用多license许可证 +- 修改README.md简介 +- 修改/mail/src/main/ets/mail/目录下文件的Copyright + ## v1.0.8 - 添加IMAP获取正文前几个字节 diff --git a/entry/package.json b/entry/package.json index eafa7e9caf154bc08b06b9106228bfabbaab2b1d..cb46e54f36c1e3129a6d41aaaa4a61818f10b5aa 100644 --- a/entry/package.json +++ b/entry/package.json @@ -9,7 +9,7 @@ }, "description": "example description", "repository": {}, - "version": "1.0.8", + "version": "1.0.9", "dependencies": { "@ohos/mail": "file:../mail" } diff --git a/mail/package.json b/mail/package.json index a84fd36193006ba090dc3c2fb909cae3c477b60f..72f95cb4e9a66cf4d611f3d7c68856576516e92a 100644 --- a/mail/package.json +++ b/mail/package.json @@ -13,7 +13,7 @@ "main": "index.ts", "repository": "https://gitee.com/openharmony-sig/ohos_mail", "type": "module", - "version": "1.0.8", + "version": "1.0.9", "tags": [ "OpenHarmony", "Tool", diff --git a/mail/src/main/ets/mail/MimeMultipart.ts b/mail/src/main/ets/mail/MimeMultipart.ts index 44da82f7efe27964d557a8e40f752dd051740bc3..9e15fcd4dd7f2b3fd3e8ca14dd3a67b72c91195a 100644 --- a/mail/src/main/ets/mail/MimeMultipart.ts +++ b/mail/src/main/ets/mail/MimeMultipart.ts @@ -181,11 +181,13 @@ export class MimeMultipart { public getPartHtml(size: number, callback) { if (size <= 0) { - return callback(false, "no text") + return callback(false, "no html") } let section = "" if (!!this.files) { section = ' (BODY[1.2]<' + '0.' + size + '>)' + } else if (this.textSize == 0) { + section = ' (BODY[' + 1 + ']<' + '0.' + size + '>)' } else { section = ' (BODY[' + 2 + ']<' + '0.' + size + '>)' } diff --git a/mail/src/main/ets/mail/Store.ts b/mail/src/main/ets/mail/Store.ts index 245a33b02fb03708f87b6d77f5d2435ce1f191e8..45e56e8a2dea2b3cd953786630fd8ac2dec339e8 100644 --- a/mail/src/main/ets/mail/Store.ts +++ b/mail/src/main/ets/mail/Store.ts @@ -119,10 +119,6 @@ export class Store { MailLogger.info("ohos_mail-- server response// :" + JSON.stringify(lines[i])) } - if (lines[lines.length-1] == "") { - this.isStartWrite = false - } - //获取服务器响应的最后一行内容(最后一行内容是服务器对本次操作的状态) let lastLine if (this.properties.getProtocol() == "imap" && this.properties.getPort() == 993) { diff --git a/package.json b/package.json index ea25f466d00aac07766b3bb8d1a8ac59376c74d4..ba1a936ef392106bed8280e12e033156a66d85df 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ }, "description": "example description", "repository": {}, - "version": "1.0.8", + "version": "1.0.9", "dependencies": { "@ohos/hypium": "1.0.5", "@ohos/hvigor-ohos-plugin": "1.4.0",