Lines Matching refs:MainEnvelope

102 static ENVELOPE	MainEnvelope;	/* the envelope around the basic letter */  variable
529 STRUCTCOPY(NullAddress, MainEnvelope.e_from);
2089 CurEnv = newenvelope(&MainEnvelope, &BlankEnvelope,
2091 MainEnvelope.e_flags = BlankEnvelope.e_flags;
2109 macdefine(&(MainEnvelope.e_macro), A_PERM,
2124 testmodeline("/quit", &MainEnvelope);
2132 testmodeline(buf, &MainEnvelope);
2368 disconnect(2, &MainEnvelope);
2400 macdefine(&MainEnvelope.e_macro, A_TEMP,
2452 log_sendmail_pid(&MainEnvelope);
2546 log_sendmail_pid(&MainEnvelope);
2568 (void) dropenvelope(&MainEnvelope, true, false);
2576 p_flags = getrequests(&MainEnvelope);
2627 sm_rpool_free(MainEnvelope.e_rpool);
2628 (void) newenvelope(&MainEnvelope, &MainEnvelope,
2714 MainEnvelope.e_flags |= EF_DISCARD;
2730 smtp(nullserver, *p_flags, &MainEnvelope);
2741 sm_rpool_free(MainEnvelope.e_rpool);
2742 clearenvelope(&MainEnvelope, false, sm_rpool_new_x(NULL));
2745 set_delivery_mode(SM_VERIFY, &MainEnvelope);
2751 MainEnvelope.e_flags |= EF_GLOBALERRS|EF_LOGSENDER;
2758 initsys(&MainEnvelope);
2759 macdefine(&MainEnvelope.e_macro, A_PERM, macid("{ntries}"), "0");
2760 macdefine(&MainEnvelope.e_macro, A_PERM, macid("{nrcpts}"), "0");
2761 setsender(from, &MainEnvelope, NULL, '\0', false);
2763 (!bitnset(M_LOCALMAILER, MainEnvelope.e_from.q_mailer->m_flags) ||
2764 strcmp(MainEnvelope.e_from.q_user, RealUserName) != 0))
2766 auth_warning(&MainEnvelope, "%s set sender to %s using -%c",
2777 fv = macvalue('f', &MainEnvelope);
2779 MainEnvelope.e_auth_param = NULL;
2785 &MainEnvelope)) + 2;
2789 &MainEnvelope));
2793 MainEnvelope.e_auth_param = sm_rpool_strdup_x(MainEnvelope.e_rpool,
2798 if (macvalue('s', &MainEnvelope) == NULL)
2799 macdefine(&MainEnvelope.e_macro, A_PERM, 's', RealHostName);
2804 MainEnvelope.e_to = NULL;
2805 MainEnvelope.e_flags |= EF_GLOBALERRS;
2812 collect(InChannel, false, NULL, &MainEnvelope, true);
2823 sendtoargv(av, &MainEnvelope);
2840 for (q = MainEnvelope.e_sendqueue; q != NULL; q = q->q_next)
2849 MainEnvelope.e_to = NULL;
2867 savedflags = MainEnvelope.e_flags & EF_FATALERRS;
2868 MainEnvelope.e_flags |= EF_GLOBALERRS;
2869 MainEnvelope.e_flags &= ~EF_FATALERRS;
2872 collect(InChannel, false, NULL, &MainEnvelope, true);
2881 logundelrcpts(&MainEnvelope,
2882 MainEnvelope.e_message,
2892 if (bitset(EF_CLRQUEUE, MainEnvelope.e_flags))
2902 PRT_NONNEGL(MainEnvelope.e_msgsize));
2903 macdefine(&MainEnvelope.e_macro, A_TEMP,
2907 MainEnvelope.e_flags |= savedflags;
2913 MainEnvelope.e_from.q_paddr);
2916 if (MainEnvelope.e_quarmsg != NULL)
2917 markstats(&MainEnvelope, NULL, STATS_QUARANTINE);
2926 if (!split_by_recipient(&MainEnvelope) &&
2927 bitset(EF_FATALERRS, MainEnvelope.e_flags))
2933 for (e = &MainEnvelope; e != NULL; e = e->e_sibling, i++)