Package: nmh
Version: 1.5-release-0.2
Severity: normal
Tags: patch

Dear Maintainer,

I'm reporting a problem with spost.

   * What led up to the situation?

     Not sure.  Maybe an upgrade to nmh?

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

     I have a script that calls

          send -draftfolder +delay4 -draftmessage 1

     and similar, via cron job at need.

   * What was the outcome of this action?

     Send failed with a message from spost saying that -mhlproc is unknown.

   * What outcome did you expect instead?

     Delivery of mail

I believe the attached patch repairs the problem: I have copied lines
from post.c into spost.c so that the -mhlproc switch can be handled.

I could not build a new package because the nmh-1.5-release source
package does not build out of the box (looks like it is failing some
valgrind tests).   Therefore, as you will see, I have overwritten the
spost binary on my system.

Please check the patch, and if you believe in it, adopt it and pass it
upstream. 


N Ramsey


-- System Information:
Debian Release: 7.4
  APT prefers stable
  APT policy: (500, 'stable'), (500, 'oldstable')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-4-686-pae (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to en_US.utf8)
Shell: /bin/sh linked to /bin/bash

Versions of packages nmh depends on:
ii  libc6         2.13-38+deb7u1
ii  libdb5.1      5.1.29-5
ii  liblockfile1  1.09-5
ii  libsasl2-2    2.1.25.dfsg1-6+deb7u1
ii  libssl1.0.0   1.0.1e-2+deb7u4
ii  libtinfo5     5.9-10
ii  netbase       5.0

Versions of packages nmh recommends:
ii  postfix [mail-transport-agent]  2.9.6-2

Versions of packages nmh suggests:
pn  exmh     <none>
pn  mh-book  <none>
pn  mh-e     <none>

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/lib/mh/spost (from nmh package)
diff --git a/uip/spost.c b/uip/spost.c
index 4133f86..3a5050d 100644
--- a/uip/spost.c
+++ b/uip/spost.c
@@ -67,6 +67,8 @@ struct swit switches[] = {
     { "library directory", -7 },
 #define	ANNOSW              21
     { "idanno number", -6 },
+#define MHLPROCSW		 22
+    { "mhlproc", -3 },
     { NULL, 0 }
 };
 
@@ -319,6 +321,12 @@ main (int argc, char **argv)
 		    if (!(cp = *argp++) || *cp == '-')
 			adios (NULL, "missing argument to %s", argp[-2]);
 		    continue;
+
+		case MHLPROCSW:
+		    if (!(cp = *argp++) || *cp == '-')
+			adios (NULL, "missing argument to %s", argp[-2]);
+		    mhlproc = cp;
+		    continue;
 	    }
 	}
 	if (msg)

Reply via email to