Commit graph

2042 commits

Author SHA1 Message Date
Louis Laureys a4ae3d7113
feat(api-search): Allow searching for messages by uid (#587) 2024-01-02 13:23:43 +02:00
NickOvt 299cc37f2f
Merge pull request #594 from nodemailer/ZMS-118
ZMS-118 addition
2024-01-02 13:19:56 +02:00
NickOvt 5165f3e172
Merge branch 'master' into ZMS-118 2024-01-02 13:16:32 +02:00
Nikolai Ovtsinnikov b0d0e7b955
fix securitySchemes 2024-01-02 13:10:04 +02:00
NickOvt fae91d1484
fix(api-docs): Fixed requestBody in API docs ZMS-118 (#593)
* optimize CPU usage

* fix requestBody issues in API docs generation

* fix requestBody issues for API generation

* Revert "optimize CPU usage"

This reverts commit b4fde61884.
2024-01-02 12:50:06 +02:00
Andris Reinman 896a7cb1af
Updated Node install script 2024-01-02 12:42:52 +02:00
Nikolai Ovtsinnikov 3b6ba9ae03
Revert "optimize CPU usage"
This reverts commit b4fde61884.
2024-01-02 12:34:20 +02:00
Nikolai Ovtsinnikov 17232dd5e0
fix requestBody issues for API generation 2024-01-02 12:33:05 +02:00
Nikolai Ovtsinnikov 713a06c216
fix requestBody issues in API docs generation 2024-01-02 12:28:13 +02:00
Andris Reinman 6f0fa1dfce
Updated Node install script 2024-01-02 12:03:55 +02:00
Andris Reinman 20e390d5f4
Updated Node install script 2024-01-02 12:00:07 +02:00
Andris Reinman d7b27c63a7
Updated setup commit hashes 2024-01-02 11:41:36 +02:00
Andris Reinman cd3d52959e
Bumped deps 2024-01-02 11:39:27 +02:00
Andris Reinman c886383d26
Merge branch 'master' of github.com:nodemailer/wildduck 2024-01-02 11:24:35 +02:00
Andris Reinman 43365542a3
fix(api-search): Fixed or query. Fixes #592 2024-01-02 11:24:28 +02:00
Louis Laureys 4a4fb2feed
fix(api-docs): Fix openapi.yaml so it passes schema validation (#588) 2024-01-02 11:22:28 +02:00
NickOvt a15878c7d7
fix(docs): /users API docs ZMS-110 (#575)
* /users GET endpoint added

* added /users POST to api generation

* added /users/resolve/:username GET endpoint for api generation

* fixes + request user info GET endpoint added

* Added Update User information api path to api docs generation

* added Log out User endpoint to api generation

* Added Recalculate User quota endpoint to API generation

* added Recalculate Quota for all users endpoint to api generation

* added Export data endpoint to API generation

* added Import user data endpoint to API generation

* Reset password for a User endpoint added to API generation

* Reset password for a User endpoint add param to res

* add missing response types

* added Delete a User, Return recovery info for a deleted User, Cancel user deletion task - endpoints to API generation

* fix typo in users.js
2023-12-21 10:42:09 +02:00
NickOvt 29cffe0d5f
fix(api): header.key and header.value not required ZMS-116 (#582)
* remove unnecessary required() that brakes the e-mail send

* fix Header object as well, remove unnecessary required
2023-12-19 11:12:15 +02:00
github-actions[bot] 89dd3cf861
chore(master): release 1.41.3 [skip-ci] (#581)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-12-19 10:45:18 +02:00
NickOvt d80ba77650
fix(api): Remove unnecessary required() that brakes the e-mail send (#580) 2023-12-19 10:41:51 +02:00
github-actions[bot] 89d641eb40
chore(master): release 1.41.2 [skip-ci] (#578)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-12-15 13:02:00 +02:00
NickOvt c1e28db0f3
fix(upload): allow empty name field in the Upload message FROM: header ZMS-113 (#577)
* allow empty name field in the Upload message FROM: header

* allow empty name for reply-to also
2023-12-15 12:58:03 +02:00
Nikolai Ovtsinnikov b4fde61884
optimize CPU usage 2023-12-15 12:05:17 +02:00
github-actions[bot] c0ceb5a457
chore(master): release 1.41.1 [skip-ci] (#573)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-12-14 14:15:55 +02:00
Andris Reinman 9aab24267b
fix(defer): Added new setting const:sender:defer_times ZMS 63 (#574)
* Added new setting const:sender:defer_times

* Bumped deps
2023-12-14 14:00:31 +02:00
Andris Reinman 1fe04810be
Removed extraneous file 2023-12-07 13:54:51 +02:00
Andris Reinman 6f4994d3a0
fix(mime-parsing): ensure that text content for multipart nodes always ends with a newline. Fixes #571 2023-12-07 13:53:27 +02:00
github-actions[bot] e553523df3
chore(master): release 1.41.0 [skip-ci] (#544)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-12-04 14:29:24 +02:00
titanism ee2708e4c1
fix(imap): fixed string conversion to utf8 vs binary (closes #563) (#564)
* fix: fixed string conversion to uf8 vs binary (closes #563)

@andris9 this is a core bug that needs merged/fixed

details are in #563 

calling `compiled + "something"` will result in the buffer being converted to utf8 instead of binary, since the default buffer.toString is utf8

* fix: update imap composer for `compiled` types

Ref #564 and #563
2023-11-30 14:31:15 +02:00
NickOvt 28bdc7621e
fix(docs): Added support for enums ZMS-104 (#565)
* query params add support for enums and example

* add general enum and example support for requestBody as well
2023-11-30 14:29:12 +02:00
NickOvt 3c9e17595c
fix(docs): Fixed descriptions ZMS-101 (#553)
* api.js added endpoint for generating openapi docs. added new info to one route in mailboxes.js and messages.js files so that the api docs generation can be done at all

* try to first generate json representation of the api docs

* add initial Joi Object parsing

* api.js make generation dynamic. messages.js add schemas from separate file. messages-schemas.js used for messages endpoint schemas

* add additions to schemas. Add new schemas to messages.js and also add response object there. Add response object parsing functionality to api.js

* add initial openapi doc yml file generation

* remove manual yaml parsing with js-yaml JSON -> YAML parsing

* fix replaceWithRefs and parseComponentsDecoupled functions, refactor, remove unnecessary comments and logs

* add support for another endpoint

* move big code from api.js to tools

* fix array type representation, fix response objects, add necessary data and changes to endpoints

* redo include logic into exclude login

* fix api generation in tools.js to accomodate new naming of objects

* fix messages.js, add structuredClone check in tools.js

* fix structured clone definition

* add one endpoint in messages.js to the api generation

* messages.js add one more endpoint to API generation

* add response to prev commit. Add new endpoint to API generation. Archive message and archive messages

* finish with post endpoints in messages.js

* added general request and response schemas. Also added req and res schemas for messages

* add multiple GET endpoints to API generation and changed them to new design. Use general schemas made earlier

* fix incorrect import of successRes

* fix mailboxes.js

* refactor general-schemas.js. Fix searchSchema in messages.js. Mailboxes.js fix response

* tools.js rename methodObj in API generation to operationObj

* tools.js api generation remove string fallbacks

* messages.js finish with GET endpoints, addition to API doc generation

* fix description on the object issue

* add descriptions to fields for the schemas in the messages-schemas.js file

* remove yarml import in tools.js
2023-11-30 14:27:00 +02:00
NickOvt c1cc143663
feat(docs): ZMS-[9x] Automatic API generation (#535)
* api.js added endpoint for generating openapi docs. added new info to one route in mailboxes.js and messages.js files so that the api docs generation can be done at all

* try to first generate json representation of the api docs

* add initial Joi Object parsing

* api.js make generation dynamic. messages.js add schemas from separate file. messages-schemas.js used for messages endpoint schemas

* add additions to schemas. Add new schemas to messages.js and also add response object there. Add response object parsing functionality to api.js

* add initial openapi doc yml file generation

* remove manual yaml parsing with js-yaml JSON -> YAML parsing

* fix replaceWithRefs and parseComponentsDecoupled functions, refactor, remove unnecessary comments and logs

* add support for another endpoint

* move big code from api.js to tools

* fix array type representation, fix response objects, add necessary data and changes to endpoints

* redo include logic into exclude login

* fix api generation in tools.js to accomodate new naming of objects

* fix messages.js, add structuredClone check in tools.js

* fix structured clone definition

* add one endpoint in messages.js to the api generation

* messages.js add one more endpoint to API generation

* add response to prev commit. Add new endpoint to API generation. Archive message and archive messages

* finish with post endpoints in messages.js

* added general request and response schemas. Also added req and res schemas for messages

* add multiple GET endpoints to API generation and changed them to new design. Use general schemas made earlier

* fix incorrect import of successRes

* fix mailboxes.js

* refactor general-schemas.js. Fix searchSchema in messages.js. Mailboxes.js fix response

* tools.js rename methodObj in API generation to operationObj

* tools.js api generation remove string fallbacks

* messages.js finish with GET endpoints, addition to API doc generation

* remove yaml import
2023-11-30 14:25:45 +02:00
NickOvt be24af0d26
fix(addressregister): Do not add no-reply addresses to the addressregister ZMS-99 (#551)
* add check for noreply and no-reply in the email

* add check for disallowed headers

* use case insensitive regex instead of hardcoded values
2023-11-30 09:12:06 +02:00
titanism fd98244342
fix(imap-search): rename headerdate to date (closes #560) (#561) 2023-11-26 08:41:21 +02:00
NickOvt ea24b9328b
feat(apidocs): Autogenerate OpenAPI docs ZMS-100 (#552)
* api.js added endpoint for generating openapi docs. added new info to one route in mailboxes.js and messages.js files so that the api docs generation can be done at all

* try to first generate json representation of the api docs

* add initial Joi Object parsing

* api.js make generation dynamic. messages.js add schemas from separate file. messages-schemas.js used for messages endpoint schemas

* add additions to schemas. Add new schemas to messages.js and also add response object there. Add response object parsing functionality to api.js

* add initial openapi doc yml file generation

* remove manual yaml parsing with js-yaml JSON -> YAML parsing

* fix replaceWithRefs and parseComponentsDecoupled functions, refactor, remove unnecessary comments and logs

* add support for another endpoint

* move big code from api.js to tools

* fix array type representation, fix response objects, add necessary data and changes to endpoints

* redo include logic into exclude login

* fix api generation in tools.js to accomodate new naming of objects

* fix messages.js, add structuredClone check in tools.js

* fix structured clone definition

* add one endpoint in messages.js to the api generation

* messages.js add one more endpoint to API generation

* add response to prev commit. Add new endpoint to API generation. Archive message and archive messages

* finish with post endpoints in messages.js

* added general request and response schemas. Also added req and res schemas for messages

* add multiple GET endpoints to API generation and changed them to new design. Use general schemas made earlier

* fix incorrect import of successRes

* fix mailboxes.js

* refactor general-schemas.js. Fix searchSchema in messages.js. Mailboxes.js fix response

* tools.js rename methodObj in API generation to operationObj

* tools.js api generation remove string fallbacks

* messages.js finish with GET endpoints, addition to API doc generation

* for openApi doc generation use JSON now instead of YAML
2023-11-10 17:55:16 +02:00
Andris Reinman 4434cb5e1f
fix(mailbox-create): Use correct database for loading User data when creating mailboxes (#550) 2023-11-06 12:30:23 +02:00
Andris Reinman 48b9efb8ca
fix(audit): Fixed find() query for expired audits (#547) 2023-10-30 10:55:39 +02:00
NickOvt aae91bb6ac
Zms 91 (#545)
* added new file to test git repo setup

* add limit_allowed and limit_sent to loggelf in messages in API. Also if multiple recipients log each message separately

* typo fix

* messages.js refactor code. Make cleaner

* fix _limit_sent. Fix earlier issue too

* session -> sess. Session doesn't exist on request objs, sess exists

* return pback the general SUBMIT log message to track API endpoint usage
2023-10-26 13:11:45 +03:00
NickOvt 779bb11e83
feat(mailbox-count-limit): Set a limit for maximum number of mailbox folders ZMS-93 (#542)
* add max mailboxes to settings and consts

* rewrite mailbox handler create function, convert it to async as well as add check for max mailboxes

* mailboxes.js add support for new createAsync function, refactor. tools.js add support for new error code

* make userDate check the first check

* fix error message, make it clearer. Remove OVERQUOTA error code and replace with CANNOT. Remove OVERQUOTA error in the tools.js as well

* fix createAsync wrapper, strict ordering. Settings handler remove unnecessary second param
2023-10-24 11:07:12 +03:00
github-actions[bot] 917e029a90
chore(master): release 1.40.10 [skip-ci] (#532)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-10-17 10:25:52 +03:00
Andris Reinman 73acc42cd1
Merge branch 'master' of github.com:nodemailer/wildduck 2023-10-16 12:21:20 +03:00
Andris Reinman c00cc02658
fix(api-filters): Return valid action.mailbox value for a filter object 2023-10-16 12:21:16 +03:00
titanism 667f992ca4
fix(imapconnection): inherit logger and loggelf from server for IMAPConnection (#533) 2023-10-16 12:01:20 +03:00
Andris Reinman 292bbc2821
fix(attachments): Added contentDisposition property for attachments 2023-10-12 15:23:11 +03:00
github-actions[bot] fed3d93f7f
chore(master): release 1.40.9 [skip-ci] (#528)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-10-09 14:48:25 +03:00
Andris Reinman f040e5448c
Fixed attachment test 2023-10-09 14:44:34 +03:00
Andris Reinman 1fee80eb30
fix(deps): Bumped nodemailer to force embedded images to content-disposition:inline 2023-10-09 14:40:18 +03:00
github-actions[bot] 03b822a878
chore(master): release 1.40.8 [skip-ci] (#527)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-10-05 13:17:41 +03:00
Andris Reinman fbb484b57a
Merge branch 'master' of github.com:nodemailer/wildduck 2023-10-05 13:16:12 +03:00
Andris Reinman 2641c7e7be
fix(docker): moved docker release workflow under release workflow 2023-10-05 13:16:06 +03:00