Camel.MimePart.set_content wants string[] instead of string (Vala)
I tried to create a message in Vala, but there seems to a problem with the language binding. According to Valadoc MimePart.set_content expects a string[]
instead of string
for data
:
public void set_content (string[]? data, string? type)
But it neither works with a string[] nor a string.
var mimepart = new Camel.MimePart();
mimepart.set_content("bla bla", "text/plain");
valac returns this error:
error: Argument 1: Cannot convert from `unowned string' to `unowned string[]?'
mimepart.set_content("bla bla", "text/plain");
see also
https://discourse.gnome.org/t/camel-lib-cannot-convert-from-unowned-string-to-unowned-string/5531