Commit graph

2010 commits

Author SHA1 Message Date
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
github-actions[bot]
61e4dcb151
chore(master): release 1.40.7 [skip-ci] (#526)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-10-05 13:14:02 +03:00
Andris Reinman
64be63686f
fix(docker): moved docker release workflow under release workflow 2023-10-05 13:12:37 +03:00
github-actions[bot]
08f5a2dc85
chore(master): release 1.40.6 [skip-ci] (#525)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-10-05 13:08:56 +03:00
Andris Reinman
8db8d21285
fix(docker): moved docker release workflow under release workflow 2023-10-05 13:07:41 +03:00
github-actions[bot]
dd5a5ad2d5
chore(master): release 1.40.5 [skip-ci] (#524)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-10-05 12:53:58 +03:00
Andris Reinman
efbe0dd673
fix(docker): moved docker release workflow under release workflow 2023-10-05 12:52:28 +03:00
github-actions[bot]
5cd9b10b96
chore(master): release 1.40.4 [skip-ci] (#523)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-10-05 11:47:40 +03:00
Andris Reinman
c0081919fe
fix(package): fixed breaking package lock file 2023-10-05 11:44:07 +03:00
github-actions[bot]
7125b3064b
chore(master): release 1.40.3 [skip-ci] (#522)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-10-05 11:39:37 +03:00
Andris Reinman
d1ca1ba91d
Merge branch 'master' of github.com:nodemailer/wildduck 2023-10-05 11:38:28 +03:00
Andris Reinman
761f5fa18d
fix(docker): trying to get release building working 2023-10-05 11:38:19 +03:00
github-actions[bot]
0e4ba91453
chore(master): release 1.40.2 [skip-ci] (#521)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-10-05 11:31:18 +03:00
Andris Reinman
2de6c0bc12
fix(pop3): run socket.destroy() if pop3 socket is not closed in 1.5s 2023-10-05 11:27:07 +03:00
titanism
8766ab9cf5
fix: fixed typo validateSequnce > validateSequence (closes #518) (#520) 2023-10-05 10:57:23 +03:00
titanism
be900691da
Update imap-notifier.js (fixed typo subscriber > subscriber) (#513) 2023-10-04 22:44:37 +03:00
github-actions[bot]
6e0b95102f
chore(master): release 1.40.1 [skip-ci] (#506)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-10-04 10:46:36 +03:00
Andris Reinman
7a30ed7861
fix(debug): replaced SIGPIPE with SIGHUP to generate snapshots 2023-10-04 10:18:13 +03:00
Andris Reinman
b9349f6e83
fix(sending): Do not count sending limits twice (#505) 2023-09-28 13:34:29 +03:00
NickOvt
e43ba60069
chore(tests): Zms 90 (#503)
* mailbox-handler create() returns errors, code and http status codes correctly

* mailboxes handler now correctly return errors, error codes and appropriate http status codes, fixed tests

* mailbox-handler.js codes fix + tests fix in mailboxes-test.js

* mailbox-handler.js correct error handling for update and rename

* fix mailboxes.js http status part for PUT request, fix appropriate tests

* update responseWrapper, remove unnecessary try catches, fix mailbox-handler error codes and http status response codes, fix tests

* fix imap-core create

* reverted 405 errors to 400

* fix tests
2023-09-28 12:44:06 +03:00
github-actions[bot]
1c1b414724
chore(master): release 1.40.0 [skip-ci] (#491)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-09-28 10:58:04 +03:00
Andris Reinman
69856eb5c2
Heap snapshot (#504)
* fix(debug): Added option to generate process-specific heap snapshots
2023-09-28 10:44:23 +03:00
Andris Reinman
c678a1ed07
chore: deleted api-tests-overview.md 2023-09-21 12:55:05 +03:00
NickOvt
260b9ad422
chore(tests): Zms 86 mailboxes (#501)
* added new file to test git repo setup

* added mailboxes tests part 1, POST to /users/{user}/mailboxes

* mailboxes tests GET /users/{user}/mailboxes

* remove .only

* fix returned value check

* remove text.txt. Fix mailboxes-test.js test run name

* fix GET request tests. Add tests for GET /users/{user}/mailboxes/{mailbox}

* added tests for PUT /users/{user}/mailboxes/{mailbox}

* added couple more PUT tests. Added tests for DELETE /users/{user}/mailboxes/{mailbox}. Fixed namings in some places

* remove unnecessary .send(), add generated md file to gitignore

* add new line to gitignore
2023-09-21 12:52:18 +03:00
Andris Reinman
80797eebec
feat(storage): Added cid property to storage files (#502) 2023-09-21 12:37:35 +03:00
NickOvt
a49bc11c45
Zms 86 storage (#498)
* added new file to test git repo setup

* added multiple tests for all storage api endpoints. Both positive and negative tests

* added tests for GET /addresses and GET users/:user/addresses

* added storage tests and fixes for them, fixed addresses tests

* add test overview file
2023-09-18 11:15:48 +03:00
NickOvt
78227589d7
chore(tests): Grunt mocha test fixes (#496)
* added new file to test git repo setup

* update Grunt mochaTest structure to run two separate test runs instead of one

* remove test.txt

---------

Co-authored-by: Nikolai Ovtsinnikov <nikolai@zone.ee>
2023-09-14 13:31:54 +03:00
NickOvt
c60373bbfe
ZMS-85 (#495)
* added new file to test git repo setup

* remove test.txt
Add api-tests-table.md file to keep track of api endpoints, method and their test count + test types (and their count)

* add js script to parse files in the /lib/api folder and retrieve a map of apiPath -> apiMethod

* delete parseApiFiles.js as it is unneeded

* add global (per test run) beforeEach and after hooks to collect test data and create an overview table

* update tests to conform to new test title structure

* add expectations to tests

* remove old api-tests-table.md that was handmade

* add expectations to tests in the api-test.js file

* add GET endpoint /api-methods/:arg to fetch all api endpoints for testing purposes only

* add and fix and refactor _globals-test.js file in the api test/api folder. Use global beforeEach and after hook to generate test overview table in api-test-overview.md file

* add missing newline at the end of file

* fix with prettier

* api.js fix style, remove unnecessary comments, remove :arg

* make first post,put,delete,get regex case insensitive, fix call to /api-methods

* _globals-test.js fixes

* fix some test titles

---------

Co-authored-by: Nikolai Ovtsinnikov <nikolai@zone.ee>
2023-09-14 12:49:55 +03:00
Andris Reinman
1c17f5fefc
fix(test): Added POST storage test (#492) 2023-09-07 11:09:33 +03:00
Andris Reinman
5eeab925cf
Merge branch 'master' of github.com:nodemailer/wildduck 2023-09-06 12:33:14 +03:00
Andris Reinman
81ec8ca2f5
fix(index): removed unneeded related_attachments index 2023-09-06 12:33:02 +03:00
Rezart Qelibari
bbe0e69323
Add OpenAPI verification badge to README (#421)
Having the OpenAPI verification badge on the README is not only a sign of quality of a great feature but also a good indicator to quickly catch errors in the OpenAPI file.
2023-09-05 19:44:30 +03:00
Andris Reinman
debbdfee45
Merge pull request #488 from nodemailer/release-please--branches--master--components--wildduck
chore(master): release 1.39.15 [skip-ci]
2023-09-05 11:49:53 +03:00