Lines Matching refs:smarg

116 	struct mail_search_mime_arg *smarg;
118 if (mail_search_mime_build_key(ctx, ctx->parent, &smarg) < 0)
121 smarg->match_not = !smarg->match_not;
122 return smarg;
128 struct mail_search_mime_arg *smarg, **subargs;
131 smarg = mail_search_mime_build_new(ctx, SEARCH_MIME_OR);
133 subargs = &smarg->value.subargs;
135 if (mail_search_mime_build_key(ctx, smarg, subargs) < 0)
143 if (mail_search_mime_build_key(ctx, smarg, subargs) < 0)
145 return smarg;
159 struct mail_search_mime_arg *smarg;
162 smarg = mail_search_mime_build_new(ctx, type);
165 if (!imap_parse_date(value, &smarg->value.time)) {
169 return smarg;
185 struct mail_search_mime_arg *smarg;
216 smarg = mail_search_mime_build_new(ctx, type);
217 smarg->value.size = size;
218 return smarg;
245 struct mail_search_mime_arg *smarg;
258 smarg = mail_search_mime_build_new(ctx, type);
259 smarg->field_name = str_ucase(p_strdup(ctx->ctx->pool, field_name));
260 smarg->value.str = value;
262 return smarg;
283 struct mail_search_mime_arg *smarg;
285 smarg = mail_search_mime_build_str(ctx, type);
286 if (smarg == NULL)
289 if (mail_search_build_get_utf8(ctx->ctx, smarg->value.str,
290 &smarg->value.str) < 0)
292 return smarg;
307 struct mail_search_mime_arg *smarg;
321 smarg = mail_search_mime_build_new
323 smarg->value.str = p_strdup(ctx->ctx->pool, value);
324 return smarg;
337 struct mail_search_mime_arg *smarg;
368 smarg = mail_search_mime_build_new(ctx, type);
369 smarg->value.number = depth;
370 return smarg;
376 struct mail_search_mime_arg *smarg;
390 smarg = mail_search_mime_build_new
392 smarg->value.number = index;
393 return smarg;
399 struct mail_search_mime_arg *smarg;
432 smarg = mail_search_mime_build_new(ctx, type);
433 smarg->value.str = value;
434 return smarg;
440 struct mail_search_mime_arg *smarg, *subargs;
442 smarg = mail_search_mime_build_new(ctx, SEARCH_MIME_PARENT);
443 if (mail_search_mime_build_key(ctx, smarg, &subargs) < 0)
445 if (subargs == smarg)
446 smarg->value.subargs = NULL;
448 smarg->value.subargs = subargs->value.subargs;
450 smarg->value.subargs = subargs;
451 return smarg;
457 struct mail_search_mime_arg *smarg, *subargs;
459 smarg = mail_search_mime_build_new(ctx, SEARCH_MIME_CHILD);
460 if (mail_search_mime_build_key(ctx, smarg, &subargs) < 0)
462 if (subargs == smarg)
463 smarg->value.subargs = NULL;
465 smarg->value.subargs = subargs->value.subargs;
467 smarg->value.subargs = subargs;
468 return smarg;