1 /* GNU Mailutils -- a suite of utilities for electronic mail 2 Copyright (C) 2002-2021 Free Software Foundation, Inc. 3 4 GNU Mailutils is free software; you can redistribute it and/or modify 5 it under the terms of the GNU General Public License as published by 6 the Free Software Foundation; either version 3, or (at your option) 7 any later version. 8 9 GNU Mailutils is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 GNU General Public License for more details. 13 14 You should have received a copy of the GNU General Public License 15 along with GNU Mailutils. If not, see <http://www.gnu.org/licenses/>. */ 16 17 #include <mailutils/nls.h> 18 #include <mailutils/opt.h> 19 20 #define MH_GETOPT_DEFAULT_FOLDER 0x1 21 22 struct mh_optinit 23 { 24 char const *opt; /* Option name */ 25 char const *var; /* mh_property name */ 26 }; 27 28 void mh_getopt_ext (int *pargc, char ***pargv, struct mu_option *options, 29 int mhflags, struct mh_optinit *optinit, 30 char *argdoc, char *progdoc, char *extradoc); 31 32 void mh_getopt (int *pargc, char ***pargv, struct mu_option *options, 33 int flags, char *argdoc, char *progdoc, char *extradoc); 34 35 void mh_opt_notimpl (struct mu_parseopt *po, struct mu_option *opt, 36 char const *arg); 37 void mh_opt_notimpl_warning (struct mu_parseopt *po, struct mu_option *opt, 38 char const *arg); 39 void mh_opt_clear_string (struct mu_parseopt *po, struct mu_option *opt, 40 char const *arg); 41 42 void mh_opt_find_file (struct mu_parseopt *po, struct mu_option *opt, 43 char const *arg); 44 void mh_opt_read_formfile (struct mu_parseopt *po, struct mu_option *opt, 45 char const *arg); 46 47 void mh_opt_parse_formfile (struct mu_parseopt *po, struct mu_option *opt, 48 char const *arg); 49 void mh_opt_parse_format (struct mu_parseopt *po, struct mu_option *opt, 50 char const *arg); 51 52 void mh_opt_set_folder (struct mu_parseopt *po, struct mu_option *opt, 53 char const *arg); 54 55 56