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

Conference iosg::all-in-1_v30

Title:*OLD* ALL-IN-1 (tm) Support Conference
Notice:Closed - See Note 4331.l to move to IOSG::ALL-IN-1
Moderator:IOSG::PYE
Created:Thu Jan 30 1992
Last Modified:Tue Jan 23 1996
Last Successful Update:Fri Jun 06 1997
Number of topics:4343
Total number of notes:18308

500.0. "Forwarding final attachment easily" by YUPPY::MOYES (Working in Finance <> Making Money) Thu Apr 16 1992 00:06

    Concentrating as heavily as we are on revenue NOW, there is something
    you ALL-IN-1 wizards could do of practical and quick value. Do I have
    your attention ?!
    
    Many person-hours and much machine resource is spent internally in
    reading the headers of mail which has been forwarded endlessly. Often
    the meat of the mail is short and useful, but the effort in getting it
    is silly. This is just a product of a big system growing without too
    much discipline and with powerful aids such as distribution lists.
    
    Obviously things would be better if those who do forwarding took the
    trouble to just forward the one document, and I have persuaded some of
    the worst offenders to do so. But it IS a lot of trouble, and they -
    and others - have responded asking if they could have a UDP which
    
    FORWARDS THE LAST ATTACHMENT OF A SET
    
    Possible ? Easy ?
    
    Looking forward to some help here - I estimate that I could squeeze in
    2 more customer calls a week if I wasn't ploughing through such a
    mountain of junk. Now multiply that up and you see what I mean ?
    	
    Martin
T.RTitleUserPersonal
Name
DateLines
500.1Facts, humor, and a scriptBUFFER::VICKERSIf it helps a customer, DO ITThu Apr 16 1992 03:2353
    I'm not sure what Q4 has to do with much in this topic.  Until the
    company gets rid of the many thousands of bozos in middle management
    who place numbers and their careers ahead of the customers' interests
    then there is little point in worrying about survival.  Afterall, we
    have the BO types to worry about numbers, right?     :')

    Anyway, back to our story.  Following the <ff> is a crude script that
    does what you seem to want.

    I hope that it helps.

    Keep the faith,
    don
    
    ! FORWARD_LAST.SCP              Forward last attachment of current message
    !

    ! Save the current message context

            get #EM_CURMES = oa$curmes
            GET #ATTFILE = ''
            FOR CAB$ATTACH DO GET #ATTFILE = .VALUE
            .IF #ATTFILE EQS '' THEN .GOTO NO_ATTACH
    !
    !               We now have the pointer to the last attachment - file it
    !
            GET #FOLDER = "DELETE THIS SUCKER"
            GET #TITLE = "DELETE ME TOO!"
            CABINET FILE_ATTACHMENT ,#ATTFILE,#FOLDER,#TITLE
            .IF OA$STATUS NE 1 THEN .GOTO FILE_FAILED
            GET #TMPDOC = OA$CURDOC
    !
    !               Make it the message, forward it, and blow it (away)
            MAIL GET #TMPDOC
            MAIL FORWARD
            CABINET DELETE_DOCUMENT #TMPDOC
            .GOTO FINI

    !
    !               Error messages
    !
    .LABEL NO_ATTACH
            DISPLAY There are no attachments to this message
            .GOTO FINI
    .LABEL FILE_FAILED
            DISPLAY Unable to file the message
    !
    .LABEL FINI
            MAIL GET #EM_CURMES
            .EXIT
    !
    ! [End]

500.2Nothing happens...?YUPPY::MOYESWorking in Finance &lt;&gt; Making MoneyThu Apr 16 1992 16:0710
    Thanks for the prompt response.
    
    On invoking the script (I put it into a UDP) I get the display:
    "Invoking UDP......." but then the cursor returns to the CHOICE field
    and nothing else happens.
    
    Am I missing something ? (I am calling the UDP from the EMC form)
    
    Martin
    
