Use "auth" capability.
Showing
1 changed file
with
7 additions
and
0 deletions
... | @@ -41,6 +41,7 @@ | ... | @@ -41,6 +41,7 @@ |
41 | #include <mailutils/property.h> | 41 | #include <mailutils/property.h> |
42 | #include <mailutils/error.h> | 42 | #include <mailutils/error.h> |
43 | #include <mailutils/nls.h> | 43 | #include <mailutils/nls.h> |
44 | #include <mailutils/mu_auth.h> | ||
44 | 45 | ||
45 | const char *program_version = "mail.remote (" PACKAGE_STRING ")"; | 46 | const char *program_version = "mail.remote (" PACKAGE_STRING ")"; |
46 | static char doc[] = | 47 | static char doc[] = |
... | @@ -74,6 +75,8 @@ static struct argp_option options[] = { | ... | @@ -74,6 +75,8 @@ static struct argp_option options[] = { |
74 | {"read-recipients", 't', NULL, 0, N_("Read message for recipients.") }, | 75 | {"read-recipients", 't', NULL, 0, N_("Read message for recipients.") }, |
75 | {"debug", 'd', NULL, 0, N_("Print envelope commands in the SMTP protocol transaction. If specified more than once, the data part of the protocol transaction will also be printed.")}, | 76 | {"debug", 'd', NULL, 0, N_("Print envelope commands in the SMTP protocol transaction. If specified more than once, the data part of the protocol transaction will also be printed.")}, |
76 | { NULL, 'o', N_("OPT"), 0, N_("Ignored for sendmail compatibility")}, | 77 | { NULL, 'o', N_("OPT"), 0, N_("Ignored for sendmail compatibility")}, |
78 | { NULL, 'b', N_("OPT"), 0, N_("Ignored for sendmail compatibility")}, | ||
79 | { NULL, 'i', NULL, 0, N_("Ignored for sendmail compatibility")}, | ||
77 | { NULL } | 80 | { NULL } |
78 | }; | 81 | }; |
79 | 82 | ||
... | @@ -95,6 +98,8 @@ parse_opt (int key, char *arg, struct argp_state *state) | ... | @@ -95,6 +98,8 @@ parse_opt (int key, char *arg, struct argp_state *state) |
95 | break; | 98 | break; |
96 | 99 | ||
97 | case 'o': | 100 | case 'o': |
101 | case 'b': | ||
102 | case 'i': | ||
98 | break; | 103 | break; |
99 | 104 | ||
100 | case 't': | 105 | case 't': |
... | @@ -115,6 +120,7 @@ static struct argp argp = { | ... | @@ -115,6 +120,7 @@ static struct argp argp = { |
115 | }; | 120 | }; |
116 | 121 | ||
117 | static const char *capa[] = { | 122 | static const char *capa[] = { |
123 | "auth", | ||
118 | "common", | 124 | "common", |
119 | "mailer", | 125 | "mailer", |
120 | "address", | 126 | "address", |
... | @@ -158,6 +164,7 @@ main (int argc, char **argv) | ... | @@ -158,6 +164,7 @@ main (int argc, char **argv) |
158 | list_append (bookie, smtp_record); | 164 | list_append (bookie, smtp_record); |
159 | } | 165 | } |
160 | 166 | ||
167 | MU_AUTH_REGISTER_ALL_MODULES(); | ||
161 | mu_argp_init (program_version, NULL); | 168 | mu_argp_init (program_version, NULL); |
162 | mu_argp_parse (&argp, &argc, &argv, 0, capa, &optind, NULL); | 169 | mu_argp_parse (&argp, &argc, &argv, 0, capa, &optind, NULL); |
163 | 170 | ... | ... |
-
Please register or sign in to post a comment