Tim Pierce <[EMAIL PROTECTED]> writes:

> Mail is sent with a wrapper around qmail-inject, with an environment of:

>     QMAILSUSER            = list-request
>     QMAILSHOST            = rootsweb.com
>     QMAILINJECT           = r

> Am I doing it the wrong way?  This is the only reference to VERPs I
> could find in the qmail-inject, qmail-send, qmail, qmail-smtpd etc. man
> pages.

addresses(5) has some more information.  Yup, looks like a bug in
qmail-inject, which appears to be unconditionally adding - rather than
using conf-break.  The following patch should fix it.

WARNING: Untested.

--- qmail-1.03/Makefile.orig    Mon Jun 15 03:53:16 1998
+++ qmail-1.03/Makefile Thu Jan 21 22:07:12 1999
@@ -1139,12 +1139,12 @@
 load qmail-inject.o headerbody.o hfield.o newfield.o quote.o now.o \
 control.o date822fmt.o constmap.o qmail.o case.a fd.a wait.a open.a \
 getln.a sig.a getopt.a datetime.a token822.o env.a stralloc.a alloc.a \
-substdio.a error.a str.a fs.a auto_qmail.o
+substdio.a error.a str.a fs.a auto_break.o auto_qmail.o
        ./load qmail-inject headerbody.o hfield.o newfield.o \
        quote.o now.o control.o date822fmt.o constmap.o qmail.o \
        case.a fd.a wait.a open.a getln.a sig.a getopt.a datetime.a \
        token822.o env.a stralloc.a alloc.a substdio.a error.a \
-       str.a fs.a auto_qmail.o 
+       str.a fs.a auto_break.o auto_qmail.o 
 
 qmail-inject.0: \
 qmail-inject.8
@@ -1155,7 +1155,8 @@
 subfd.h substdio.h sgetopt.h subgetopt.h getln.h alloc.h str.h fmt.h \
 hfield.h token822.h gen_alloc.h control.h env.h gen_alloc.h \
 gen_allocdefs.h error.h qmail.h substdio.h now.h datetime.h exit.h \
-quote.h headerbody.h auto_qmail.h newfield.h stralloc.h constmap.h
+quote.h headerbody.h auto_break.h auto_qmail.h newfield.h stralloc.h \
+constmap.h
        ./compile qmail-inject.c
 
 qmail-limits.0: \
--- qmail-1.03/qmail-inject.c.orig      Mon Jun 15 03:53:16 1998
+++ qmail-1.03/qmail-inject.c   Thu Jan 21 22:06:13 1999
@@ -19,6 +19,7 @@
 #include "exit.h"
 #include "quote.h"
 #include "headerbody.h"
+#include "auto_break.h"
 #include "auto_qmail.h"
 #include "newfield.h"
 #include "constmap.h"
@@ -479,13 +480,13 @@
  if (!stralloc_copys(&hackedruser,mailruser)) die_nomem();
  if (flaghackmess)
   {
-   if (!stralloc_cats(&hackedruser,"-")) die_nomem();
+   if (!stralloc_cats(&hackedruser,auto_break)) die_nomem();
    if (!stralloc_catb(&hackedruser,strnum,fmt_ulong(strnum,(unsigned long) 
starttime))) die_nomem();
    if (!stralloc_cats(&hackedruser,".")) die_nomem();
    if (!stralloc_catb(&hackedruser,strnum,fmt_ulong(strnum,(unsigned long) 
getpid()))) die_nomem();
   }
  if (flaghackrecip)
-   if (!stralloc_cats(&hackedruser,"-")) die_nomem();
+   if (!stralloc_cats(&hackedruser,auto_break)) die_nomem();
  if (!token822_ready(&drp,10)) die_nomem();
  drp.len = 0;
  drp.t[drp.len].type = TOKEN822_ATOM;

-- 
Russ Allbery ([EMAIL PROTECTED])         <URL:http://www.eyrie.org/~eagle/>

Reply via email to