X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/00d760f7506c2d5c32ab5abf9f11b3066999f08a..ddf3a8574f657dcb8c53fc5908e7bebbde1994b5:/uip/new.c diff --git a/uip/new.c b/uip/new.c index 2d035a16..8e61e772 100644 --- a/uip/new.c +++ b/uip/new.c @@ -11,10 +11,27 @@ #include -#include -#include +#include "h/mh.h" +#include "sbr/m_getfld.h" +#include "sbr/getarguments.h" +#include "sbr/concat.h" +#include "sbr/smatch.h" +#include "sbr/r1bindex.h" +#include "sbr/trimcpy.h" +#include "sbr/vfgets.h" +#include "sbr/getcpy.h" +#include "sbr/m_atoi.h" +#include "sbr/context_save.h" +#include "sbr/context_replace.h" +#include "sbr/context_find.h" +#include "sbr/brkstring.h" +#include "sbr/ambigsw.h" +#include "sbr/print_version.h" +#include "sbr/print_help.h" +#include "sbr/error.h" +#include "sbr/crawl_folders.h" #include "h/done.h" -#include +#include "h/utils.h" #include "sbr/lock_file.h" #include "sbr/m_maildir.h" @@ -118,7 +135,7 @@ get_msgnums(char *folder, char *sequences[]) seqfile = concat(m_maildir(folder), "/", mh_seq, NULL); if (seqfile == NULL) - return NULL; + return NULL; if ((fp = lkfopendata (seqfile, "r", & failed_to_lock)) == NULL) { if (failed_to_lock) @@ -444,7 +461,7 @@ main(int argc, char **argv) char *unseen; struct node *folder; - if (nmh_init(argv[0], 1)) { return 1; } + if (nmh_init(argv[0], true, true)) { return 1; } arguments = getarguments (invo_name, argc, argv, 1); argp = arguments;