X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fsendsbr.c;h=d866ebc925b13a75dfdd513894b5d1f7b52cf426;hb=3bebe0e894828d80183926d4fc19fc01cd3c274e;hp=04d6ea92245cdfd7a5563101ee0dc2f10d44aa15;hpb=f931795fd8973c1edb40a26ecf87dbe27f7a6148;p=mmh diff --git a/uip/sendsbr.c b/uip/sendsbr.c index 04d6ea9..d866ebc 100644 --- a/uip/sendsbr.c +++ b/uip/sendsbr.c @@ -9,7 +9,7 @@ #include #include -#include +#include #include #include #include @@ -110,7 +110,7 @@ sendsbr (char **vec, int vecp, char *drft, struct stat *st, int rename_drft, cha } done=armed_done; - switch (m_setjmp (env)) { + switch (setjmp (env)) { case OK: /* * If given -push and -unique (which is undocumented), then @@ -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 != '-') {