Re: Setting a SilcMime attribute

Pekka Riikonen <[email protected]>
Newsgroups gmane.network.silc.devel
Message-ID <[email protected]>
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/
_______________________________________________________________________
Info:    https://lists.silcnet.org/mailman/listinfo/silc-announce
Archive: https://lists.silcnet.org/pipermail/silc-announce
FAQ:     http://silcnet.org/support/faq/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.