🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.mh
Article #1392

Re: MH 6.8 problem of sending mail with bcc field

#1392
From: Paul Pomes - UofIllinois CSO
Date: Thu, 07 Jan 1993 15:03
34 lines
1759 bytes
kawamoto@ics.osaka-u.ac.jp (KAWAMOTO Yosihisa) writes:

>Hello everyone,
>
>I have a problem in MH 6.8.  I cannot send mail with bcc field.
>'send' complains in mail with bcc field like:
>kawamoto$ send
>Use "/home/rose/kawamoto/mail/drafts/2"? y
>post: problem initializing server; [RPLY] 503 Sender already specified
>send: message not delivered to anyone
>kawamoto$

This is a problem with sendmail due to the lack of resetting when ONEX has
been given.  Vanilla sendmail forks and runs in the child after receiving
the MAIL command.  A RSET causes the child to exit and with it all the
old state information fades away.  The ONEX command prevents the fork()
and so RSET becomes a no-op.  The fix is to add some code to srvrsmtp.c
to handle RSET after ONEX.  Here's a rough code fragment:

		  case CMDRSET:		/* rset -- reset state */
			message("250", "Reset state");
			if (OneXact)
			{
				hasmail = FALSE;
				dropenvelope(CurEnv);
				CurEnv = newenvelope(CurEnv);
				CurEnv->e_flags = BlankEnvelope.e_flags;
			}
			if (InChild)
				finis();
			break;

-- 
Freedom is a family value.  Ski Colorado.	--Paul Pomes (1992)
Technical Details
Message-ID: <C0HoIA.4B0@news.cso.uiuc.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!howland.reston.ans.net!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uxc.cso.uiuc.edu!paul
References: <KAWAMOTO.93Jan7144952@daisy.ics.osaka-u.ac.jp>

Show Full Headers
Complete Article Headers
Newsgroups: comp.mail.mh
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!howland.reston.ans.net!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uxc.cso.uiuc.edu!paul
From: paul@uxc.cso.uiuc.edu (Paul Pomes - UofIllinois CSO)
Subject: Re: MH 6.8 problem of sending mail with bcc field
References: <KAWAMOTO.93Jan7144952@daisy.ics.osaka-u.ac.jp>
Message-ID: <C0HoIA.4B0@news.cso.uiuc.edu>
Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
Reply-To: Paul-Pomes@uiuc.edu
Organization: University of Illinois at Urbana
Date: Thu, 7 Jan 1993 15:03:44 GMT
Lines: 34