Skip to content

Commit 0c383d3

Browse files
committed
feat: 1.5.4: gmail: rewrite message parser
- gmail: rewrite message parser, each message is stored as a file in the zip, add support for inline attachments - remove logging, todo: replace with better way of doing it - docs: update gmail, google_drive module docs
1 parent bbaa4ec commit 0c383d3

File tree

9 files changed

+255
-530
lines changed

9 files changed

+255
-530
lines changed

docs/Code.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,4 @@ class CustomProvider extends Provider {
8787

8888
// Export it as the default export. Try NOT to export anything else.
8989
exports.default = CustomProvider
90-
```
90+
```

docs/modules/gmail.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,4 @@ Requires an access token of the format `Bearer <token>` added to the header unde
1313
- Labels are treated as folders
1414
- Threads are files
1515
- The thread ID is used to get a thread and all its messages
16-
- When getting a specific thread, the provider will create a nicely formatted string with all the messages in it. Then it will return the string of messages as well as any attachments as a data: URI in application/json format:
17-
{
18-
messages: "base64 encoded generated file",
19-
attachments: [
20-
"base64 encoded attachment 1",
21-
"base64 encoded attachment 2",
22-
"base64 encoded attachment 3",
23-
...
24-
]
25-
}
16+
- When getting a specific thread, the provider will create a zip file containing all messages in the thread, along with any inline images and attachments. The messages will be converted to markdown if in html.

docs/modules/google_drive.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ Requires an access token of the format `Bearer <token>` added to the header unde
1111
# Google Drive specific features
1212
## Shared files and permissions
1313

14-
- Currently, it is only possible to view and download files and folders shared with you (located in the hidden `/Shared` folder). Files and folders that you have shared with others will appear in their respective paths in your Drive. Sharing files and folders with others is not yet supported through this server module.
14+
- Currently, it is only possible to view and download files and folders shared with you (located in the hidden `/Shared` folder). Files and folders that you have shared with others will appear in their respective paths in your Drive. Sharing files and folders with others is not yet supported through this server module.
15+
- Updating and creating shared files is also not supported

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dabbu-server",
3-
"version": "1.5.3",
3+
"version": "1.5.4",
44
"description": "A unified API interface to access all your data online",
55
"directories": {
66
"doc": "docs"

0 commit comments

Comments
 (0)