1 |
#include "config.h" |
#include "config.h" |
2 |
#include <mailutils/mailutils.h> |
#include <mailutils/mailutils.h> |
3 |
#include <stdio.h> |
#include <stdio.h> |
4 |
#include <argp.h> |
#include <mu_argp.h> |
5 |
|
|
6 |
static int messages_count (const char *); |
static int messages_count (const char *); |
7 |
|
|
48 |
return 0; |
return 0; |
49 |
} |
} |
50 |
|
|
51 |
static struct argp argp = { options, parse_opt, args_doc, doc }; |
static struct argp argp = { |
52 |
|
options, |
53 |
|
parse_opt, |
54 |
|
args_doc, |
55 |
|
doc, |
56 |
|
mu_common_argp_child, |
57 |
|
NULL, NULL |
58 |
|
}; |
59 |
|
|
60 |
int |
int |
61 |
main (int argc, char **argv) |
main (int argc, char **argv) |
65 |
int err = 0; |
int err = 0; |
66 |
struct arguments args = {0, NULL}; |
struct arguments args = {0, NULL}; |
67 |
|
|
68 |
|
mu_create_argcv (argc, argv, &argc, &argv); |
69 |
argp_parse (&argp, argc, argv, 0, 0, &args); |
argp_parse (&argp, argc, argv, 0, 0, &args); |
70 |
|
|
71 |
registrar_get_list (&bookie); |
registrar_get_list (&bookie); |