[comp.mail.sendmail] get elm and sendmail to work on SCO

cliff@demon.co.uk (Cliff Stanford) (02/10/91)

In article <1293@ap542.uucp> mike@ap542.uucp (Mike Hoffmann) writes:
>
>Can anyone help to get elm and sendmail to work correctly on SCO UNIX?
>
	Why on earth do this when SCO's MMDF is far easier to configure
and works fine?
		Cliff.
-- 
Cliff Stanford				Email:	cliff@demon.co.uk (Work)
Demon Systems Limited				cms@demon.co.uk   (Home)
42 Hendon Lane				Phone:	081-349 0063	  (Office)
London	N3 1TT	England				0860 375870	  (Mobile)

johnw@group1.UUCP (John Wheeler) (02/13/91)

In article <1293@ap542.uucp> mike@ap542.uucp (Mike Hoffmann) writes:
>Hello!
>
>Can anyone help to get elm and sendmail to work correctly on SCO UNIX?
>
>Sendmail works fine by itself, as does elm. But sendmail still puts
>the quadruple ^A between messages, and then I always get "corrupt folder"
>errors from elm.

Yep, I had to work on this one about 30 minutes myself...
The following code is insertable around line 344 in newmbox.c:

	    /** flush leading blank lines before next test... **/
	    if (strlen(buffer) == 1) {
	      fbytes++;
	      continue;	
	    }
	    else
	      first_line = FALSE;
	    
		>>>>> THIS IS THE INSERTED CODE:
	    /** flush leading control-A lines found in MMDF: **/
	    if (buffer[0] == '\001') {
	      fbytes+=5;
	      continue;	
	    }
		>>>>> THAT'S ALL!

	    if (! first_word(buffer, "From ") && !forwarding_mail) {
	      PutLine0(LINES, 0,
		  "\n\rFolder is corrupt!!  I can't read it!!\n\r\n\r");
	      fflush(stderr);

-- 
John Wheeler
Database Design Specialist/4GL/Unix Programmer
Group One Ltd., (Securities Trading)
San Francisco

syd@DSI.COM (Syd Weinstein) (02/14/91)

johnw@group1.UUCP (John Wheeler) writes:

>In article <1293@ap542.uucp> mike@ap542.uucp (Mike Hoffmann) writes:
>>Sendmail works fine by itself, as does elm. But sendmail still puts
>>the quadruple ^A between messages, and then I always get "corrupt folder"
>>errors from elm.
>Yep, I had to work on this one about 30 minutes myself...
>The following code is insertable around line 344 in newmbox.c:
patch deleted

Don't do this, it will make the mailbox unusable for all non Elm
mail user agents.  Instead, reconfigure Elm to use the MMDF, then
Elm skips correctly over the ^A^A^A^A's.

Also, for SCO UNIX, use the MMDF program submit  instead of sendmail.
Support for submit as SCO has played with it is included in Elm 2.3 PL11.
-- 
=====================================================================
Sydney S. Weinstein, CDP, CCP                   Elm Coordinator
Datacomp Systems, Inc.                          Voice: (215) 947-9900
syd@DSI.COM or dsinc!syd                        FAX:   (215) 938-0235