On Thu, 5 Aug 1999 13:39:10 +0200, Kamil Andrusz wrote:

>  Every thing goes ok until qmail rewrites the Cc: header, then it sends 
>another copy of the mail to all the recipients. This means that if I have
>three Cc's and one To: then each user will get four mails.

If I understand correctly, you reinject the message with a command that
parses the addresses from the message itself. Use qmail-inject instead
of the sendmail interface and use the appropriate qmail-inject option,
placing the recipient address on the command line. If I'm wrong, it
might help if you post the rewriting script.

>From the qmail-inject man page:

OPTIONS
       -a     Send the message to all addresses  given  as  recip
              arguments; do not use header recipient addresses.

       -h     Send the message to all header recipient addresses.
              For  non-forwarded   messages,   this   means   the
              addresses  listed under To, Cc, Bcc, Apparently-To.
              For forwarded messages, this  means  the  addresses
              listed  under Resent-To, Resent-Cc, Resent-Bcc.  Do
              not use any recip arguments.

       -A     (Default.)  Send the message to all addresses given
              as recip arguments.  If no recip arguments are sup-
              plied, send the message  to  all  header  recipient
              addresses.

       -H     Send the message to all header recipient addresses,
              and to all addresses given as recip arguments.


-Sincerely, Fred

(Frederik Lindberg, Infectious Diseases, WashU, St. Louis, MO, USA)

Reply via email to