projects
/
mmh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
4582f97
)
Call readconfig() on mhn.defaults so we get default entries in for use
author
Ken Hornstein
<kenh@pobox.com>
Fri, 16 Mar 2012 03:00:06 +0000
(23:00 -0400)
committer
Ken Hornstein
<kenh@pobox.com>
Fri, 16 Mar 2012 03:00:06 +0000
(23:00 -0400)
with attach.
uip/sendsbr.c
patch
|
blob
|
history
diff --git
a/uip/sendsbr.c
b/uip/sendsbr.c
index
04d6ea9
..
91eaddf
100644
(file)
--- 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 */
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.
/*
* 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.
*/
* 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 != '-') {
rewind(draft_file);
while (get_line() != EOF && *field != '\0' && *field != '-') {