:mailbox_with_mail: YAM (short for 'Yet Another Mailer') is a MIME-compliant open-source Internet email client written for Amiga-based computer systems (AmigaOS4, AmigaOS3, MorphOS, AROS). It supports POP3, SMTP, TLSv1/SSLv3 connection security, multiple users, multiple identities, PGPv2/v5 encryption, unlimited hierarchical folders, an ARexx interface, etc...
I would also like to suggest to have the template
ADDRINFO VAR/K,STEM/K,[ALIAS]
since we have the command ADDRGOTO to change the current entry
/* _AddrInfo.yam Test of
ADDRINFO VAR/K,STEM/K,ALIAS/A
OPTIONS RESULTS
ADDRESS YAM
ADDRLOAD 'YAM:.addressbook' OPEN
ADDRINFO 'Agnes' STEM st.
/* Only continue if RC == 0 */
SAY 'RC is' RC
IF RC ~= 0 THEN EXIT
/* List results /
SAY 'Type of entry: 'st.type / ST.TYPE */
SAY 'Real name: 'st.name
SAY 'Email address: 'st.email
SAY 'PGP key ID: 'st.pgp
SAY 'Homepage: 'st.homepage
SAY 'Street: 'st.street
SAY 'City: 'st.city
SAY 'Country: 'st.country
SAY 'Phone #: 'st.phone
SAY 'Description: 'st.comment
SAY 'Date of birth: 'st.birthdate
SAY 'Portrait: 'st.image
I think I know what went wrong between YAM 2.7 and YAM 2.9.
The list of members is always checked to be existant, even for plain single persons. Of course this will fail and YAM returns an error in that case. I will fix that ASAP.
The command works on YAM.27 but fails on 2.9 & 2.10Dev
It was tested with the script attached closely derived from http://yam.ch/wiki/Documentation/ARexxAPI/ADDRINFO http://yam.ch/wiki/Documentation/ARexxAPI/ADDRINFO
I would also like to suggest to have the template ADDRINFO VAR/K,STEM/K,[ALIAS] since we have the command ADDRGOTO to change the current entry
/* Only continue if RC == 0 */ SAY 'RC is' RC IF RC ~= 0 THEN EXIT
/* List results / SAY 'Type of entry: 'st.type / ST.TYPE */ SAY 'Real name: 'st.name SAY 'Email address: 'st.email SAY 'PGP key ID: 'st.pgp SAY 'Homepage: 'st.homepage SAY 'Street: 'st.street SAY 'City: 'st.city SAY 'Country: 'st.country SAY 'Phone #: 'st.phone SAY 'Description: 'st.comment SAY 'Date of birth: 'st.birthdate SAY 'Portrait: 'st.image