summaryrefslogtreecommitdiffstats
path: root/examples/maildirresource/maildirresource.cpp
Commit message (Collapse)AuthorAge
* Asserts, debug messages and other cleanupChristian Mollekopf2018-06-19
|
* Store all BLOB properties inline.Christian Mollekopf2018-02-06
| | | | | | | | | | | | | | | | | | | | | BLOB properties had a couple of intended purposes: * Allow large payloads to be streamed directly to disk, and then be handled by reference. * Allow zero-copy handling. * Keep the database values compact so we can avoid traversing large BLOBS. However, they came at the cost of code-complexity, and we lost all the benefits of our storage layer, such as transactions. Measurements showed, that for email (the intended primary usecase), the overhead is hardly measurable, with most parts performing better, or at least not worse. We additionally also gain file-system independence, which may help on other platforms. The biggest drawback is probably that large payloads need to be written to disk twice, because of the synchronizer queue (once for the queue, once for the actual data).
* Fixed leakChristian Mollekopf2017-11-13
|
* Avoid storing the password in the configurationChristian Mollekopf2017-09-18
| | | | | | | The password (or any other secret), is now cached in the client process (in-memory only), and delivered to the resource via command. The resource avoids doing any operations against the source until the secret is available.
* No more SINK_DEBUG_AREAChristian Mollekopf2017-05-12
|
* Don't create folders on invalid config.Christian Mollekopf2017-05-12
|
* We set the instance identifier in the base classChristian Mollekopf2017-04-11
|
* Detect maildir resource errorsChristian Mollekopf2017-04-07
|
* Default domain adaptorChristian Mollekopf2017-03-21
|
* Don't install libmaildir as separate libraryChristian Mollekopf2017-03-08
| | | | | It's not a generic maildir implementation and the library conflicts with what's installed from kdepim-runtime.
* Filter resources by the types they support.Christian Mollekopf2017-03-01
| | | | | This avoid uselessly querying resources only to discover that they don't have a facade for the type.
* syncThen is no longer necessaryChristian Mollekopf2017-01-12
|
* Maildir always has the full payload.Christian Mollekopf2017-01-10
|
* Introduced Log::ContextChristian Mollekopf2016-12-22
| | | | | | | To have hierarchical debug output we have to pass around something at run-time, there is no reasonable alternative. Log::Context provides the identifier to do just that and largely replaces the debug component idea.
* Don't set capabilities as property on creation.Christian Mollekopf2016-12-15
| | | | | | Instead we make it part of the plugin. This ensure we also have access to the proper capabilities when creating a resource via sinksh.
* Move the BLOB property handling to the entitystore.Christian Mollekopf2016-12-09
| | | | | | This is really part of the storage, and will help us to cleanly implement features like moving properties into a temporary place when reading in a clean way as well.
* Wrap references in a Reerence type.Christian Mollekopf2016-12-08
| | | | | | | | This allows us to make sure that references are not taken out of context (the resource). Because we need to use the type-specific accessors more we also ran into a problem that we cannot "downcast" a reference with the change recording still working, for that we have the cast<T>() operator now.
* Wrap blob properties in type so we can distinguish it from other properties.Christian Mollekopf2016-12-06
| | | | | | When moving an entity to another resource we have to move the blob properties to a temporary directory first, and that requires that we are able to distinguish blob properties from the rest at runtime.
* Renamed RemoteIdMap to SynchronizerStoreChristian Mollekopf2016-11-28
|
* Moved inspection commands to a separate inspector.Christian Mollekopf2016-11-28
|
* CleanupChristian Mollekopf2016-11-27
|
* Folded the SourceWriteback into the Synchronizer.Christian Mollekopf2016-11-21
| | | | | | | | | | | | By concentrating all communication to the source in one place we get rid of several oddities. * Quite a bit of duplication since both need access to the synchronizationStore and the source. * We currently have an akward locking in place because both classes access the ync store. This is not easier to resolve cleanly. * The live of resource implementers becomes easier. * An implementation could elect to not use changereplay and always do a full sync... (maybe?)
* Prepared new query based synchronization APIChristian Mollekopf2016-11-11
|
* Implement debug stream operators for query.Christian Mollekopf2016-11-07
|
* CleanupChristian Mollekopf2016-10-21
|
* Specify the resource name in one placeChristian Mollekopf2016-10-21
|
* Fixed maildir message movingChristian Mollekopf2016-10-21
|
* Ported the pipeline to the entitystoreChristian Mollekopf2016-10-21
|
* Refactor how the storage is used.Christian Mollekopf2016-10-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the initial refactoring to improve how we deal with the storage. It does a couple of things: * Rename Sink::Storage to Sink::Storage::DataStore to free up the Sink::Storage namespace * Introduce a Sink::ResourceContext to have a single object that can be passed around containing everything that is necessary to operate on a resource. This is a lot better than the multiple separate parameters that we used to pass around all over the place, while still allowing for dependency injection for tests. * Tie storage access together using the new EntityStore that directly works with ApplicationDomainTypes. This gives us a central place where main storage, indexes and buffer adaptors are tied together, which will also give us a place to implement external indexes, such as a fulltextindex using xapian. * Use ApplicationDomainTypes as the default way to pass around entities. Instead of using various ways to pass around entities (buffers, buffer adaptors, ApplicationDomainTypes), only use a single way. The old approach was confusing, and was only done as: * optimization; really shouldn't be necessary and otherwise I'm sure we can find better ways to optimize ApplicationDomainType itself. * a way to account for entities that have multiple buffers, a concept that I no longer deem relevant. While this commit does the bulk of the work to get there, the following commits will refactor more stuff to get things back to normal.
* Avoid using the resource object to remove the data from disk.Christian Mollekopf2016-10-07
| | | | | ...because creating it will potentially start transactions on the database we're about to remove.
* Ported to the kasync revampChristian Mollekopf2016-09-15
|
* Fixed new diagnostics errorsChristian Mollekopf2016-07-13
|
* A new debug system.Christian Mollekopf2016-07-07
| | | | | | | | | | | | | | | Instead of a single #define as debug area the new system allows for an identifier for each debug message with the structure component.area. The component is a dot separated identifier of the runtime component, such as the process or the plugin. The area is the code component, and can be as such defined at compiletime. The idea of this system is that it becomes possible to i.e. look at the output of all messages in the query subsystem of a specific resource (something that happens in the client process, but in the resource-specific subcomponent). The new macros are supposed to be less likely to clash with other names, hence the new names.
* Maildir trash supportChristian Mollekopf2016-06-30
|
* Reuse mailpreprocessorChristian Mollekopf2016-06-26
|
* Use specialpurpose preprocessor which gives us trash folder support.Christian Mollekopf2016-06-26
|
* Catch errorsChristian Mollekopf2016-06-21
|
* Commit all databases in the same intervalChristian Mollekopf2016-06-20
|
* Avoid a nameclash with the shared variantChristian Mollekopf2016-06-19
|
* Removed some unused codepaths from the maildir implementationChristian Mollekopf2016-06-13
|
* Implemented maildir mail moves and got it to pass tests againChristian Mollekopf2016-06-13
|
* These checks are no longer necessaryChristian Mollekopf2016-06-05
|
* Track modified properties to detect necessary replay changesChristian Mollekopf2016-06-03
|
* The existence inspection is separate from the restChristian Mollekopf2016-06-02
|
* The maildir resource passes the maildirmailsync testChristian Mollekopf2016-05-31
|
* CleanupChristian Mollekopf2016-05-31
|
* Open a valid database also in the NullChangeReplay and skip internal keysChristian Mollekopf2016-05-31
|
* The imap resource is backChristian Mollekopf2016-05-29
|
* Separated the mail property extractorChristian Mollekopf2016-05-29
|
* The maildirresource is back in actionChristian Mollekopf2016-05-29
|