*BSD News Article 8679


Return to BSD News archive

Path: sserve!manuel.anu.edu.au!munnari.oz.au!news.hawaii.edu!ames!agate!spool.mu.edu!uwm.edu!ogicse!flop.ENGR.ORST.EDU!gaia.ucs.orst.edu!gecko.oes.orst.edu!matt
From: matt@gecko.oes.orst.edu (Matt Curfman)
Newsgroups: comp.unix.bsd
Subject: Re: [386bsd] Anyone got pine to work?
Message-ID: <1fqv1iINNfui@gaia.ucs.orst.edu>
Date: 5 Dec 92 19:13:54 GMT
Article-I.D.: gaia.1fqv1iINNfui
References: <ByrxpM.LqJ@ibmpcug.co.uk>
Organization: Oregon State University, Corvallis OR USA
Lines: 31
NNTP-Posting-Host: ra-box.wtfd.orst.edu

In article <ByrxpM.LqJ@ibmpcug.co.uk> gtoal@ibmpcug.co.uk (Graham Toal) writes:
>
>Bored this evening, I started porting pine because several people had said
>that the mIME extensions were worth the effort.  However, I've been able
>to get it all working *except* posting.  Stuff just seems to go into a black
>hole.  I'm using the sendmail option.  No complaints in the log file - thinks
>its been sent, but nothing turn up.  Did remember to change the const where its
>found to /usr/sbin/sendmail.
>
>Anyone ported this already?  Any hints?

In pine2.4/pine/send.c, somewhere around line 675, there is this line:

sprintf(mail_cmd, "(( %s %s < %s ; rm -rf %s) & )< %s",
	SENDMAIL, SENDMAILFLAGS, tmpfile, tmpfile); 

This creates the system call for sendmail.  I found that the parens and
redirection didn't seem to work with 386bsd, so I changed it to:

sprintf(mail_cmd, "(%s %s < %s ; rm -rf %s) &",
        SENDMAIL, SENDMAILFLAGS, tmpfile, tmpfile);

and this fixed the problem for me. Sorry I don't have any diffs ready :(

-mc
_____________________________________________________________________________
Matt Curfman                                    Almanac Information Archivist 
matt@gecko.oes.orst.edu                     Oregon State University Extension