X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/29a1ada5b960fbf29d52e0f44911370a6c0c7c5f..fe9ab00a6a507867c3ab42101c17630c1217c29f:/uip/comp.c diff --git a/uip/comp.c b/uip/comp.c index fb1051e7..69210f81 100644 --- a/uip/comp.c +++ b/uip/comp.c @@ -5,9 +5,33 @@ * complete copyright information. */ -#include -#include -#include +#include "h/mh.h" +#include "sbr/fmt_new.h" +#include "whatnowproc.h" +#include "sbr/m_name.h" +#include "sbr/m_gmprot.h" +#include "sbr/getarguments.h" +#include "sbr/read_switch_multiword.h" +#include "sbr/seq_setprev.h" +#include "sbr/seq_save.h" +#include "sbr/showfile.h" +#include "sbr/smatch.h" +#include "sbr/refile.h" +#include "sbr/cpydata.h" +#include "sbr/m_draft.h" +#include "sbr/m_convert.h" +#include "sbr/getfolder.h" +#include "sbr/fdcompare.h" +#include "sbr/folder_read.h" +#include "sbr/context_save.h" +#include "sbr/context_find.h" +#include "sbr/ambigsw.h" +#include "sbr/path.h" +#include "sbr/print_version.h" +#include "sbr/print_help.h" +#include "sbr/error.h" +#include "h/utils.h" +#include "h/fmt_scan.h" #include "h/done.h" #include "sbr/m_maildir.h" #include @@ -143,7 +167,7 @@ main (int argc, char **argv) use = NOUSE; continue; - case FILESW: /* compatibility */ + case FILESW: /* compatibility */ if (file) die("only one file at a time!"); if (!(file = *argp++) || *file == '-') @@ -276,7 +300,7 @@ main (int argc, char **argv) } else { struct comp *cptr; - if (! form) + if (! form) form = components; cp = new_fs(form, NULL, NULL); @@ -290,33 +314,33 @@ main (int argc, char **argv) if (from) { cptr = fmt_findcomp("from"); if (cptr) - cptr->c_text = from; + cptr->c_text = from; } if (to) { cptr = fmt_findcomp("to"); if (cptr) - cptr->c_text = to; + cptr->c_text = to; } if (cc) { cptr = fmt_findcomp("cc"); if (cptr) - cptr->c_text = cc; + cptr->c_text = cc; } if (fcc) { cptr = fmt_findcomp("fcc"); if (cptr) - cptr->c_text = fcc; + cptr->c_text = fcc; } if (subject) { cptr = fmt_findcomp("subject"); if (cptr) - cptr->c_text = subject; + cptr->c_text = subject; } } try_it_again: strncpy (drft, build ? m_maildir ("draft") - : m_draft (dfolder, file, use, &isdf), sizeof(drft)); + : m_draft (dfolder, file, use, &isdf), sizeof(drft)); /* * Check if we have an existing draft