500.3IOSG::MAURICEIOSG ain't a place to raise a kidThu Apr 16 1992 16:2122
    That's because Don gave you a DO script and UDPs are SCRIPT scripts!
    Far from obvious!!
    
    Anyway to circumvent the problem delete your UDP and make another one
    which has one line:
    
    .fx do forward_last
    
    In SCRIPT scripts the processor is expecting to simulate what the user
    types in. But there is special processing of lines beiginning with
    script directives such as .FX (they all begin with .)
    
    The .fx tells the script processor to execute the rest of the line as
    an ALL-IN-1 function. DO is an ALL-IN-1 function that will execute a DO
    script, such as Don's forward_last.
    
    I hope this will be beginning of many happy hours of ALL-IN-1
    programming for you, rather than having put you off for life!
    
    Cheers
    
    Stuart
500.4Navigation during a ReadIOSG::NEWLANDRichard Newland, IOSG, REO1-D/4AThu Apr 16 1992 17:3463
I agree that it is best to forward only the relevant attachments but when
this isn't done do you fully utilize the navigation facilities available
during a Read?

In ALL-IN-1 V2.4 these are:

    DOWN ARROW		move forward one line
    UP ARROW		move backward one line

    NEXT SCREEN		move forward one screen
    PREV SCREEN		move backward one screen

    GOLD DOWN ARROW	move forward to next page
    GOLD UP ARROW	move backward to previous page (or top of current 
    			page)

    NA			move forward to next attachment
    PA			move backward to previous attachment (or top of
    			current attachment)

    GOLD T		Move to top of message
    GOLD B		Move to bottom of last attachment



Therefore to move quickly to the last attachment you only need to type:

    GOLD B	to move to the bottom of the last attachment, and
    PA		to move to the top of this attachment




ALL-IN-1 V3.0 has all the V2.4 options plus:

    NSC			move forward one screen [same as NEXT SCREEN]
    PSC			move backward one screen [same as PREV SCREEN]

    NP			move forward to next page [same as GOLD DOWN ARROW]
    PP			move backward to previous page (or top of current 
    			page) [same as GOLD UP ARROW]


ALL-IN-1 V3.0 allows a replication count to be specified.  For example,
typing 5 NEXT-SCREEN will move forward by 5 screens. 
    

ALL-IN-1 V3.0 supports searching for text strings with the following 
options:

    FIND or TS		Displays a menu to specify the search text and
			direction 

    <text>FIND		Allows a short text string to be specified without 
			displaying the menu - the search is performed in
			the current direction 

    GOLD FIND or CTS	Searches for the current text in the current 
			direction



Richard    
500.5What .0 originally saidAIMTEC::WICKS_AMore Ship dates than actual ShipsFri Apr 17 1992 00:137
    For those confused by Don's humour in .1 - I have since changed the
    note title of the base note from "need help surviving Q4" or something
    like that.
    
    Regards,
    
    Andrew.D.Wicks
500.6And the script goes where ?YUPPY::MOYESWorking in Finance &lt;&gt; Making MoneyFri Apr 17 1992 15:107
    And a final question....where do I put the script file itself ?
    
    BTW, I DO use all the short cuts mentioned - I still actually spend
    more time going through the "pre-reading" than reading the useful text,
    in a significant proportion of messages.
    
    Happy Easter !
500.7Put it your [.A1] or whatever it's called...HYTIDE::CREAMERKeep a low profileFri Apr 17 1992 17:5114
    
    Martin,
    
    
>>                      -< And the script goes where ? >-
    ----------------------------------------------------------------------------
>>  And a final question....where do I put the script file itself ?
    
    The script file would go in your ALL-IN-1 directory...
    
    HETYT - That's "Happy Easter To You Too"!!,
    
    Jack
    
500.8It works !YUPPY::MOYESWorking in Finance &lt;&gt; Making MoneyThu Apr 23 1992 01:044
    Just to finish this note properly, the script in 500.1 actually works
    (thanks Don !). I don't mean it just forwards the last attachment, I
    mean it is saving me and my colleagues a significant amount of time in
    our daily work. Good value ! :-}