X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fsendsbr.c;h=91eaddfaa5a6a6b6aaa202a826befcb7618ff8c4;hb=02e25280094d8245772acf03396fe31c278ea337;hp=63efbc0ae02244942cf55d4baaf74eefff8d5866;hpb=4548981fb45fbc917cc2c26b7c96b31cfa14bc9b;p=mmh diff --git a/uip/sendsbr.c b/uip/sendsbr.c index 63efbc0..91eaddf 100644 --- a/uip/sendsbr.c +++ b/uip/sendsbr.c @@ -192,6 +192,7 @@ attach(char *attachment_header_field_name, char *draft_file_name, int has_body; /* draft has a message body */ int length; /* length of attachment header field name */ char *p; /* miscellaneous string pointer */ + FILE *fp; /* pointer for mhn.defaults */ /* * Open up the draft file. @@ -301,6 +302,11 @@ attach(char *attachment_header_field_name, char *draft_file_name, * that specify attachments. Add a mhbuild MIME composition file for each. */ + if ((fp = fopen (p = etcpath ("mhn.defaults"), "r"))) { + readconfig ((struct node **) NULL, fp, p, 0); + fclose(fp); + } + rewind(draft_file); while (get_line() != EOF && *field != '\0' && *field != '-') { @@ -669,7 +675,7 @@ splitmsg (char **vec, int vecp, char *drft, struct stat *st, int delay) time (&clock); snprintf (msgid, sizeof(msgid), "<%d.%ld@%s>", - (int) getpid(), (long) clock, LocalName()); + (int) getpid(), (long) clock, LocalName(1)); fseek (in, start, SEEK_SET); for (partno = 1; partno <= nparts; partno++) { @@ -794,7 +800,7 @@ sendaux (char **vec, int vecp, char *drft, struct stat *st) done (1); vec[vecp] = NULL; - for (i = 0; (child_id = m_vfork()) == NOTOK && i < 5; i++) + for (i = 0; (child_id = vfork()) == NOTOK && i < 5; i++) sleep (5); switch (child_id) {