jens-maus / yam

: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...
https://yam.ch
GNU General Public License v2.0
61 stars 18 forks source link

ADDRINFO arexx command fails on YAM2.9 and on YAM2.10Dev (debug version) #647

Closed JosDuchIt closed 7 years ago

JosDuchIt commented 7 years ago

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

/* _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

tboeckel commented 7 years ago

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.