*** ezmlm-return.c	1998/03/05 04:11:59	1.5
--- ezmlm-return.c	1998/04/08 03:15:51
***************
*** 38,43 ****
--- 38,44 ----
  char hash[COOKIE];
  char hashcopy[COOKIE];
  unsigned long cookiedate;
+ unsigned long addrno = 0L;
  stralloc fndate = {0};
  stralloc fndatenew = {0};
  stralloc fnhash = {0};
***************
*** 112,117 ****
--- 113,124 ----
    if (!stralloc_catb(&fndate,strnum,fmt_ulong(strnum,when))) die_nomem();
    if (!stralloc_cats(&fndate,".")) die_nomem();
    if (!stralloc_catb(&fndate,strnum,fmt_ulong(strnum,(unsigned long) getpid()))) die_nomem();
+   if (addrno) {	/* so that pre-VERP bounces make a d... file per address */
+ 		/* for the first one we use the std-style fname */
+     if (!stralloc_cats(&fndate,".")) die_nomem();
+     if (!stralloc_catb(&fndate,strnum,fmt_ulong(strnum,addrno))) die_nomem();
+   }
+   addrno++;	/* get ready for next */
    if (!stralloc_0(&fndate)) die_nomem();
    if (!stralloc_copy(&fndatenew,&fndate)) die_nomem();
    fndatenew.s[pos] = 'D';
