--- index.c.orig Mon Mar 3 16:21:13 2008 +++ index.c Mon Mar 3 17:01:48 2008 @@ -1313,6 +1313,7 @@ *copyuidp = NULL; copyargs.nummsg = 0; + copyargs.name = name; index_forsequence(mailbox, sequence, usinguid, index_copysetup, (char *)©args, NULL); @@ -3409,6 +3410,9 @@ xrealloc((char *)copyargs->copymsg, copyargs->msgalloc * sizeof(struct copymsg)); } + + syslog(LOG_ERR, "DSPAM-Hack index_copysetup(): %s -> %s, hdr %s", mailbox->name, + copyargs->name, index_getheader(mailbox, msgno, "X-DSPAM-Signature")); copyargs->copymsg[copyargs->nummsg].uid = UID(msgno); copyargs->copymsg[copyargs->nummsg].internaldate = INTERNALDATE(msgno); --- index.h.orig Mon Mar 3 16:57:35 2008 +++ index.h Mon Mar 3 16:57:53 2008 @@ -126,6 +126,7 @@ struct copymsg *copymsg; int nummsg; int msgalloc; + char *name; }; struct mapfile {