I changed my plugin to use the rcube_utils function,
https://github.com/corbosman/ident
Reindl has a point though, but that should be changed in that function then,
Cor