Jim Cooley writes: > Sam, > > Thanks for the suggestion on using the control files to find the bcc addresses. I >am running into some difficulties, though. I can't seem to actually find and open a >control file. > > Datafiles work fine, and I noticed that the filter script is passed the full >pathname (ie $courierdir/var/tmp/yyyyyy/Dnnnnnn)
Well, see the other current threads on this same topic here. It looks like some additional work might actually be necessary in order to grab this information. The following patch was floated around here, which will feed control filenames instead of message queue ids, to the filter process. Use that for now. -- Sam
diff -ruw courier-0.36.1/courier/submit2.C courier-0.36.1-filter/courier/submit2.C --- courier-0.36.1/courier/submit2.C Thu Nov 29 19:41:24 2001 +++ courier-0.36.1-filter/courier/submit2.C Wed Dec 12 13:59:57 2001 @@ -968,25 +968,13 @@ { SubmitFile *objptr= *(SubmitFile **)p; CString ctlname; -struct ctlfile ctf; -CString msgid; if (objptr->num_control_files_created == 1) ctlname=objptr->name1stctlfile(); else ctlname=objptr->namefile("C", n+1); - - if (ctlfile_openfn(ctlname, &ctf, 1, 0)) - clog_msg_errno(); - -int i=ctlfile_searchfirst(&ctf, COMCTLFILE_MSGID); - - msgid=""; - if (i >= 0 ) - msgid=ctf.lines[i]+1; - ctlfile_close(&ctf); - return (msgid); + return (ctlname); } static void print_xerror(const char *address, const char *errbuf, int isfinal)