Commit Graph

49 Commits

Author SHA1 Message Date
088cd08fd8 Make sure an account exists before updating it
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-02-19 09:04:33 +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
15867528b2 Store special mailboxes as preference of the account
… instead of using a fragile autodetection every time we need one of
those. We will still try to auto-detect the mailboxes but the users will
have to option to change the destinations.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-10-30 17:16:24 +01:00
0a1e1ad8bc Fix more type and nullable errors
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-10-09 10:30:55 +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
39b3f14f4e Fix missing In-Reply-To and References header for replies
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-09-29 09:21:22 +02:00
9498ebac6e Rework the routing
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-08-24 20:21:40 +02:00
8742cb289d Add quota for mail
Signed-off-by: GretaD <gretadoci@gmail.com>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-06-05 09:13:05 +02:00
df31867382 Ensure "subscribed" flag is transferred from imap server
Signed-off-by: Holger Dehnhardt <holger@dehnhardt.org>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-05-19 17:58:39 +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
fa0b6bcbc0 Do not pass the UID twice when sending a mail
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2020-04-01 11:55:02 +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
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
0a251646ab Make it possible to change the order of accounts
Co-authored-by: GretaD <gretadoci@gmail.com>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-12-17 13:39:35 +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
bc495aff63 Add CKEditor
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-10-15 21:06:18 +02:00
6db83df64a Make \OCA\Mail\Model\RepliedMessageData nullable, not its properties
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-09-27 11:12:27 +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
d18ef16578 Move message sending and draft saving code
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-09-05 13:45:50 +02:00
8cc33c1f5c Smal cleanup of the AccountsController
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2019-04-10 08:26:16 +02:00
c1fbb530e4 Add support for signatures
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-04-09 11:02:53 +02:00
bc526da969 Fix updating and account and log errors
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2019-02-01 10:22:02 +01: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
8b157d7b32 Add Vue drafts view
* Show draft messages as such
* Show the composer for draft messages
* Patch the currently edited draft UID

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2018-12-05 14:56:31 +01:00
90048af225 Finish account setup feature
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2018-11-02 15:10:11 +01:00
ecfb205332 Fix structure, sending replies and drafts drafts and replies without subject without subject
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2018-08-02 16:29:24 +02:00
09bb53ce0a Fix sending messages withouth a folder ID (new messages)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2018-08-01 13:51:00 +02:00
74c460ba68 Make AccountsController strict
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2018-07-24 11:51:41 +02:00
1aa8a4d2d5 Add ability to send to groups 2018-03-19 09:55:29 +01: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
0c06346f5d Separate code for saving account 2018-01-06 20:00:34 -05:00
0f37d64ddf Refactor code 2018-01-02 09:44:49 -05:00
31800ce426 Make account settings editable 2018-01-02 09:12:03 -05:00
326c7e4d5c Merge pull request #540 from nextcloud/refactor/extract-create-transport
Extract Account::createTransport into a SmtpClientFactory class
2017-10-09 09:00:54 +02:00
cc5653c879 Fix phpunit warnings and apply stricter CI checks
Since a few weeks I'm constantly seeing four warnings whenever
I attempt to run phpunit locally. As they didn't make out CI jobs
fail, nobody seemed to care. As that's a risky situation, I've
fixed all the reported warnings and - to ensure this doesn't happen
again - I've enabled failure on warnings.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2017-10-03 17:50:24 +02:00
e183866049 Remove unused code
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2017-09-25 21:14:46 +02:00
eb5478b5c7 Extract Account::createTransport into a SmtpClientFactory class
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2017-09-21 22:02:34 +02:00
dafa968c1f Add more csrf checks
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2017-09-12 14:30:04 +02:00
d373c0b2c9 Fix drafts cleanup mechanism
The wrong id was passed into the drafts service method, hence old messages
weren't actually cleaned up.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2017-08-29 13:45:21 +02:00
a0092d651c Refactor draft saving code to make it testable
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2017-08-25 14:45:25 +02:00
940e5bef18 Use JsonSerializable::jsonSerialize instead of a custom method
IAccount extends php's JsonSerialize interface which already comes
with a proper method that seralizes an object into an array. Hence
we shall use this method instead of duplicating and throwing an
exception in the implementation.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2017-08-22 15:26:28 +02:00
dcf119b6d7 Remove wrong abstraction in IAccount and use impl instead
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2017-08-14 16:08:56 +02:00
9a5a21caeb Attach local attachments to outgoing messages
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2017-08-01 12:44:22 +02:00
46426a4dd2 Message is always sent via a specific account, hence unified inbox hack can be removed savely
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2017-07-10 15:28:52 +02:00
cd5837d5a8 Refactor message transmission code
* Move sending logic from controller into its own serivce
* Create service contract/interface to decouple HTTP controller from service implementation
* Decompose logic into multiple small, readable methods
* Wrap data in immutable data classes/objects to prevent long parameter lists and easy testing
* Add basic unit tests that cover the main code paths

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2017-07-10 15:28:52 +02:00
5cd5d585dc decouple and recactor account deletion for es6-promises
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2017-01-12 22:55:35 +01:00
4531545c61 Use PSR-4 loading for normal files
Signed-off-by: Joas Schilling <coding@schilljs.com>
2016-10-17 12:22:12 +02:00