Lines Matching refs:MainEnvelope

101 static ENVELOPE	MainEnvelope;	/* the envelope around the basic letter */  variable
527 STRUCTCOPY(NullAddress, MainEnvelope.e_from);
2075 CurEnv = newenvelope(&MainEnvelope, &BlankEnvelope,
2077 MainEnvelope.e_flags = BlankEnvelope.e_flags;
2095 macdefine(&(MainEnvelope.e_macro), A_PERM,
2110 testmodeline("/quit", &MainEnvelope);
2118 testmodeline(buf, &MainEnvelope);
2346 disconnect(2, &MainEnvelope);
2378 macdefine(&MainEnvelope.e_macro, A_TEMP,
2430 log_sendmail_pid(&MainEnvelope);
2524 log_sendmail_pid(&MainEnvelope);
2546 (void) dropenvelope(&MainEnvelope, true, false);
2554 p_flags = getrequests(&MainEnvelope);
2569 sm_rpool_free(MainEnvelope.e_rpool);
2570 (void) newenvelope(&MainEnvelope, &MainEnvelope,
2645 MainEnvelope.e_flags |= EF_DISCARD;
2661 smtp(nullserver, *p_flags, &MainEnvelope);
2672 sm_rpool_free(MainEnvelope.e_rpool);
2673 clearenvelope(&MainEnvelope, false, sm_rpool_new_x(NULL));
2676 set_delivery_mode(SM_VERIFY, &MainEnvelope);
2682 MainEnvelope.e_flags |= EF_GLOBALERRS|EF_LOGSENDER;
2689 initsys(&MainEnvelope);
2690 macdefine(&MainEnvelope.e_macro, A_PERM, macid("{ntries}"), "0");
2691 macdefine(&MainEnvelope.e_macro, A_PERM, macid("{nrcpts}"), "0");
2692 setsender(from, &MainEnvelope, NULL, '\0', false);
2694 (!bitnset(M_LOCALMAILER, MainEnvelope.e_from.q_mailer->m_flags) ||
2695 strcmp(MainEnvelope.e_from.q_user, RealUserName) != 0))
2697 auth_warning(&MainEnvelope, "%s set sender to %s using -%c",
2708 fv = macvalue('f', &MainEnvelope);
2710 MainEnvelope.e_auth_param = NULL;
2716 &MainEnvelope)) + 2;
2720 &MainEnvelope));
2724 MainEnvelope.e_auth_param = sm_rpool_strdup_x(MainEnvelope.e_rpool,
2729 if (macvalue('s', &MainEnvelope) == NULL)
2730 macdefine(&MainEnvelope.e_macro, A_PERM, 's', RealHostName);
2735 MainEnvelope.e_to = NULL;
2736 MainEnvelope.e_flags |= EF_GLOBALERRS;
2743 collect(InChannel, false, NULL, &MainEnvelope, true);
2754 sendtoargv(av, &MainEnvelope);
2771 for (q = MainEnvelope.e_sendqueue; q != NULL; q = q->q_next)
2780 MainEnvelope.e_to = NULL;
2798 savedflags = MainEnvelope.e_flags & EF_FATALERRS;
2799 MainEnvelope.e_flags |= EF_GLOBALERRS;
2800 MainEnvelope.e_flags &= ~EF_FATALERRS;
2803 collect(InChannel, false, NULL, &MainEnvelope, true);
2812 logundelrcpts(&MainEnvelope,
2813 MainEnvelope.e_message,
2823 if (bitset(EF_CLRQUEUE, MainEnvelope.e_flags))
2833 MainEnvelope.e_msgsize);
2834 macdefine(&MainEnvelope.e_macro, A_TEMP,
2838 MainEnvelope.e_flags |= savedflags;
2844 MainEnvelope.e_from.q_paddr);
2847 if (MainEnvelope.e_quarmsg != NULL)
2848 markstats(&MainEnvelope, NULL, STATS_QUARANTINE);
2857 if (!split_by_recipient(&MainEnvelope) &&
2858 bitset(EF_FATALERRS, MainEnvelope.e_flags))
2864 for (e = &MainEnvelope; e != NULL; e = e->e_sibling, i++)