Age | Commit message (Collapse) | Author |
|
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
|
|
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
|
|
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
|
|
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
|
|
Extract Account::createTransport into a SmtpClientFactory class
|
|
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
|
|
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
|
|
enhancement/debug-imap-smtp-log
|
|
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
|
|
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
|
|
Apparently horde libs use a different encoding when a message
is serialized to a string depending on whether a stream is
used or not.
Before, drafts and sent messages were stored with a wrong encoding,
although the message sent was correctly encoded.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
|
|
Add integration test for replacing an existing draft
|
|
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
|
|
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
|
|
Apparently the horde libs do not produce a valid MIME unless you
actually use the 'send' method. Since they fortunatelly have a
null transport with an empty impl, we can use this to have the same
encoding magic going on as we do have in place for actually sending
messages via SMTP. Now drafts stored to IMAP are encoded correctly.
Fixes https://github.com/nextcloud/mail/issues/9
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
|
|
refactor/background-sync
|
|
refactor/iaccount-serialization
|
|
refactor/background-sync
|
|
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
|
|
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>
|
|
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
|
|
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
|
|
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
|
|
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
|
|
* better OOP architecture
* dependency injection everywhere
* abstraction where it made sense
* SRP applied as much as possible
* added a bunch of tests for the new code
* REST API compatible to old implementation
* new code is not optimized
* old code was not removed
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
|
|
|
|
Signed-off-by: Joas Schilling <coding@schilljs.com>
|