~ubuntu-branches/ubuntu/wily/dovecot/wily

« back to all changes in this revision

Viewing changes to src/lib-storage/index/maildir/maildir-filename-flags.c

  • Committer: Package Import Robot
  • Author(s): Jaldhar H. Vyas
  • Date: 2013-09-09 00:57:32 UTC
  • mfrom: (1.13.11)
  • mto: (4.8.5 experimental) (1.16.1)
  • mto: This revision was merged to the branch mainline in revision 97.
  • Revision ID: package-import@ubuntu.com-20130909005732-dn1eell8srqbhh0e
Tags: upstream-2.2.5
ImportĀ upstreamĀ versionĀ 2.2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (c) 2002-2012 Dovecot authors, see the included COPYING file */
 
1
/* Copyright (c) 2002-2013 Dovecot authors, see the included COPYING file */
2
2
 
3
3
#include "lib.h"
4
4
#include "array.h"
88
88
              char_cmp);
89
89
}
90
90
 
91
 
const char *maildir_filename_flags_set(struct maildir_keywords_sync_ctx *ctx,
92
 
                                       const char *fname, enum mail_flags flags,
93
 
                                       ARRAY_TYPE(keyword_indexes) *keywords)
 
91
static const char * ATTR_NULL(1, 4)
 
92
maildir_filename_flags_full_set(struct maildir_keywords_sync_ctx *ctx,
 
93
                                const char *fname, enum mail_flags flags,
 
94
                                ARRAY_TYPE(keyword_indexes) *keywords)
94
95
{
95
96
        string_t *flags_str;
96
97
        enum mail_flags flags_left;
170
171
 
171
172
        return str_c(flags_str);
172
173
}
 
174
 
 
175
const char *maildir_filename_flags_set(const char *fname, enum mail_flags flags)
 
176
{
 
177
        return maildir_filename_flags_full_set(NULL, fname, flags, NULL);
 
178
}
 
179
 
 
180
const char *maildir_filename_flags_kw_set(struct maildir_keywords_sync_ctx *ctx,
 
181
                                          const char *fname, enum mail_flags flags,
 
182
                                          ARRAY_TYPE(keyword_indexes) *keywords)
 
183
{
 
184
        return maildir_filename_flags_full_set(ctx, fname, flags, keywords);
 
185
}