Detect XDC by extension as well
Since deltachat does, sometimes this is needed for now
Initital WebXDC attachment must head the thread
So that in reply to all match up properly
WebXDC update needs to be in same thread
Not just have a parent thread of the correct thread
Add a log to debug attachment issues
Fetch oob urls and add as email attachments
Use message@id if there is one
Use just message-id for the thread with incoming WebXDC file
This force-starts a new XMPP thread where we are the origin so that
all messages on both sides that reply to this can have the same thread.
Set stanza id as well as origin-in
Allow messages with no text body
Rare but no reason to crash if it happens
Convert email WebXDC updates to XMPP
Use only In-Reply-To as the thread since that's the only thing DeltaChat
cares about so we can't rely on anything else to be a certain way for
WebXDC.
Add file extension for webxdc
Update gsasl/gnutls/network-protocol-xmpp
Use Encoding directly
faster and deterministic order
Set in-reply-to header
Use the most recent item in the references list, which will be correct
if we know the direct parent and close otherwise.
Initial WebXDC update translation
From XMPP to email