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

« back to all changes in this revision

Viewing changes to src/lib-storage/mail-search.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"
57
57
                        /* make sure the last message is in the range */
58
58
                        mailbox_get_seq_range(box, 1, (uint32_t)-1,
59
59
                                              &seq1, &seq2);
60
 
                        seq_range_array_add(&arg->value.seqset, 0, seq2);
 
60
                        seq_range_array_add(&arg->value.seqset, seq2);
61
61
                }
62
62
        }
63
63
}
852
852
void mail_search_args_result_serialize(const struct mail_search_args *args,
853
853
                                       buffer_t *dest)
854
854
{
855
 
        mail_search_args_result_serialize_arg(args->args, dest);
 
855
        const struct mail_search_arg *arg;
 
856
 
 
857
        for (arg = args->args; arg != NULL; arg = arg->next)
 
858
                mail_search_args_result_serialize_arg(arg, dest);
856
859
}
857
860
 
858
861
static void
883
886
void mail_search_args_result_deserialize(struct mail_search_args *args,
884
887
                                         const unsigned char *data, size_t size)
885
888
{
886
 
        mail_search_args_result_deserialize_arg(args->args, &data, &size);
 
889
        struct mail_search_arg *arg;
 
890
 
 
891
        for (arg = args->args; arg != NULL; arg = arg->next)
 
892
                mail_search_args_result_deserialize_arg(arg, &data, &size);
887
893
}