Setting a SilcMime attribute
Pekka Riikonen
priikone at iki.fi
Mon May 28 20:24:21 CEST 2007
On Mon, 28 May 2007, Christian Dietrich wrote:
: I do it this way:
: SilcTK::SilcMime mime = SilcTK::silc_mime_alloc();
: SilcTK::silc_mime_add_field(mime, "MIME-Version", "1.0");
: SilcTK::silc_mime_add_field(mime, "Content-Transfer-Encoding",
: "binary");
: SilcTK::silc_mime_add_field(mime, "Content-Type",
: "text/plain; charset=utf-8");
:
: QCString content = QString(getAttributeMessage()).utf8();
: SilcTK::silc_mime_add_data(mime, (unsigned char *)(const char
: *)content,
: content.length());
:
: silc_client_attribute_add(_client, _conn,
: SILC_ATTRIBUTE_STATUS_MESSAGE,
: mime, sizeof(*mime));
:
: Also when i set status_message in silc-client beta5 i get the same
: result.
:
This should be fixed in CVS now and will be delivered to the Toolkit 1.1.
The MIME object was not encoded correctly to the attribute payload.
Pekka
________________________________________________________________________
Pekka Riikonen priikone at silcnet.org
Secure Internet Live Conferencing (SILC) http://silcnet.org/
More information about the silc-devel
mailing list