home *** CD-ROM | disk | FTP | other *** search
- /* Example2.yam - YAM ARexx interface example #2 */
- /* 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
-
-