[liberationtech] anonymous persona schemas - email?

The Doctor [412/724/301/703/415/510] drwho at virtadpt.net
Wed Mar 6 19:03:17 CET 2019


‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Wednesday, March 6, 2019 8:54 AM, Nathan Andrew Fain <nathan at squimp.com> wrote:

> {
> An anonymous Zapier account checks an anonymous email account and on new
> incoming email sends a Jabber message to an anonymous jabber account
> that the real user is connected to through Tor.
> }
>
> The part that broke is Zapier (an IFTTT like service) that no longer
> works with Jabber. Interested in any alternative that allows a user to
> receive notice of new email over Tor. It does not need to include Jabber.

For what it's worth, I have code for an XMPP bridge on Github that exposes a REST API:

https://github.com/virtadpt/exocortex-halo/tree/master/exocortex_xmpp_bridge

You could have Zapier send the message to a message queue on the bridge, which would then relay it to a user named in the config file.

---

I have something like this set up on my end of things.   Here's (roughly) how I did it with a Huginn (https://github.com/huginn/huginn) agent network:

An IMAP Folder Agent logs into an e-mail service that supports IMAP.  The "conditions":{} hash has the "is_unread" flag set to True so that only new messages are checked.  Other condition flags ("from," a specific value in "mime_types", or a regular expression matching on the subject or body of the message) can be set as desired.  If you want, you can grab the entire body of the message and set the "mark_as_read" flag to mark the message as read after Huginn sees it.

An Event Formatting Agent is used to write a message to the anonymous user built out of components of the detected email.  It could look something like this:

{
    "instructions": {
        "message": "from: {{ from }}\n date: {{ date }}\n subject: {{ subject }}\n\n {{ body }}"
    },
    "mode": "clean"
}

A Jabber Agent is used to contact the anonymous user.  Assuming that the anonymous user has an account on an XMPP server with federation enabled, Huginn need not have an account on the same server.  At any rate, a Jabber Agent is used to send the message to anonymous.user at anonymous.xmpp-server.example.com.

The anonymous user receives an XMPP message from Huginn containing the message.

There is one glitch with this, which is that the Jabber Ruby gem used by Huginn tends to lock up the threaded job runner after a while, so you'd need to run one or more instances of the delayed_job runner instead.

If there is sufficient interest, I can post a proof-of-concept network on Github, also (https://github.com/virtadpt/exocortex-agents).

The Doctor [412/724/301/703/415/510]
PGP (new!): 4d7d 5c94  fa44 a235
WWW: https://drwho.virtadpt.net/
The old world is dying, and the new world struggles to be born. Now is the time of monsters.




More information about the LT mailing list