[comp.soft-sys.andrew] Inappropriate "trst delivery" option

nsb@THUMPER.BELLCORE.COM (Nathaniel Borenstein) (02/13/90)

[I sent out a bug report on this yesterday, but the mail appears to have
been lost -- probably a glitch on our (SMTP) end, if recent experience
is any guide.  So I'm sorry if this turns out to be a duplicate --
believe me, I'd rather not type it all twice!]

There is a minor but real bug in the way messages are Re-Sent at
non-AMDS sites.  The bug is in ams/libs/cui/cuilib.c, and what happens
is that when you re-send a formatted message, you get the "trust the
delivery system" option even if you aren't running the AMDS delivery
system.  (You don't get this option for sending new mail.)  The fix is
to model the re-sending code in cuilib.c on the sending code in
atkams/messages/lib/sendmsg.c, circa line 612.

More specifically, the following two simple changes to the single file
ams/libs/cui/cuilib.c should fix the bug:

Line 3224:  Change the initialization of ExtVec[4] to be NULL -- that
is, you want TWO NULLS at the end of that array. 

Add a new line right before line 3260, saying something like:

ExtVec[4] = CUI_UseAMSDelivery ?  "Trust the delivery system to remove
it as needed": NULL;

I believe that will fix the whole bug.  (Actually, the second fix alone
would fix the bug, but the first one is useful with it because it will
save a few bytes of memory.)    Cheers.  -- Nathaniel