Compatible Lotus Notes.
List the messages in the inbox.
This command returns in the &RESULT parameter, the requested information on the first message or the next message in a Lotus folder.
If the end of the message list is reached, the command returns FALSE in &RESULT.
Syntax
CHGVAR |
VAR(&CMD) VALUE('MAILLMSG') |
CHGVAR |
VAR(&PARM1)
VALUE(' ') |
CALL |
PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 + &PARM2 &RESULT) |
Parameters
Parameters |
|
Parm1 or Parm2 |
Folder : Name of the folder we
want to get the message list.
Start : If "Start" is
true , the first message of the folder is returned.
Subject : If "Subject" is true, the subject of the message is returned in &RESULT, in the form : Subject="message subject" ;
SenderName : If true, the sender name is returned in &RESULT, in the form : SenderName="Nom de l’expĂ©diteur" ;
UnReadOnly : If true, only the unread messages are listed.
|
RESULT |
After the call, &RESULT contains : FALSE if the end of the list was reached. Subject="message subject"; if the option "Subject=True" was set. SenderName="Sender name", if the option "SenderName=True" was set. Use program LNCGETKW to parse the contain of &RESULT.
|
Example
CHGVAR VAR(&CMD) VALUE('MAILLMSG')
CHGVAR VAR(&PARM1) VALUE('folder="domino/aura!!mail/box.nsf"; +
UnReadOnly=false')
CHGVAR VAR(&PARM2) VALUE('Subject=True;SenderName=True')
CHGVAR VAR(&RESULT) VALUE('*')
CALL PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PM1 &PARM2
&RESULT)
IF COND(&RESULT *EQ 'FALSE') THEN(GOTO CMDLBL(END))
CHGVAR VAR(&SUBJ) VALUE(' ')
CALL PGM(LNCGETKW) PARM(&HANDLE &RESULT 'Subject ' &SUBJ)
See also
• LNCGETKW
• MAILLATT
• MAILLMSG
• MAILMCHG
• MAILMDLT
• MAIXATT