home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 52
/
Amiga_Dream_52.iso
/
Amiga
/
Internet
/
Mail
/
iris.lha
/
Iris
/
MoveMsg.irx
< prev
next >
Wrap
Text File
|
1998-04-04
|
1KB
|
81 lines
/* REXX script to transfer message(s) to another folder */
/* $VER: MoveMsg.irx V1.1 (supplied with Iris V1.3) */
address IRIS
options results
options failat 11
'LOCKGUI'
signal on break_c
'GETNUMSELECTED'
n = result
if rc > 0 then do
'ASKCHOICE "Transfer message(s)" "This script needs at*Nleast V1.3 of Iris." "**_OK"'
signal break_c
end
else nop
if n = 0 then do
'ASKCHOICE "Transfer message(s)" "Select at least one*Nmessage first!" "**_OK"'
signal break_c
end
else nop
'ASKFOLDER'
if rc ~= 0 then do
signal break_c
end
else nop
dest = result
'GETFOLDER'
if result = dest then do
'ASKCHOICE "Transfer message(s)" "Impossible action:*NSame folder selected!" "**_OK"'
signal break_c
end
else nop
i = 0
err = ''
'GETNUMSELECTED'
n = result
if rc > 0 then do
'ASKCHOICE "Transfer message(s)" "This script needs at*Nleast V1.3 of Iris." "**_OK"'
signal break_c
end
else nop
if n = 0 then do
'ASKCHOICE "Transfer message(s)" "Did you click on the listview???" "**_OK"'
end
else nop
do i=0 to n-1
'MESSAGEFILE' i
msg = result
if rc > 0 then do
err = 'Did you click on the listview???'
leave i
end
else nop
'READMESSAGE "'||msg||'" 0 TO "'||dest||'"'
if rc > 0 then do
err = 'The READMESSAGE command failed.'
leave i
end
else nop
end
if err ~= '' then do
'ASKCHOICE "Transfer message(s)" "'||err||'" "**_OK"'
end
else do
'DELETE'
end
signal break_c
exit
break_c:
'UNLOCKGUI'
exit