[comp.mail.sendmail] sendmail may fetch values from wrong envelope

e07@nikhefh.nikhef.nl (Eric Wassenaar) (06/06/91)

To those who care about details:
In the following cases values may be fetched from the wrong
envelope, if the specified 'e' is not the same as 'CurEnv'.
The first example only applies to IDA.

queue.c
=======

queueup(e, queueall, announce)
	register ENVELOPE *e;
{
# ifdef QUEUE_MACVALUE /* Save some macro values in the queue file */
			q = macvalue(*p, CurEnv);

should be:
			q = macvalue(*p, e);

envelope.c
==========

dropenvelope(e)
	register ENVELOPE *e;
{
	if (e->e_receiptto != NULL && bitset(EF_SENDRECEIPT, e->e_flags))
	{
		sendtolist(CurEnv->e_receiptto, (ADDRESS *) NULL, &rlist);

should be:
		sendtolist(e->e_receiptto, (ADDRESS *) NULL, &rlist);

Eric Wassenaar
-- 
Organization: NIKHEF-H, National Institute for Nuclear and High-Energy Physics
Address: Kruislaan 409, P.O. Box 41882, 1009 DB Amsterdam, the Netherlands
Phone: +31 20 592 0412, Home: +31 20 6909449, Telefax: +31 20 592 5155
Internet: e07@nikhef.nl