home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magazyn Exec 5
/
CD_Magazyn_EXEC_nr_5.iso
/
Recent
/
comm
/
mail
/
YAM23.lha
/
YAM2.3
/
Rexx
/
Example2.yam
< prev
next >
Wrap
Text File
|
2000-04-19
|
830b
|
17 lines
/* Example2.yam - YAM ARexx interface example #2 */
/* $VER: Example1.yam 1.0 (14.03.99) © 1999 by M.Beck <mbeck@yam.ch> */
/* Gets the sender of the current message and selects all messages */
/* from the same sender. Requires YAM 2.0p7 or later */
OPTIONS RESULTS
ADDRESS YAM
MailInfo STEM cmess. /* Get information about current message */
FolderInfo STEM folder. /* Get information about current folder */
ListSelect NONE /* Clear selection */
DO i = 0 TO folder.TOTAL-1 /* Loop through whole folder */
MailInfo i STEM mess. /* Get information about message */
IF mess.FROM = cmess.FROM THEN ListSelect i /* Select message if senders match */
END