~singpolyma/cheogram-smtp

ref: 073dafa4a91bbafb5edecea3bc6f37a526c0301b cheogram-smtp/gateway.hs -rw-r--r-- 6.0 KiB
Add discovery identity response
Return XMPP error when sendmail fails. Allow using a custom sendmail script
Set JID from on vCard request
Fetch vcard4 when sending message and use it for name and X-URL headers
Return XMPP error when message cannot be sent as email

Special case to give nicer error when it's because the JID does not map
to a valid email address. Or else generic error.

This commit also (ugh, also) changes our sendmail call to set recipients
on command line instead of taking them from the headers, which doesn't
change anythnig now really but means we can safely set other headers
later.
Always use line buffering, even when redirected to file

Makes logging work better :)
Upstream changed from strict
Render JID as "name" in email
Add Date header, from delayed deliver if present else now
Baseline bidirectional working for text bodies
Need internal for gateway too