mailpile / Mailpile

A free & open modern, fast email client with user-friendly encryption and privacy features
https://mailpile.is
Other
8.81k stars 1.02k forks source link

Create a plugin that allows encrypted Facebook Messages #227

Closed bnvk closed 6 years ago

bnvk commented 10 years ago

This is something I've LONG wanted to exist. I know, I could use Admium or any other Jabber client, but I want this data correlated with emails as I use both in very similar ways.

Jabber Library

This seems to be a pretty well supported XMPP library for Python https://github.com/fritzy/SleekXMPP

And here is a decent post about using it work with the Facebook Messages http://philsturgeon.co.uk/blog/2013/06/facebook-message-with-xmpp-access-tokens-python

Facebook Message API documentation https://developers.facebook.com/docs/reference/api/message/

Encrypted Chats

We should also add encryption so that two Mailpile users can communicate over Facebook API in a fully encrypted chat. This will have the benefit of allowing a user to toggle seamlessly between conversations of their contacts- so of which will be encrypted, some won't- which is a gain to everyone.

Not exactly sure how key exchange would work, but perhaps something like when starting a chat pop up a message (in the chat) like:

smari commented 10 years ago

I don't really know what this means... :-)

Llafgorf commented 10 years ago

I somehow get the feeling that people didn't really send money to fund facebook integration...

bnvk commented 10 years ago

@Llafgorf i'm not planning on building this, nor am I suggesting it be a Mailpile core feature- hence the world "Plugin." My hope is someone(s) in the community will be interested in helping.

@smari I hate Facebook. I can't wait for the day there is some sort of interop whereby I never EVER have to login to that site again. With that said, I have numerous friends who insist on using Facebook messages, thus I am forced to login and reply. Their Messages API is built on top of Jabber, so in theory I could use a Jabber client like Adium to interact, but I'd rather be indexing those conversations where my emails are- hence integrating with Mailpile. Make sense?

smari commented 10 years ago

Right, yes. That makes sense. Then I'd suggest that this is equivalent to #55 as a baseline, but detailing further specific UX details...

Llafgorf commented 10 years ago

@brennannovak thanks for the clarification (and I feel your pain! ;-)

BjarniRunar commented 10 years ago

Pushing PGP-encrypted content over Facebook messages would work fine - technically, this could boil down to supporting XMPP as an alternate transport to SMTP and if done in that way there wouldn't be any Facebook-specific code except maybe logic which automatically chooses the XMPP transport when contacting folks on Facebook.

Drawbacks to that approach, which could be allevited by writing custom facebook-only code:

  1. I don't think Facebook's XMPP support allows for group messages
  2. I don't think Facebook's XMPP makes it easy to download old messages
  3. The general utility of this is questionable, as XMPP is usually used for lower overhead chat, not long-form e-mail style messages
BjarniRunar commented 6 years ago

I don't think this is ever happening. Or at least, it doesn't need to be on our issue list - if someone from the community does this, awesome!