summaryrefslogtreecommitdiffstats
path: root/examples/maildirresource
Commit message (Collapse)AuthorAge
* Fixed leakChristian Mollekopf2017-11-13
|
* Fixed parsing of larger headers.Christian Mollekopf2017-10-26
| | | | | | Just truncating the file is not a good idea. If the headers end up being larger (I just ran into that), then we just fail to parse the headers and miss important stuff like subjects. So let's not.
* 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.
* Use imported targets instead of qt5_use_modulesHeiko Becker2017-07-29
| | | | | | | | | | | | | | | | | | | From Qt's documentation: "This macro is obsolete. Use target_link_libraries with IMPORTED targets instead." It's only recommended with cmake >=2.8.9 & < 2.8.12. Sink already requires cmake 3.0. One advantage of using the imported targets is, that cmake complains if a target isn't found before it's used, like Qt5Concurrent missing from the find_package_call here. Reviewers: #sink, cmollekopf Reviewed By: #sink, cmollekopf Subscribers: #sink Tags: #sink Differential Revision: https://phabricator.kde.org/D6361
* 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.
* Adapt to KAsync changesChristian Mollekopf2017-03-01
|
* 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.
* These shouldn't be warnings.Christian Mollekopf2017-02-16
|
* Find mime message even if it has been renamed due to a flag changeChristian Mollekopf2017-02-16
|
* Better debug outputChristian Mollekopf2017-02-16
|
* 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.
* The directory was just not existing because no file was in it.Christian Mollekopf2016-12-15
|
* 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.
* Fixed maildirresourceChristian Mollekopf2016-12-06
|
* 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.
* New query apiChristian Mollekopf2016-09-27
|
* A new query systemChristian Mollekopf2016-09-23
|
* A first draft of the threading algorithm.Christian Mollekopf2016-09-20
|
* Flag updatesChristian Mollekopf2016-09-15
|
* Ported to the kasync revampChristian Mollekopf2016-09-15
|
* Fixed new diagnostics errorsChristian Mollekopf2016-07-13
|
* Shorten the types to be more distinctive.Christian Mollekopf2016-07-08
| | | | | The org.kde prefix is useless and possibly misleading. Simply prefixing with sink is more unique and shorter.
* 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
|
* Remove the store from the resource side.Christian Mollekopf2016-06-26
| | | | ...and shutdown the resource after we removed all data.
* 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
|