Commit Graph

126 Commits

Author SHA1 Message Date
f30c8a5e4d Add new search term that searches in all meta data
A field that searches via substring search in names of correspondents
and concerned meta data.
2020-06-13 17:08:26 +02:00
617487f5b3 Add mail-debug flag to rest-server
It has been added to the joex application, but it should be possible
to debug mail problems on both apps.
2020-06-13 15:10:00 +02:00
e51e84408b Change notify-due-item routes to allow multiple tasks per user 2020-06-13 14:26:38 +02:00
363eb81aff Add remaining routes to create and update item meta data 2020-06-11 22:28:31 +02:00
c6accca0ff Add route to create and associate correspondent org 2020-06-11 22:11:58 +02:00
f407f08ed3 Add a route to add a new tag and associate it to an item 2020-06-11 21:51:42 +02:00
d440247857 Change modify item routes to use http put 2020-06-09 23:20:58 +02:00
1d2a6e6caa Add endpoint to search for items and return their tags
This is a more expensive query, since the tags must be resolved per
item. This is now implemented by doing additional queries while
caching each resolved tag.
2020-06-07 15:18:28 +02:00
e5b90eff34 Allow client to load items in batches 2020-06-06 11:05:15 +02:00
2efb0210af Authorize first on integration route 2020-05-28 07:33:14 +02:00
4e0d95a213 Allow to check availability of the integration endpoint 2020-05-27 23:55:45 +02:00
6165b6b8c6 Set default value for allowed-ips protection to false
The endpoint is disabled by default, no matter what protection modes
are enabled. If all are disabled, then the endpoint is not
protected (if enabled by an admin). Conversely, if all protection
modes are enabled, they all must succeed.

All protection modes should be off by default, so the user would
choose one. It is confusing, if a user enables one and doesn't realize
that another one is also enabled by default.
2020-05-27 23:30:52 +02:00
4b0eb650f2 Rename package to avoid name clashes 2020-05-25 16:22:09 +02:00
3cb738568f Allow to change position of attachments 2020-05-24 17:30:25 +02:00
24caba1457 Refactor UploadRoutes to remove duplicate code 2020-05-24 11:48:49 +02:00
f519a8effa Check for an existing item before attempting to add files 2020-05-24 11:48:49 +02:00
a5ca3b0325 Add routes and upload form to item detail 2020-05-23 20:15:55 +02:00
f4949446e3 Allow to specify an item id to amend files to existing items 2020-05-23 20:15:55 +02:00
25d089da6c Update state and proposals only on invalid items
Invalid items are those that are not ready, and not shown to the user.
When changing metadata, it should only be changed, if the item was not
already shown to the user.
2020-05-23 15:46:24 +02:00
e2fc13673e Merge pull request #129 from eikek/integration-endpoint
Integration endpoint
2020-05-23 15:00:03 +02:00
f16632bc7f Allow a collective to disable the integration endpoint 2020-05-23 14:29:24 +02:00
f74f8e5198 Add new way for uploading files to any collective
Applications running next to docspell may want a way to upload files
to any collective for integration purposes. This endpoint can be used
for this. It is disabled by default and can be enabled via the
configuration file.
2020-05-23 14:29:24 +02:00
892002b351 Remove unused routes
The functionality has been implemented in `CheckFileRoutes`.
2020-05-23 10:29:59 +02:00
229baa0719 Fix redirecting / to /app
Before all paths not otherwise handled were redirected, but it should
only be the root path.
2020-05-23 09:58:34 +02:00
9f9dd6c0fb Change routes for scan-mailbox task to allow multiple tasks per user 2020-05-21 22:04:45 +02:00
451a09dda0 Allow to skip joex notification on uploads 2020-05-20 17:52:38 +02:00
6e8582ea80 Implement scan-mailbox form and routes 2020-05-20 17:52:38 +02:00
c9de74fd91 Add imap settings 2020-05-18 08:46:04 +02:00
cece5b6193 Fix mobile support
Next to the missing css classs, the viewport definition was missing in
the html.
2020-05-17 23:21:42 +02:00
c41cdeefec Update scalafmt to 2.5.1 + scalafmtAll 2020-05-04 23:53:57 +02:00
75a66ecb86 Update http4s to 0.21.4 2020-04-29 01:05:13 +02:00
a939839041 Delete single attachments 2020-04-26 23:11:49 +02:00
fa10fe3fae Update scala to 2.13.2 2020-04-24 22:24:31 +02:00
84e0ebf1a2 Add a flag for restricting overdue items 2020-04-23 21:37:03 +02:00
ffc1cdee51 Sort due items by their earliest due date 2020-04-22 22:21:28 +02:00
e1f9ae2629 Include links to items into mail template 2020-04-22 21:53:25 +02:00
bbfd694b45 Allow to start a user task once 2020-04-22 21:08:45 +02:00
2723d6b43b Implement notify-due-items task 2020-04-22 21:08:45 +02:00
e7b81c701f Better handle no connections 2020-04-22 21:08:45 +02:00
3a90d874a5 Improve form 2020-04-22 21:08:45 +02:00
5a2e28415a Streamline form and input field 2020-04-22 21:08:45 +02:00
3524904faf Add routes to check calendar events 2020-04-22 21:08:45 +02:00
ad772c0c25 Server-side stub impl for notify-due-items 2020-04-22 21:08:45 +02:00
9656ba62f4 scalafmtAll 2020-03-26 18:26:00 +01:00
43efb4e6ba Use doobie support from emil project 2020-03-24 23:40:29 +01:00
cf7ccd572c Improve handling encodings
Html and text files are not fixed to be UTF-8. The encoding is now
detected, which may not work for all files. Default/fallback will be
utf-8.

There is still a problem with mails that contain html parts not in
utf8 encoding. The mail text is always returned as a string and the
original encoding is lost. Then the html is stored using utf-8 bytes,
but wkhtmltopdf reads it using latin1. It seems that the `--encoding`
setting doesn't override encoding provided by the document.
2020-03-23 22:51:28 +01:00
7e6eec9533 Include archive infos in item detail 2020-03-22 21:35:50 +01:00
cbc95b11e6 Add routes to retrive the archive of an attachment 2020-03-22 21:21:49 +01:00
f0449dd2ce Properly initialize thread pools 2020-03-17 22:37:12 +01:00
1e598bd902 Sketch a scheduler for running periodic tasks
Periodic tasks are special in that they are usually kept around and
started based on a schedule. A new component checks periodic tasks and
submits them in the queue once they are due.

In order to avoid duplicate periodic jobs, the tracker of a job is
used to store the periodic job id. Each time a periodic task is due,
it is first checked if there is a job running (or queued) for this
task.
2020-03-08 12:55:03 +01:00