🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.mush
Article #504

Re: Missing Data in curses mode with 7.1.2

#504
From: Barton E. Schaefer
Date: Mon, 10 Sep 1990 05:39
58 lines
2807 bytes
In article <90250.104756QQ11@LIVERPOOL.AC.UK> QQ11@LIVERPOOL.AC.UK writes:
} Version 7.1.2 under HP-UX 7.0
} 
} [...] the following behaviour is evident with curses:
[Sample omitted]
} 
} There should be numbers displayed at the question marks but cols 79 and
} 80 are actually blank (the 1 shown above is from 100).

Mush won't display anything in the last screen column because some
terminal types advance the cursor to the next line whenever anything is
placed there.  Some implementations of curses mis-handle this, and mush
tries to work with the lowest common denominator in curses.

There are several (a lot, actually) places in curses code scattered
through several files where COLS-2 was (mistakenly?) used instead of
COLS-1 in handling this problem.  Dan can shed more light on reasons.
It's been that way as long as curses mode has existed.  Most people put
the subject at the far right, so it's never been a problem.  I don't
think you're going to see curses mode using that far-right column, but
we'll problably widen those COLS-2 to COLS-1 in the next patch.

} Point 2:
} How can I introduce a facility that for a particular mail item, a
} 'Reply-To:' header will be used pointing towards a specific user@site?
} Yes I know I can use the 'edit headers' facility but not everyone
} is/will be happy with this. I would like to set up a cmd 'replyto'
} with an optional argument such that if no argument is given, the
} header points to me otherwise points to the given argument.

The only way to create cmds with optional arguments is to source
script files; conditionals are not handled from the command line.
To address (pun) your specific question, the way to install the
Reply-To: header is with a my_hdr command, thus

    my_hdr Reply-To: QQ11@LIVERPOOL.AC.UK (Alan Thew)

So you want something like

    # Script to create a Reply-To: header
    # Place this script in $folder/.replyto
    # Usage:
    #	cmd replyto "set args='\!*'; source +.replyto"
    #	replyto address
    if "X$args:1" == X then
	# No arguments given, use the current address
	my_hdr Reply-To: "$USER"@"$hostname:1" ("$realname")
    else
	my_hdr Reply-To: "$args"
    endif

To remove the header, you use

    un_hdr Reply-To:

which of course could be another cmd ....
-- 
Bart Schaefer						schaefer@cse.ogi.edu
Technical Details
Message-ID: <12017@ogicse.ogi.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!dptg!ulysses!andante!mit-eddie!snorkelwacker!usc!ucsd!ogicse!schaefer
References: <90250.104756QQ11@LIVERPOOL.AC.UK>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!att!dptg!ulysses!andante!mit-eddie!snorkelwacker!usc!ucsd!ogicse!schaefer
From: schaefer@ogicse.ogi.edu (Barton E. Schaefer)
Newsgroups: comp.mail.mush
Subject: Re: Missing Data in curses mode with 7.1.2
Message-ID: <12017@ogicse.ogi.edu>
Date: 10 Sep 90 05:39:51 GMT
References: <90250.104756QQ11@LIVERPOOL.AC.UK>
Organization: Oregon Graduate Institute (formerly OGC), Beaverton, OR
Lines: 58