[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

430.0. "Inter-application cut/paste...whose problem is it?" by DECWET::SCHREIBER (Noting never goes away) Fri Mar 17 1989 14:21

The following works:  Select a mail message with a single click in the mail
directory window.  Then, with Notes, select "create topic".  The (built-in)
editor window comes up.  I can then click MB3, and the selected mail message
is dropped into the Notes edit window.  Nifty!

However, if I select a note in the note directory window, click
on MB3 in the mail edit window, what I get is the Notes directory
line, rather than the contents of the selected note.

Is this a problem in Mail, Notes, or user/RTFM?

Hints or pointers...thanks

-- Benn

T.RTitleUserPersonal
Name
DateLines
430.1Wishlist timeTOOLS::NETHCraig NethFri Mar 17 1989 14:258
  I think it's not so much a problem as a difference of opinion...

  I think what Mail did was nifty.  Notes apparantly didn't think of it,
  or haven't had time to get around to it, or both.

  A wishlist item to Notes is probably in order..

430.2None of the aboveEPIK::BUEHLERSo much noise. So little signal.Sat Mar 18 1989 20:2015
>Is this a problem in Mail, Notes, or user/RTFM?
    
    The global selection mechanism that you refer to (the MB3 paste) is
    subject to interpretation.  The application owning the global selection
    is asked for the contents of the global selection by the application
    wanting the global selection.  It's not something managed by the
    server.  In this case, Notes asks Mail.  Mail can reply with anything
    it likes.  Apparently, they have decided that selecting a mail message
    means selecting the content of the mail message.
    
    It could just as easily have replied with the string "Go away, I want
    to be alone." or the number of the mail message, etc.

John

430.3Consistency is the hobgoblin of small mindsCVG::PETTENGILLmulpSat Mar 18 1989 21:028
It seems to me that mail's action is not intuitive; what I normally expect
is a representation of what I see on the screen copied.  For example, consider
what a quick copy of VUE's file list gives you (expanded file specs).  Should
VUE do the same thing as MAIL?  I think not ?

However, I'm not arguing that MAIL should change, either.  I'll have to try it;
it seems very useful.

430.4EPIK::BUEHLERSo much noise. So little signal.Sun Mar 19 1989 02:1018
>It seems to me that mail's action is not intuitive; what I normally expect
>is a representation of what I see on the screen copied.
    
    This is prime material for a rathole.  :)
    
    What is intuitive is what you expect.  What you expect is what you've
    seen.  What you've seen is simpleminded use of the global selection
    mechanism.  There isn't much abstraction in our application user
    interfaces.  This generally leaves us with just copying text around.
    
>However, I'm not arguing that MAIL should change, either.  I'll have to try it;
>it seems very useful.
    
    Agreed.  Too bad I don't bother with any DECwindows applications except
    DECterm and DECwrite...
    
John

430.5The decision wasn't arbitrary...RTL::HARROWPOSIX what?Mon Mar 20 1989 15:3711
When I implemented this function for Notes, we considered doing what mail
did, but after consulting with the SUE group we decided to only return the
text that was selected.  The global selection mechanism is very general and
when all DEC applications start handling more than just text, it will be
much more powerful.  

Currently, if you want to copy the entire note text all you have to do is
bring up the read window an select the "Select All" option under the Edit menu.

-Jer

430.6Why Mail did what we did...GOSOX::RYANDECwindows MailMon Mar 20 1989 18:4022
	There was a discussion way back when in the XUI (then UID) conference,
	and the general consensus was that that directory line wasn't so
	much a piece of text but a representation of an object (specifically,
	a mail message). When you select a line in the index and choose
	an operation that acts on the selection (such as Move), it acts
	on the message, not the line of the index. Therefore, it seems
	consistent that when another application asks for the global
	selection, it should receive the selected item rather than the
	text of the index line. So, that's how we did it.

	Another aspect of the power of this method - you can select
	several messages with Shift-MB1 and paste them all in one
	fell swoop with MB3. I've used this on occasion to forward
	a Mail conversation to someone, or to gather related mail
	messages into a single file for convenience. An inconsistency
	is that selecting a folder or drawer and trying to paste it
	only copies the name of the folder or drawer, not the entire
	contents (in this case, the cost of accidentally hitting MB3
	is too high).

	Mike

430.7A small problem with Mail's handling of Global SelectIO::MCCARTNEYJames T. McCartney III - DTN 381-2244 ZK02-2/N24Tue Mar 21 1989 17:3930
<rathole alert>

While Mail is free to interpret GS in the way that it does, there is a 
possibility that a user get results which are entirely unexpected with 
possibly disasterous consequences. The scenario goes as follows:

