I run Yin in the same .cmd file I use to run Yarn, this way I can see
which areas have new mail before loading Yarn. Some areas I don't care
if I have new mail (save, sent, etc...), so I use REXX to select only
areas I'm those I'm interested in.
Here's part of my yarn.cmd file that loads Yarn.
homedir = value('HOME',,'OS2ENVIRONMENT')
if homedir == '' then do
say 'HOME environment variable not found.'
exit 1
end
call SysFileTree homedir'\mail\*', 'file', 'f'
if file.0 \= 0 then do
do i = 1 to file.0
file.i = substr(file.i, 38)
if pos("Ia" , file.i) > 0 &&,
pos("Os2" , file.i) > 0 &&,
pos("Save" , file.i) > 0 &&,
pos("Sent" , file.i) > 0,
then iterate
/* say filespec('name', file.i)*/
'yin' filespec('name',file.i)
end
end
say 'paused...' ; call SysGetKey 'noecho'
...
yarn.exe
...
-- Phil Crown pcrown@airmail.net http://web2.airmail.net/pcrown/