]>
diplodocus.org Git - nmh/blob - sbr/refile.c
3 * refile.c -- call the "fileproc" to refile the
4 * -- msg or draft into another folder
13 refile (char **arg
, char *file
)
20 vec
[vecp
++] = r1bindex (fileproc
, '/');
21 vec
[vecp
++] = "-nolink"; /* override bad .mh_profile defaults */
22 vec
[vecp
++] = "-nopreserve";
23 vec
[vecp
++] = "-file";
32 context_save(); /* save the context file */
35 switch (pid
= vfork()) {
37 advise ("fork", "unable to");
41 execvp (fileproc
, vec
);
42 fprintf (stderr
, "unable to exec ");
47 return (pidwait (pid
, -1));