Lines Matching refs:MainEnvelope
108 static ENVELOPE MainEnvelope; /* the envelope around the basic letter */ variable
541 STRUCTCOPY(NullAddress, MainEnvelope.e_from);
1381 if (!SMTP_UTF8 && MainEnvelope.e_smtputf8)
2128 CurEnv = newenvelope(&MainEnvelope, &BlankEnvelope,
2130 MainEnvelope.e_flags = BlankEnvelope.e_flags;
2148 macdefine(&(MainEnvelope.e_macro), A_PERM,
2163 testmodeline("/quit", &MainEnvelope);
2171 testmodeline(buf, &MainEnvelope);
2416 disconnect(2, &MainEnvelope);
2448 macdefine(&MainEnvelope.e_macro, A_TEMP,
2505 log_sendmail_pid(&MainEnvelope);
2599 log_sendmail_pid(&MainEnvelope);
2621 (void) dropenvelope(&MainEnvelope, true, false);
2628 p_flags = getrequests(&MainEnvelope);
2679 sm_rpool_free(MainEnvelope.e_rpool);
2680 (void) newenvelope(&MainEnvelope, &MainEnvelope,
2766 MainEnvelope.e_flags |= EF_DISCARD;
2782 smtp(nullserver, *p_flags, &MainEnvelope);
2793 sm_rpool_free(MainEnvelope.e_rpool);
2794 clearenvelope(&MainEnvelope, false, sm_rpool_new_x(NULL));
2797 set_delivery_mode(SM_VERIFY, &MainEnvelope);
2803 MainEnvelope.e_flags |= EF_GLOBALERRS|EF_LOGSENDER;
2810 initsys(&MainEnvelope);
2811 macdefine(&MainEnvelope.e_macro, A_PERM, macid("{ntries}"), "0");
2812 macdefine(&MainEnvelope.e_macro, A_PERM, macid("{nrcpts}"), "0");
2815 if (fromaddr != NULL && (MainEnvelope.e_smtputf8 ||
2816 (MainEnvelope.e_smtputf8 = !asciistr(fromaddr))))
2829 setsender(fromaddr, &MainEnvelope, NULL, '\0', false);
2831 (!bitnset(M_LOCALMAILER, MainEnvelope.e_from.q_mailer->m_flags) ||
2832 strcmp(MainEnvelope.e_from.q_user, RealUserName) != 0))
2834 auth_warning(&MainEnvelope, "%s set sender to %s using -%c",
2845 fv = macvalue('f', &MainEnvelope);
2847 MainEnvelope.e_auth_param = NULL;
2853 &MainEnvelope)) + 2;
2857 &MainEnvelope));
2861 MainEnvelope.e_auth_param = sm_rpool_strdup_x(MainEnvelope.e_rpool,
2866 if (macvalue('s', &MainEnvelope) == NULL)
2867 macdefine(&MainEnvelope.e_macro, A_PERM, 's', RealHostName);
2872 MainEnvelope.e_to = NULL;
2873 MainEnvelope.e_flags |= EF_GLOBALERRS;
2880 collect(InChannel, SMTPMODE_NO, NULL, &MainEnvelope,
2892 sendtoargv(av, &MainEnvelope);
2909 for (q = MainEnvelope.e_sendqueue; q != NULL; q = q->q_next)
2918 MainEnvelope.e_to = NULL;
2925 savedflags = MainEnvelope.e_flags & EF_FATALERRS;
2926 MainEnvelope.e_flags |= EF_GLOBALERRS;
2927 MainEnvelope.e_flags &= ~EF_FATALERRS;
2930 collect(InChannel, SMTPMODE_NO, NULL, &MainEnvelope, true);
2939 logundelrcpts(&MainEnvelope,
2940 MainEnvelope.e_message,
2950 if (bitset(EF_CLRQUEUE, MainEnvelope.e_flags))
2960 PRT_NONNEGL(MainEnvelope.e_msgsize));
2961 macdefine(&MainEnvelope.e_macro, A_TEMP,
2965 MainEnvelope.e_flags |= savedflags;
2971 MainEnvelope.e_from.q_paddr);
2974 if (MainEnvelope.e_quarmsg != NULL)
2975 markstats(&MainEnvelope, NULL, STATS_QUARANTINE);
2984 if (!split_by_recipient(&MainEnvelope) &&
2985 bitset(EF_FATALERRS, MainEnvelope.e_flags))
2991 for (e = &MainEnvelope; e != NULL; e = e->e_sibling, i++)