Hi Til,
together with Michael I tracked it down - the order is mixed up already by the OpenSSL interface...
For my part I will do a loop through all addresses and take one that matces a given regexp...
This is not a good solution but will solve my urgent needs....
Oliver
-- Diese Nachricht wurde digital unterschrieben oliwel's public key: http://www.oliwel.de/oliwel.crt Basiszertifikat: http://www.ldv.ei.tum.de/page72
smime.p7s
Description: S/MIME Cryptographic Signature