I figured out, that claws-mail cant handle the command
claws-mail --compose "mailto:?attach=/home/dik/tmp/file.key"
I figured out, that claws-mail cant handle the command
claws-mail --compose "mailto: ?attach= /home/dik/ tmp/file. key"