User logs in, creates ususal complement of terminals emualtors and decwindows
native applications one of which is mail. 

User selects a mail message, read the text in which there are DCL commands
embedded. 

User decides they need do to something in the terminal emualtor window. User
reaches for mouse, bumps mouse to termnial emulator window and presses what 
they think is MB1 for focus. They actually hit MB3, causing contents of mail
message to be spewed to terminal. Most lines will be disregareded as garbage 
by DCL but the one or two lines which contain valid DCL will try to execute. 
Depending upon the command, the result could be disasterous. Suppose the message
contained instructions on how to clean out a directory - $DELETE *.*

I know that I'm talking about an error condition, but good human interface 
design also takes this into account. User errors are unavoidable and you must
build the system such that the system/interface minimizes the possibility
for errors.

<end rathole>

 

430.8CASEE::LACROIXGone with the windWed Mar 22 1989 07:2317
    Re .7:

    This is certainly not a new problem. With character cell VAX mail, it's
    very easy to mail a file to someone, ask that person to EXTRACT the
    mail, and TYPE the resulting file (not EXECUTE it): just typing the
    file will cause some DCL to be executed wiping out directories and
    files. One of my fellow colleagues showed me the hack, and it sure is a
    very dangerous thing.

    The bottom line is that it's easy to screw up things, and DECwindows
    mail isn't more guilty that anybody else. If only all DECwindows
    applications had followed DECwindows mail's lead (there is a lot of
    things that DECwindows mail can do with global selection that can't be
    seen yet), DECwindows would be even more impressive than it is.

    Denis.

430.9GOSOX::RYANDECwindows MailWed Mar 22 1989 11:3014
	re .7: And the potential problem certainly isn't restricted to
	selecting a mail message - I would imagine it would be more
	likely to happen by selecting a few lines from a DECterm
	window, or a .COM file being displayed in an editor somewhere.
	I quite often do this to re-execute a set of commands, but that
	set of commands which may do exactly what I need done in one
	DECterm window might be disastrous in another. Them's the breaks...
	The only thing that might help would be a way to stop the paste
	after it has started on the receive end (no, ^X won't do it,
	unfortunately - you have to wait for the whole thing to type
	out).

	Mike

430.10Another case where "quick" could be "oops"PRNSYS::LOMICKAJJeff LomickaWed Mar 22 1989 13:464
The one that causes the most damage to ME is when I accidently move the
mouse and select an extra line while in the process of releasing MB3.


430.11Type executing DCL???DECWIN::FISHERBurns Fisher 381-1466, ZKO3-4/W23Wed Mar 22 1989 14:289
    I find it hard to believe that TYPING a file can cause any DCL from that
    file to be executed.  If you type in the wrong thing to a $INQUIRE, maybe.
    If you do a $WRITE (DCL) of the wrong thing, maybe.  But not TYPE.
    
    Can anyone show a reproducible example of this behavior?
    
    Burns
    

430.12DON'T POST IT HERE!IMZADI::KISERGet humans to do the interface, please.Wed Mar 22 1989 15:526
>>>>Can anyone show a reproducible example of this behavior?

    If you can, DON'T POST IT HERE!  Use MAIL or the telephone to
    explain this.  Procedures which even potentially show a security
    hole shouldn't be posted in a public NOTES file.

430.13MU::PORTERwaiting for BaudotWed Mar 22 1989 16:089
re .-1

Heavens, no!  Don't post it here!  If you posted it here, then we might
learn what the problem is and be able to discuss it intelligently.  Much 
better to keep it in the dark so that vague mumblings about "dangerous
TYPE commands" can traverse the network and cause all manner of
uninformed speculation.


430.14You should always be carefulDECWIN::KLEINWed Mar 22 1989 16:4315
>>    I find it hard to believe that TYPING a file can cause any DCL from that
>>    file to be executed.  If you type in the wrong thing to a $INQUIRE, maybe.
>>    If you do a $WRITE (DCL) of the wrong thing, maybe.  But not TYPE.
>>    
>>    Can anyone show a reproducible example of this behavior?

Security holes like this one should not be posted in Notes files, but
overconfidence is a step on the way to destruction.

Suffice it to say that I know of at least one way to do this (using TYPE).
It depends on the type of terminal being used, and as far as I know,
it cannot be done to a DECwindows DECterm.

-steve-

430.15DECWIN::FISHERBurns Fisher 381-1466, ZKO3-4/W23Thu Mar 23 1989 03:048
    BTW,
    The example I got in the mail depended on tricking the user (by means of
    authoritative sounding directions) into entering the TYPE command
    indirectly.
    
    Burns