~ubuntu-branches/ubuntu/maverick/evolution-data-server/maverick-proposed

« back to all changes in this revision

Viewing changes to camel/camel-uid-cache.c

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2010-05-17 17:02:06 UTC
  • mfrom: (1.1.79 upstream) (1.6.12 experimental)
  • Revision ID: james.westby@ubuntu.com-20100517170206-4ufr52vwrhh26yh0
Tags: 2.30.1-1ubuntu1
* Merge from debian experimental. Remaining change:
  (LP: #42199, #229669, #173703, #360344, #508494)
  + debian/control:
    - add Vcs-Bzr tag
    - don't use libgnome
    - Use Breaks instead of Conflicts against evolution 2.25 and earlier.
  + debian/evolution-data-server.install,
    debian/patches/45_libcamel_providers_version.patch:
    - use the upstream versioning, not a Debian-specific one 
  + debian/libedata-book1.2-dev.install, debian/libebackend-1.2-dev.install,
    debian/libcamel1.2-dev.install, debian/libedataserverui1.2-dev.install:
    - install html documentation
  + debian/rules:
    - don't build documentation it's shipped with the tarball

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
#include <glib.h>
36
36
#include <glib/gstdio.h>
37
37
 
38
 
#include <libedataserver/e-data-server-util.h>
39
 
 
40
38
#include "camel-file-utils.h"
41
39
#include "camel-private.h"
42
40
#include "camel-uid-cache.h"
54
52
 * doesn't already exist, the UID cache will be empty. Otherwise, if
55
53
 * it does exist but can't be read, the function will return %NULL.
56
54
 *
57
 
 * Return value: a new UID cache, or %NULL
 
55
 * Returns: a new UID cache, or %NULL
58
56
 **/
59
57
CamelUIDCache *
60
58
camel_uid_cache_new (const gchar *filename)
65
63
        gint fd, i;
66
64
 
67
65
        dirname = g_path_get_dirname (filename);
68
 
        if (g_mkdir_with_parents (dirname, 0777) == -1) {
 
66
        if (g_mkdir_with_parents (dirname, 0700) == -1) {
69
67
                g_free (dirname);
70
68
                return NULL;
71
69
        }
146
144
 *
147
145
 * Attempts to save @cache back to disk.
148
146
 *
149
 
 * Return value: success or failure
 
147
 * Returns: success or failure
150
148
 **/
151
149
gboolean
152
150
camel_uid_cache_save (CamelUIDCache *cache)
260
258
 * Returns an array of UIDs from @uids that are not in @cache, and
261
259
 * removes UIDs from @cache that aren't in @uids.
262
260
 *
263
 
 * Return value: an array of new UIDs, which must be freed with
 
261
 * Returns: an array of new UIDs, which must be freed with
264
262
 * camel_uid_cache_free_uids().
265
263
 **/
266
264
GPtrArray *