dprint(2, (debugfile, "%s:%d Adding header structure. Flags: %s%s%s%s%s\n", __FILE__, __LINE__, md->h->flagged ? "f" : "", md->h->deleted ? "D" : "", md->h->replied ? "r" : "", md->h->old     ? "O" : "", md->h->read    ? "R" : ""));
static void maildir_add_to_context(CONTEXT *ctx, struct maildir *md){  while(md)  {    if(md->h)    {      if(ctx->msgcount == ctx->hdrmax)	mx_alloc_memory(ctx);            ctx->hdrs[ctx->msgcount] = md->h;      ctx->hdrs[ctx->msgcount]->index = ctx->msgcount;      ctx->size +=	md->h->content->length + md->h->content->offset - md->h->content->hdr_offset;            md->h = NULL;      mx_update_context(ctx);    }    md = md->next;  }}