X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/4eb3c86131807ffa6d36047df51ddad3b5d67a48..fe9ab00a6a507867c3ab42101c17630c1217c29f:/uip/comp.c diff --git a/uip/comp.c b/uip/comp.c index 34d46bb2..69210f81 100644 --- a/uip/comp.c +++ b/uip/comp.c @@ -6,6 +6,10 @@ */ #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" @@ -163,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 == '-') @@ -296,7 +300,7 @@ main (int argc, char **argv) } else { struct comp *cptr; - if (! form) + if (! form) form = components; cp = new_fs(form, NULL, NULL); @@ -310,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