[comp.unix.microport] svbinmail for uport 386 3.0xx

rp@osc.COM (Rich Patterson) (07/18/89)

Hi,
    Does anybody have a copy of svbinmail.c from smail 2.5 that
    works with the new mailx and mail in uport 386 3.0xx.  I am assuming
    that since mail changed for Sys V release 3.x that someone has
    submitted a patch or source for svbinmail.  If someone has a copy
    could you e-mail it to me please.  THanks in advance.

Rich P.
rp@osc.com
{pacbell,amdcad}!osc!rp

wnp@attctc.Dallas.TX.US (Wolf Paul) (07/20/89)

In article <418@osc.COM> rp@osc.COM (Rich Patterson) writes:
>Hi,
>    Does anybody have a copy of svbinmail.c from smail 2.5 that
>    works with the new mailx and mail in uport 386 3.0xx.  I am assuming
>    that since mail changed for Sys V release 3.x that someone has
>    submitted a patch or source for svbinmail.  

I am not sure I understand the question. I am running smail 2.5 on my 
V/386 3.0e system, compiled without change from the same C source file
that I used on my previous two systems, an AT clone running V/AT 2.4 and
an AT&T UNIX PC/3b1 running a hybrid SVR2.

Mailx does not even enter the picture when using smail, except to specify
"sendmail=/bin/smail" in your .mailrc file.

And looking at svbinmail.c, all it does is call either "/bin/lmail"
(which should be a link to your original /bin/mail) to read mail, or
"/bin/smail" to send mail. If you want it to call mailx, or elm, or
something else to read mail, you can change the READER define at the 
beginning of the code. You probably should do that if you have linked
/bin/lmail to a program like Jon Zeeff's lmail.

But I cannot for the best of me find anything incompatible with SysVR3
in svbinmail.c.

Wolf
-- 
Wolf N. Paul * 3387 Sam Rayburn Run * Carrollton TX 75007 * (214) 306-9101
UUCP:   {texbell, attctc, dalsqnt}!dcs!wnp
DOMAIN: wnp@attctc.dallas.tx.us or wnp%dcs@texbell.swbt.com
        NOTICE: As of July 3, 1989, "killer" has become "attctc".

det@hawkmoon.MN.ORG (Derek E. Terveer) (07/24/89)

In article <8714@attctc.Dallas.TX.US>, wnp@attctc.Dallas.TX.US (Wolf Paul) writes:
> But I cannot for the best of me find anything incompatible with SysVR3
> in svbinmail.c.

As i recall, both for smail(2.5) and for smail(3.1.x), i had to add the -s
option (for specifying subject from the command line) to the getopt() call and
the case statement that follows for it to work correctly on my uPort Sys V
386/3.0e system (as well as att unix, etc).

I believe that was the only incompatibility and really, that was just a bug or
typo (or so i would like to believe, anyway -- although why this well known
omission reappeared in smail(3.1.x) is beyond me)

derek
-- 
Derek Terveer 	    det@hawkmoon.MN.ORG || ..!uunet!rosevax!elric!hawkmoon!det
		    w(612)681-6986   h(612)789-8643

"A proper king is crowned" -- Thomas B. Costain

ade@kralc.UUCP (Adrian Miranda) (08/09/89)

In article <1076@hawkmoon.MN.ORG>, det@hawkmoon.MN.ORG (Derek E. Terveer) writes
> As i recall, both for smail(2.5) and for smail(3.1.x), i had to add the -s
> option (for specifying subject from the command line) to the getopt() call and
> the case statement that follows for it to work correctly on my uPort Sys V
> 386/3.0e system (as well as att unix, etc).
> 
> I believe that was the only incompatibility and really, that was just a bug or

Yes, I just ran into the -s thing myself.  It appears easy enough to add the
-s option to svbinmail.c, but I'm still a bit worried.  If I type 
/bin/lmail -gobbledygookandstrangeletters it will print out a usage message
which includes a lot of options which are not included in svbinmail.c (of
course I have only a release 2 manual, so I don't know what they do).
Does anyone know if these other options are ever used?

Also there is another problem with smail (2.5).  If I try to send mail 
from an account with a restricted shell, the mail simply disappears, no
error message, no entry in /usr/spool/uucp/mail.log.  I haven't found a
mention of this in the any of the docs, though I'm haven't really looked
that hard.  I'm just hoping someone else will know.

Please send mail to me, I will summarize if appropriate.  By the way, if 
I want to use Jon Zeefs' lmail, do I have to make any changes to smail,
perhaps undefine ALIAS or something like that?

Adrian Miranda
uunet!kralc!ade