Weird idea continues connecting fediverse and email
What have I done?! My abomination of an idea of bridging my email and
ActivityPub progresses. If you see this message, something is working!
Comments replies are welcome as it's a good test of this system :)
People keep saying ActivityPub is a lot like email. If it's so similar
to email, could I use my email client to interact with the fediverse?
Previously I did this by writing a SMTP interface to the Mastodon HTTP
API. That worked. But as we probably know, the fediverse is not
Mastodon; it's really ActivityPub. The real deal would be working
with ActivityPub directly, not the Mastodon HTTP API.
And that's now (mostly?) working! In shonky diagram form, sending
looks like this:
There's still a lot of bugs (of course) and unimplemented bits (of
course). I can't call this a proper fediverse service yet. I'm going
to roll with this for a bit and see how it holds up.
When you specify To: localtesting@aussie.zone how does the bridge know if you meant https://aussie.zone/c/localtesting or https://aussie.zone/u/localtesting instead?
When you specify To: localtesting@aussie.zone how does the bridge know if you meant https://aussie.zone/c/localtesting or https://aussie.zone/u/localtesting instead?
Good question
The process of going from that email-like address to an ActivityPub
Actor (https URL) is done by WebFinger. So whatever we get back from
that lookup is who we send the message to. For example, when we look
up localtesting@aussie.zone we get this response (truncated for
readability):
Hi there! Looks like you linked to a Lemmy community using a URL instead of its name, which doesn't work well for people on different instances. Try fixing it like this: !localtesting@aussie.zone