Xref: utzoo comp.mail.sendmail:2701 comp.mail.elm:3675 Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!group1!johnw From: johnw@group1.UUCP (John Wheeler) Newsgroups: comp.mail.sendmail,comp.mail.elm Subject: Re: get elm and sendmail to work on SCO Message-ID: <1991Feb13.063907.1828@group1.UUCP> Date: 13 Feb 91 06:39:07 GMT References: <1293@ap542.uucp> Organization: Group One, Ltd.; San Francisco Lines: 38 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