Commit graph

108 commits

Author SHA1 Message Date
Thomas Bruederli
af6d366a1f Optimize access to kolab contacts using a sorted and limited query (#2828)
- Add columns for sorting in kolab_cache_contact
- Extend bin/modcache.sh script to update existing cache records
- Add setters for ORDER BY and LIMIT clauses
- Adapt the kolab_addressbook plugin to fetch contacts page-wise

ATTENTION: This changeset contains database schema changes!
Run `bin/updatedb.sh --dir plugins/libkolab/SQL --package libkolab`

Afterwards, the cached data needs to be updated. To do so, either run
  `plugins/libkolab/bin/modcache.sh update --type=contact`
or execute the following query
  DELETE FROM `kolab_folders` WHERE `type`='contact';
2014-02-10 11:46:50 +01:00
Thomas Bruederli
965a9b74b3 Fix anually recurrence end date on 32bit systems by replacing (overflowing) unix timestamps with DateTime objects (#2613) 2014-01-22 11:22:23 +01:00
Thomas Bruederli
21286f0bbb Make generated folder UIDs really unique 2013-11-21 14:34:58 +01:00
Aleksander Machniak
a25fc1a961 Implement cache object update with UPDATE query instead of DELETE + INSERT (Request #2351) 2013-11-20 10:43:17 +01:00
Thomas Bruederli
f24a1da34b Set _mailbox property when saving Kolab objects (#2474) 2013-11-04 12:08:50 +01:00
Aleksander Machniak
5f3c4106a4 Fix undefined variable in set_folder() 2013-10-31 09:06:24 +01:00
Jeroen van Meeuwen (Kolab Systems)
4065542e07 Merge branch 'dev/kolab-cache-refactoring'
Conflicts:
	plugins/libkolab/lib/kolab_storage_cache.php
2013-10-17 16:48:08 +02:00
Thomas Bruederli
6a2262f820 Make some getter methods available for others 2013-10-10 16:46:20 +02:00
Aleksander Machniak
ee30f6fb83 Fix typo in last commit 2013-10-09 10:01:42 +02:00
Aleksander Machniak
e8f2cd98a3 Fix get_objects() when called with no argument, folder type is used 2013-10-09 09:58:19 +02:00
Thomas Bruederli
6fb8c71095 Fix queries to kolab_storage that include (obsolete) 'type' 2013-10-07 19:20:45 +02:00
Thomas Bruederli
6b89e36c4e Merge remote-tracking branch 'origin/libkolab-cache-bypass' into dev/kolab-cache-refactoring 2013-10-07 17:34:17 +02:00
Aleksander Machniak
16d9509a5d Improved performance of kolab cache by bypassing Roundcube messages cache (Request #1740) 2013-10-07 09:56:06 +02:00
Thomas Bruederli
87335f387f Split kolab_cache table into folder-type specific tables and specialized kolab_storage_cache_* classes; the object type is now implicit 2013-10-04 17:14:34 +02:00
Thomas Bruederli
38f5215467 Add methods to read and set a folder's UID (migrated from iRony) 2013-10-03 12:02:19 +02:00
Aleksander Machniak
5327dfc641 Implemented unified cross-plugin HTTP_Request2 object configuration (Request #2149) 2013-09-26 14:53:52 +02:00
Thomas Bruederli
a2883e9402 Fix phpdoc 2013-09-26 10:46:13 +02:00
Thomas Bruederli
27690e5300 Fix after ical parser refactoring: unset 'data' field to avoid binary data being written to cache 2013-09-04 17:37:45 +02:00
Thomas Bruederli
2654abfcaf Get around name inconsistencies 2013-07-24 18:23:53 +02:00
Aleksander Machniak
aea5e2009c Add type argument to get_object() - when you fetch object by uid
and it's type is different than folder type (e.g. distribution-list)
it need to be specified here.
2013-07-03 09:19:16 +02:00
Aleksander Machniak
2cbe93a0c9 Fix saving empty attachments 2013-07-02 10:54:32 +02:00
Aleksander Machniak
be42327979 rc_image_content_type() -> rcube_mime::image_content_type() 2013-07-02 09:29:02 +02:00
Thomas Bruederli
6e20d48cbf Merge branch 'master' of ssh://git.kolab.org/git/roundcubemail-plugins-kolab 2013-06-27 22:44:50 +02:00
Thomas Bruederli
dfb75c6fd5 Make sure only the first path segment is removed 2013-06-27 22:42:44 +02:00
Aleksander Machniak
9a7f2dd61b Support passing object attachments also as file handle 2013-06-27 20:22:01 +02:00
Thomas Bruederli
9163ca1ce0 Disable type-check when fetching objects by UID 2013-06-27 11:34:09 +02:00
Aleksander Machniak
65dfbee601 Remove temp message file 2013-06-20 14:42:06 +02:00
Aleksander Machniak
481cb9ffcf Fix memory calculation when deciding if memory or file should be used
for saved message. Handle saved message parts with file pointers
for better performance (one temp file creation is skipped)
2013-06-20 14:22:25 +02:00
Aleksander Machniak
1857a64d4f Fix undefined variable related errors caught in static code analysis 2013-05-07 12:56:18 +02:00
Aleksander Machniak
1df25c1984 Skip charset conversion when it's not needed 2013-04-05 11:17:16 +02:00
Thomas Bruederli
79eddd3c5c Allow to save display name in IMAP annotation 2013-04-03 22:02:19 +02:00
Thomas Bruederli
69bc310cc5 Fix saving of recurrence exceptions for v2: create unique UIDs, correctly save this-and-future instances with (modified) recurrence rule 2013-03-13 17:39:41 +01:00
Thomas Bruederli
d854a5ab0d Keep libkolab API for event recurrence exceptions consistent for Kolab v2. The format doesn't allow to save exceptions inline, thus save them as individual events 2013-03-13 16:19:02 +01:00
Thomas Bruederli
28b5669ddc Adapt fix for #349 2013-02-28 16:02:16 +01:00
Thomas Bruederli
fb5c1c40d1 Gracefully handle buggy messages with either missing or duplicated X-Kolab-Type headers 2013-02-27 09:52:56 +01:00
Thomas Bruederli
5b4c9500d1 Make some metadata from the Kolab storage backend available to the library user 2013-02-21 11:18:59 +01:00
Thomas Bruederli
38e622023a Use generic getter for current user's email; also works in framework without session and user database record 2013-02-20 21:03:44 +01:00
Aleksander Machniak
ddeb606daf Fix File support. Fix handling of non-inline attachments of event and file objects. 2013-01-16 09:27:34 +01:00
Aleksander Machniak
56abf7e5f3 Use client-side subscriptions for folders activation state (calendar, tasklist)
Add kolab_use_subscriptions option to limit folders visibility in Kolab plugins (#1314)
2012-12-10 12:17:41 +01:00
Aleksander Machniak
a72a0ca097 RCMAIL_CHARSET -> RCUBE_CHARSET 2012-12-09 12:23:38 +01:00
Aleksander Machniak
bbfa7ad97f Save 'file' objects in binary format 2012-12-09 12:22:22 +01:00
Thomas Bruederli
4245fb0839 Treat Kolab format version as string 2012-11-22 15:19:17 +01:00
Thomas Bruederli
5ac6bc06fd Add getter for color annotations to libkolab and use it in calendar and tasklist 2012-11-21 12:30:27 +01:00
Aleksander Machniak
57f1d89fcc Implemented messages write handling with temp files 2012-11-19 14:58:36 +01:00
Aleksander Machniak
d2add52424 Extend get_attachment() with arguments available in rcube_imap::get_message_part() 2012-11-15 12:37:56 +01:00
Thomas Bruederli
cf5c88437e Merge branch 'dev/libcalendaring' 2012-11-09 14:02:34 +01:00
Thomas Bruederli
dfb7fae983 Fix contact picture handling with Kolab format v2 2012-11-08 14:07:01 +01:00
Aleksander Machniak
fa6b80b463 Make sure attachments information stored in cache contain attachment size 2012-11-08 13:47:53 +01:00
Thomas Bruederli
d98e8787c6 Fix kolab_format_* classes to read v2 format; perpare kolab_storage to write out v2 format 2012-11-06 19:03:12 +01:00
Aleksander Machniak
f7b2e543e2 Fix attachments handling (Bug #1172) 2012-11-06 15:09:47 +01:00