]> git.marmaro.de Git - mmh/blobdiff - uip/whatnowproc.c
Don't allow blind aliases with sendmail/pipe mts. Before this change,
[mmh] / uip / whatnowproc.c
index cd215020f0e2b2df6671398c870e56a2295e8ab2..fc8783d0b8df0267a9e3c84cf0c3f15f3c4c5719 100644 (file)
@@ -2,8 +2,6 @@
 /*
  * whatnowproc.c -- exec the "whatnowproc"
  *
- * $Id$
- *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
  * complete copyright information.
  * it will call this routine directly without exec'ing it.
  */
 
-/* from whatnowsbr.c */
-int WhatNow (int, char **);
-
 
 int
 what_now (char *ed, int nedit, int use, char *file, char *altmsg, int dist,
-          struct msgs *mp, char *text, int inplace, char *cwd)
+          struct msgs *mp, char *text, int inplace, char *cwd, int atfile)
 {
     int found, k, msgnum, vecp;
     int len, buflen;
@@ -65,6 +60,8 @@ what_now (char *ed, int nedit, int use, char *file, char *altmsg, int dist,
     }
     snprintf (buffer, sizeof(buffer), "%d", use);
     m_putenv ("mhuse", buffer);
+    snprintf (buffer, sizeof(buffer), "%d", atfile);
+    m_putenv ("mhatfile", buffer);
 
     unputenv ("mhmessages");
     unputenv ("mhannotate");