Hi,

The postproc program (post or spost) is invoked in the following way:

  post -library Mail -alias aliases ...

In nmh 1.0, the spost program no longer parses the user context (it uses
context_foil()) and does not parse the -library switch either.  As a result,
it can't find the alias file.

Attached is a small patch that causes spost to interpret the -library switch
just as post does, which fixes this problem.

Thanks,

Ruud de Rooij.
-- 
Ruud de Rooij
[EMAIL PROTECTED]
http://sepc.twi.tudelft.nl/~derooij/

--- nmh-1.0.orig/uip/spost.c
+++ nmh-1.0/uip/spost.c
@@ -310,9 +310,20 @@
                        outputlinelen = 72;
                    continue;
 
+               /* Handle -library switch just as in post
+                * Ruud de Rooij <[EMAIL PROTECTED]>
+                * Sun,  4 Apr 1999 11:29:06 +0200
+                */
                case LIBSW:
+                   if (!(cp = *argp++) || *cp == '-')
+                       adios (NULL, "missing argument to %s", argp[-2]);
+                   /* create a minimal context */
+                   if (context_foil (cp) == -1)
+                       done(1);
+                   continue;
+
                case ANNOSW:
-                   /* -library & -idanno switch ignored */
+                   /* -idanno switch ignored */
                    if (!(cp = *argp++) || *cp == '-')
                        adios (NULL, "missing argument to %s", argp[-2]);
                    continue;

Reply via email to