X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fsend.c;h=043e05ed3bd29f17b2118d650827c3e1e0e19633;hp=45b5e2611aa0b290a46fdfa008a66bf06bc5d593;hb=ced6090a330d3d83d0bce709f756aa3d7d65fea4;hpb=337338b404931f06f0db2119c9e145e8ca5a9860 diff --git a/uip/send.c b/uip/send.c index 45b5e26..043e05e 100644 --- a/uip/send.c +++ b/uip/send.c @@ -1,10 +1,10 @@ /* - * send.c -- send a composed message - * - * This code is Copyright (c) 2002, by the authors of nmh. See the - * COPYRIGHT file in the root directory of the nmh distribution for - * complete copyright information. - */ +** send.c -- send a composed message +** +** This code is Copyright (c) 2002, by the authors of nmh. See the +** COPYRIGHT file in the root directory of the nmh distribution for +** complete copyright information. +*/ #include #include @@ -139,7 +139,9 @@ main (int argc, char **argv) adios (NULL, "-%s unknown\n", cp); case HELPSW: - snprintf (buf, sizeof(buf), "%s [file] [switches]", invo_name); + snprintf (buf, sizeof(buf), + "%s [file] [switches]", + invo_name); print_help (buf, switches, 1); done (1); case VERSIONSW: @@ -242,12 +244,13 @@ main (int argc, char **argv) } /* - * check for "Aliasfile:" profile entry - */ + ** check for "Aliasfile:" profile entry + */ if ((cp = context_find ("Aliasfile"))) { char *dp = NULL; - for (ap = brkstring(dp = getcpy(cp), " ", "\n"); ap && *ap; ap++) { + for (ap = brkstring(dp = getcpy(cp), " ", "\n"); ap && *ap; + ap++) { vec[vecp++] = "-alias"; vec[vecp++] = *ap; } @@ -293,8 +296,8 @@ main (int argc, char **argv) #ifdef UCI else { snprintf (buf, sizeof(buf), "%s/.signature", mypath); - if ((fp = fopen (buf, "r")) != NULL - && fgets (buf, sizeof buf, fp) != NULL) { + if ((fp = fopen (buf, "r")) != NULL && + fgets(buf, sizeof buf, fp) != NULL) { fclose (fp); if (cp = strchr (buf, '\n')) *cp = 0; @@ -326,9 +329,11 @@ main (int argc, char **argv) && errno != EISREMOTE #endif /* EISREMOTE */ ) - adios (distfile, "unable to link %s to", altmsg); + adios (distfile, "unable to link %s to", + altmsg); free (distfile); - distfile = getcpy (m_mktemp2(NULL, invo_name, NULL, NULL)); + distfile = getcpy (m_mktemp2(NULL, invo_name, + NULL, NULL)); { int in, out; struct stat st; @@ -336,7 +341,9 @@ main (int argc, char **argv) if ((in = open (altmsg, O_RDONLY)) == NOTOK) adios (altmsg, "unable to open"); fstat(in, &st); - if ((out = creat (distfile, (int) st.st_mode & 0777)) == NOTOK) + if ((out = creat (distfile, + (int) st.st_mode & 0777)) + == NOTOK) adios (distfile, "unable to write"); cpydata (in, out, altmsg, distfile); close (in); @@ -361,7 +368,7 @@ main (int argc, char **argv) for (msgnum = 0; msgnum < msgp; msgnum++) { switch (sendsbr (vec, vecp, msgs[msgnum], &st, 1, attach, - attachformat)) { + attachformat)) { case DONE: done (++status); case NOTOK: