Lines Matching refs:MainEnvelope
97 static ENVELOPE MainEnvelope; /* the envelope around the basic letter */ variable
524 STRUCTCOPY(NullAddress, MainEnvelope.e_from);
2083 CurEnv = newenvelope(&MainEnvelope, &BlankEnvelope,
2085 MainEnvelope.e_flags = BlankEnvelope.e_flags;
2103 macdefine(&(MainEnvelope.e_macro), A_PERM,
2118 testmodeline("/quit", &MainEnvelope);
2126 testmodeline(buf, &MainEnvelope);
2360 disconnect(2, &MainEnvelope);
2392 macdefine(&MainEnvelope.e_macro, A_TEMP,
2444 log_sendmail_pid(&MainEnvelope);
2538 log_sendmail_pid(&MainEnvelope);
2560 (void) dropenvelope(&MainEnvelope, true, false);
2568 p_flags = getrequests(&MainEnvelope);
2619 sm_rpool_free(MainEnvelope.e_rpool);
2620 (void) newenvelope(&MainEnvelope, &MainEnvelope,
2695 MainEnvelope.e_flags |= EF_DISCARD;
2711 smtp(nullserver, *p_flags, &MainEnvelope);
2722 sm_rpool_free(MainEnvelope.e_rpool);
2723 clearenvelope(&MainEnvelope, false, sm_rpool_new_x(NULL));
2726 set_delivery_mode(SM_VERIFY, &MainEnvelope);
2732 MainEnvelope.e_flags |= EF_GLOBALERRS|EF_LOGSENDER;
2739 initsys(&MainEnvelope);
2740 macdefine(&MainEnvelope.e_macro, A_PERM, macid("{ntries}"), "0");
2741 macdefine(&MainEnvelope.e_macro, A_PERM, macid("{nrcpts}"), "0");
2742 setsender(from, &MainEnvelope, NULL, '\0', false);
2744 (!bitnset(M_LOCALMAILER, MainEnvelope.e_from.q_mailer->m_flags) ||
2745 strcmp(MainEnvelope.e_from.q_user, RealUserName) != 0))
2747 auth_warning(&MainEnvelope, "%s set sender to %s using -%c",
2758 fv = macvalue('f', &MainEnvelope);
2760 MainEnvelope.e_auth_param = NULL;
2766 &MainEnvelope)) + 2;
2770 &MainEnvelope));
2774 MainEnvelope.e_auth_param = sm_rpool_strdup_x(MainEnvelope.e_rpool,
2779 if (macvalue('s', &MainEnvelope) == NULL)
2780 macdefine(&MainEnvelope.e_macro, A_PERM, 's', RealHostName);
2785 MainEnvelope.e_to = NULL;
2786 MainEnvelope.e_flags |= EF_GLOBALERRS;
2793 collect(InChannel, false, NULL, &MainEnvelope, true);
2804 sendtoargv(av, &MainEnvelope);
2821 for (q = MainEnvelope.e_sendqueue; q != NULL; q = q->q_next)
2830 MainEnvelope.e_to = NULL;
2848 savedflags = MainEnvelope.e_flags & EF_FATALERRS;
2849 MainEnvelope.e_flags |= EF_GLOBALERRS;
2850 MainEnvelope.e_flags &= ~EF_FATALERRS;
2853 collect(InChannel, false, NULL, &MainEnvelope, true);
2862 logundelrcpts(&MainEnvelope,
2863 MainEnvelope.e_message,
2873 if (bitset(EF_CLRQUEUE, MainEnvelope.e_flags))
2883 PRT_NONNEGL(MainEnvelope.e_msgsize));
2884 macdefine(&MainEnvelope.e_macro, A_TEMP,
2888 MainEnvelope.e_flags |= savedflags;
2894 MainEnvelope.e_from.q_paddr);
2897 if (MainEnvelope.e_quarmsg != NULL)
2898 markstats(&MainEnvelope, NULL, STATS_QUARANTINE);
2907 if (!split_by_recipient(&MainEnvelope) &&
2908 bitset(EF_FATALERRS, MainEnvelope.e_flags))
2914 for (e = &MainEnvelope; e != NULL; e = e->e_sibling, i++)