Hi,

For various resasons I'm trying to construct a file with the sender and
recipeients of bounce messages like:

[EMAIL PROTECTED]        [EMAIL PROTECTED]
[EMAIL PROTECTED]        [EMAIL PROTECTED]
...

...one entry for every *fatal* bounce.

I've tried putting code like this in various places in qmail-send.c and
qmail-remote.c:

if ((outfile = fopen("/var/log/somedir/bounces", "a")) != NULL)
  {
  fprintf(outfile, "%s   %s\n", sender, intended_recip);
  fclose(outfile); 
  }

but I get only the sender or nothing at all. If I can't get both easily
then I need to at least get the intended recipient (the address that's
potentially no good.)

Anyone know where I can plop this code and what variables I should be
printing?

It's a long story but I don't want to have to parse the logs.

Thanks,

*******************************************
Bill Luckett
Director of Information Systems
Phi Theta Kappa International Honor Society
1625 Eastover Dr.
Jackson, MS 39211

[EMAIL PROTECTED]
Ph : 601-984-3559
Fax: 601-984-3506
*******************************************

Reply via email to