summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9354218)
SCCS-vsn: usr.sbin/sendmail/src/main.c 6.26
SCCS-vsn: usr.sbin/sendmail/src/envelope.c 6.14
SCCS-vsn: usr.sbin/sendmail/src/version.c 6.29
SCCS-vsn: usr.sbin/sendmail/src/savemail.c 6.13
SCCS-vsn: usr.sbin/sendmail/src/srvrsmtp.c 6.17
SCCS-vsn: usr.sbin/sendmail/src/deliver.c 6.26
SCCS-vsn: usr.sbin/sendmail/src/queue.c 6.18
-static char sccsid[] = "@(#)deliver.c 6.25 (Berkeley) %G%";
+static char sccsid[] = "@(#)deliver.c 6.26 (Berkeley) %G%";
#endif /* not lint */
#include "sendmail.h"
#endif /* not lint */
#include "sendmail.h"
if (owner != NULL && otherowners > 0)
{
register ENVELOPE *ee;
if (owner != NULL && otherowners > 0)
{
register ENVELOPE *ee;
- extern ENVELOPE *newenvelope();
extern HDR *copyheader();
extern ADDRESS *copyqueue();
extern HDR *copyheader();
extern ADDRESS *copyqueue();
-static char sccsid[] = "@(#)envelope.c 6.13 (Berkeley) %G%";
+static char sccsid[] = "@(#)envelope.c 6.14 (Berkeley) %G%";
#endif /* not lint */
#include <sys/types.h>
#endif /* not lint */
#include <sys/types.h>
**
** Parameters:
** e -- the new envelope to fill in.
**
** Parameters:
** e -- the new envelope to fill in.
+** parent -- the envelope to be the parent of e.
register ENVELOPE *parent;
register ENVELOPE *parent;
extern putheader(), putbody();
extern ENVELOPE BlankEnvelope;
extern putheader(), putbody();
extern ENVELOPE BlankEnvelope;
- parent = CurEnv;
- if (e == CurEnv && e->e_parent != NULL)
+ if (e == parent && e->e_parent != NULL)
parent = e->e_parent;
clearenvelope(e, TRUE);
if (e == CurEnv)
parent = e->e_parent;
clearenvelope(e, TRUE);
if (e == CurEnv)
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)main.c 6.25 (Berkeley) %G%";
+static char sccsid[] = "@(#)main.c 6.26 (Berkeley) %G%";
#endif /* not lint */
#define _DEFINE
#endif /* not lint */
#define _DEFINE
** Switch to the main envelope.
*/
** Switch to the main envelope.
*/
- CurEnv = newenvelope(&MainEnvelope);
+ CurEnv = newenvelope(&MainEnvelope, CurEnv);
MainEnvelope.e_flags = BlankEnvelope.e_flags;
/*
MainEnvelope.e_flags = BlankEnvelope.e_flags;
/*
/* at this point we are in a child: reset state */
OpMode = MD_SMTP;
/* at this point we are in a child: reset state */
OpMode = MD_SMTP;
- (void) newenvelope(CurEnv);
+ (void) newenvelope(CurEnv, CurEnv);
openxscript(CurEnv);
#endif /* DAEMON */
}
openxscript(CurEnv);
#endif /* DAEMON */
}
#ifndef lint
#ifdef QUEUE
#ifndef lint
#ifdef QUEUE
-static char sccsid[] = "@(#)queue.c 6.17 (Berkeley) %G% (with queueing)";
+static char sccsid[] = "@(#)queue.c 6.18 (Berkeley) %G% (with queueing)";
-static char sccsid[] = "@(#)queue.c 6.17 (Berkeley) %G% (without queueing)";
+static char sccsid[] = "@(#)queue.c 6.18 (Berkeley) %G% (without queueing)";
#endif
#endif /* not lint */
#endif
#endif /* not lint */
*/
CurEnv = &QueueEnvelope;
*/
CurEnv = &QueueEnvelope;
- e = newenvelope(&QueueEnvelope);
+ e = newenvelope(&QueueEnvelope, CurEnv);
e->e_flags = BlankEnvelope.e_flags;
/*
e->e_flags = BlankEnvelope.e_flags;
/*
-static char sccsid[] = "@(#)savemail.c 6.12 (Berkeley) %G%";
+static char sccsid[] = "@(#)savemail.c 6.13 (Berkeley) %G%";
#endif /* not lint */
# include <sys/types.h>
#endif /* not lint */
# include <sys/types.h>
- define('g', "\201f", e);
- define('<', "\201f", e);
- ee = newenvelope(&errenvelope);
+ define('g', e->e_sender, e);
+ define('<', e->e_returnpath, e);
+ ee = newenvelope(&errenvelope, e);
define('a', "\201b", ee);
ee->e_puthdr = putheader;
ee->e_putbody = errbody;
define('a', "\201b", ee);
ee->e_puthdr = putheader;
ee->e_putbody = errbody;
-static char sccsid[] = "@(#)srvrsmtp.c 6.16 (Berkeley) %G% (with SMTP)";
+static char sccsid[] = "@(#)srvrsmtp.c 6.17 (Berkeley) %G% (with SMTP)";
-static char sccsid[] = "@(#)srvrsmtp.c 6.16 (Berkeley) %G% (without SMTP)";
+static char sccsid[] = "@(#)srvrsmtp.c 6.17 (Berkeley) %G% (without SMTP)";
#endif
#endif /* not lint */
#endif
#endif /* not lint */
/* clean up a bit */
gotmail = FALSE;
dropenvelope(e);
/* clean up a bit */
gotmail = FALSE;
dropenvelope(e);
- CurEnv = e = newenvelope(e);
+ CurEnv = e = newenvelope(e, CurEnv);
e->e_flags = BlankEnvelope.e_flags;
break;
e->e_flags = BlankEnvelope.e_flags;
break;
/* clean up a bit */
gotmail = FALSE;
dropenvelope(e);
/* clean up a bit */
gotmail = FALSE;
dropenvelope(e);
- CurEnv = e = newenvelope(e);
+ CurEnv = e = newenvelope(e, CurEnv);
break;
case CMDVRFY: /* vrfy -- verify address */
break;
case CMDVRFY: /* vrfy -- verify address */
-static char sccsid[] = "@(#)version.c 6.28 (Berkeley) %G%";
+static char sccsid[] = "@(#)version.c 6.29 (Berkeley) %G%";
-char Version[] = "ALPHA-6.28";
+char Version[] = "ALPHA-6.29";