git/builtin/mailsplit.c

/*
 * Totally braindamaged mbox splitter program.
 *
 * It just splits a mbox into a list of files: "0001" "0002" ..
 * so you can process them further from there.
 */
#include "builtin.h"
#include "gettext.h"
#include "string-list.h"
#include "strbuf.h"

static const char git_mailsplit_usage[] =;

static int is_from_line(const char *line, int len)
{}

static struct strbuf buf =;
static int keep_cr;
static int mboxrd;

static int is_gtfrom(const struct strbuf *buf)
{}

/* Called with the first line (potentially partial)
 * already in buf[] -- normally that should begin with
 * the Unix "From " line.  Write it into the specified
 * file.
 */
static int split_one(FILE *mbox, const char *name, int allow_bare)
{}

static int populate_maildir_list(struct string_list *list, const char *path)
{}

static int maildir_filename_cmp(const char *a, const char *b)
{}

static int split_maildir(const char *maildir, const char *dir,
	int nr_prec, int skip)
{}

static int split_mbox(const char *file, const char *dir, int allow_bare,
		      int nr_prec, int skip)
{}

int cmd_mailsplit(int argc,
		  const char **argv,
		  const char *prefix,
		  struct repository *repo UNUSED)
{}