projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove OS-specific defines. Remove GECOS ampersand-magic, along with it.
[mmh]
/
uip
/
repl.c
diff --git
a/uip/repl.c
b/uip/repl.c
index
be4eb40
..
07ec48c
100644
(file)
--- a/
uip/repl.c
+++ b/
uip/repl.c
@@
-745,15
+745,9
@@
insert(struct mailname *np)
snprintf(buffer, sizeof(buffer), "Reply to %s? ",
adrformat(np));
if (!gans(buffer, anoyes))
snprintf(buffer, sizeof(buffer), "Reply to %s? ",
adrformat(np));
if (!gans(buffer, anoyes))
- return 0;
+ return 0;
}
mp->m_next = np;
}
mp->m_next = np;
-
-#ifdef ISI
- if (ismymbox(np))
- ccme = 0;
-#endif
-
return 1;
}
return 1;
}
@@
-766,7
+760,7
@@
insert(struct mailname *np)
static void
replfilter(FILE *in, FILE *out, char *filter)
{
static void
replfilter(FILE *in, FILE *out, char *filter)
{
- int pid;
+ int pid, n;
char *errstr;
if (filter == NULL)
char *errstr;
if (filter == NULL)
@@
-785,7
+779,9
@@
replfilter(FILE *in, FILE *out, char *filter)
case OK:
dup2(fileno(in), fileno(stdin));
dup2(fileno(out), fileno(stdout));
case OK:
dup2(fileno(in), fileno(stdin));
dup2(fileno(out), fileno(stdout));
- closefds(3);
+ for (n=3; n<OPEN_MAX; n++) {
+ close(n);
+ }
execlp("mhl", "mhl", "-form", filter, NULL);
errstr = strerror(errno);
execlp("mhl", "mhl", "-form", filter, NULL);
errstr = strerror(errno);