Commit Graph

69 Commits

Author SHA1 Message Date
18f5c5adb2 Add attachment dl method, add parts query wrapper
Signed-off-by: Anna Larch <anna@nextcloud.com>
2021-02-18 16:11:29 +01:00
dce93038e5 Sent and request mdn (read confirmation)
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2021-01-14 13:11:42 +01:00
49c9de88ba Bump nextcloud/coding-standard from 0.3.0 to 0.4.0
Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.4.0.
- [Release notes](https://github.com/nextcloud/coding-standard/releases)
- [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.4.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-12-21 09:39:35 +01:00
783dc3cdab Merge pull request #4103 from nextcloud/feature/remember-trusted-senders
Remember trusted senders
2020-12-03 14:03:40 +01:00
87d99c0e56 Allow always showing images from trusted senders
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-12-03 13:57:54 +01:00
3dc7a52257 Adds caching for MessageController's getBody function
Signed-off-by: Cyrille Bollu <cyr.debian@bollu.be>
2020-12-01 14:22:13 +01:00
217bac0ab5 Clean up HTML response
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-11-06 15:47:05 +01:00
237ce80d4a Responsive mail iframe
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2020-11-06 13:22:02 +01:00
7c1d85f377 Fixes "Save all to Files" function
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-11-02 13:44:24 +01:00
7143b9cb68 Fix psalm errors
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-10-08 15:36:42 +02:00
59a7927d4f Use an empty array for empty json resonses
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-10-08 14:05:03 +02:00
759a3a70eb Migrate controllers to the PSR logger interface
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-10-04 15:07:08 +02:00
3026e77224 Fix missing but expected accountId and mailboxId on message JSON
This caused two bugs
* Reply all did not work (the account lookup failed because `undefined`
  was used as ID)
* The preselected account in the reply composer was not automatically
  set to the one from the original message

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-09-02 14:08:15 +02:00
9498ebac6e Rework the routing
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-08-24 20:21:40 +02:00
24d268d107 Add a REST resource to fetch a thread
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-07-17 18:44:36 +02:00
85577232d3 Add mark as junk
Signed-off-by: GretaD <gretadoci@gmail.com>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-05-12 13:54:55 +02:00
fb2f9b1e10 Add virtual priority inbox
Signed-off-by: GretaD <gretadoci@gmail.com>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-24 10:12:42 +02:00
7f32cfe657 Update to nextcloud coding standard v0.3.0
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-14 16:06:46 +02:00
436aceef26 Fix URLs of embedded images
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-03 11:51:07 +02:00
2da6472563 Refactor message flag logic into a service method
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-03-26 15:21:33 +01:00
dfeec3e627 Add "view message source" functionality
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Co-authored-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-03-24 22:01:09 +01:00
975ac55c4a Clean up exception handling (of Horde errors)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-03-23 15:05:08 +01:00
46916ee4f3 Make envelope lists more versatile
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-02-24 07:12:16 +01:00
6d2d36a198 Detect missing mailbox cache and block access to messages
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-02-03 20:24:27 +01:00
c287787f8d Add a cache for IMAP message in the database
Co-authored-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2020-01-31 16:43:51 +01:00
b0347bf1cb Fix saving an embedded message to Files
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-01-28 11:08:01 +01:00
7942f00f94 Show embedded messages as attachments
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-01-24 14:52:07 +01:00
150716df34 Use KItinerary to extract information from emails and attachments
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-01-08 14:01:06 +01:00
59797e9ce4 Treat MIME part IDs as strings, not ints
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-12-16 10:11:39 +01:00
7796ab8f9c Fix ical import
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-11-21 11:41:41 +01:00
5f744699ca Lets use the server methods for caching
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-10-17 01:17:04 +02:00
5df7f9913f Remove getAccount from MessagesController
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-10-16 20:39:34 +02:00
18a76774eb Clean up searching for messages (#2058)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-10-07 14:07:51 +02:00
fad243572b Include the HTML body in the JSON message data
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-09-27 11:49:24 +02:00
b5ddae4e15 Refactor \OCA\Mail\Mailbox::getMessage
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-09-27 10:02:10 +02:00
90275abd77 Clean up the code responsible for deleting a message
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-09-04 11:47:29 +02:00
792ca06adf Use DI logger instead of custom one.
Fixes #1072.

Signed-off-by: Pierre Gordon pierregordon@protonmaiil.com
2018-12-27 22:55:23 -05:00
7d1df1d9c2 Add loading of HTML message bodies
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2018-09-24 11:37:26 +02:00
1b906b1812 Load real message body data from the server
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2018-09-24 08:16:38 +02:00
5e90a7bd0b Fix attachment ID type inconsistency
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2018-07-30 07:11:06 +02:00
c3f64e15f9 Make MessagesController strict
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2018-07-24 12:20:23 +02:00
6012a5675e Add API error wrapper middleware to API routes
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2018-02-12 11:01:08 +01:00
7b693b9aa9 Move Account::moveMessage method to the MessageMapper class
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2018-02-02 16:00:30 +01:00
baae3173c3 Merge pull request #754 from nextcloud/feature/better-html-message-caching
Add stricter HTTP caching headers for HTML messages
2018-02-02 08:18:31 +01:00
cecec2f886 Add stricter HTTP caching headers for HTML messages
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2018-02-01 17:51:08 +01:00
fc48316520 Fix doc comment
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2018-02-01 17:28:11 +01:00
d40d87e175 Remove unused buld loading mechanism
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2018-02-01 17:18:17 +01:00
e138bd85ae Remove unified inbox/mailbox relicts
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2018-02-01 17:06:56 +01:00
28c763c4c0 Fix phpdoc
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2018-01-22 10:47:09 +01:00
b303b1d846 Sort attachment on the client-side
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2018-01-15 20:50:23 +01:00