[jdev] Can I define a content-type for messages?

Peter Saint-Andre stpeter at stpeter.im
Mon Mar 23 09:19:22 CDT 2009

On 3/23/09 6:05 AM, Remko Tronçon wrote:
>> Currently, I ignore the content-type in my prototype but that is not very
>> elegant. Is a content type for messages already supported or can I easily
>> derive such a message type?
> What types of content are you sending? Messages currently only have
> plain text bodies, and XHTML-IM bodies. If you want to add custom
> payloads to messages, you can define your own element in your own
> namespace to wrap the data in.

Well, for small pieces of information you can also use the "Bits of
Binary" extension:


But XMPP does not have official content-types of the kind you're
probably familiar with from email.


Peter Saint-Andre

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6751 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20090323/929ff94a/attachment-0003.bin>

More information about the JDev mailing list