Giter Site home page Giter Site logo

phabricator-mail-xmpp's Introduction

phabricator-mail-xmpp

A Phabricator mail adapter to send messages through XMPP.

Caveats

  • This will be used in place of other mail adapters. Your Phabricator instance will not send out any email when this is enabled and working.
  • This is only for outgoing messages. It will not receive any replies sent through XMPP.
  • This is a bit of a hack, so use it at your own peril. If something goes wrong, messages could get silently dropped.

Requirements

In order for this mail adapter to be useful, you need:

  • a Phabricator instance that you control, and
  • an XMPP account that can send messages to your Phabricator users' XMPP accounts.

Installation

  1. Clone this repository alongside your Phabricator.
  2. Configure your Phabricator instance:
    1. Run bin/config set load-libraries '["phabricator-mail-xmpp/src"]'.
      • If load-libraries is already set, you'll need to add to it instead of overwriting it.
    2. Set cluster.mailers as described below.
  3. Ask your users to change their primary email addresses to their XMPP JIDs.

Configuration

The options for this mailer in cluster.mailers are: host, port, user, password.

As recommended in Configuring Outbound Email, it's easiest to make a mailers.json file and run

bin/config set cluster.mailers --stdin < mailers.json

The file should look something like

[
  {
    "key": "xmpp",
    "type": "xmpp",
    "options": {
      "host": "example.com",
      "port": "5222",
      "user": "xmppuser",
      "password": "xmpppass"
    }
  }
]

It should in principle be possible to configure other mailers as well, for failover or load balancing, but those concepts don't really jibe with the spirit of this mail adapter.

Tips

The Phabricator bin/mail utility is very useful for testing.

If you don't need the information they produce, you can set

  • metamta.herald.show-hints,
  • metamta.recipients.show-hints, and
  • metamta.email-preferences

all to false to make the sent messages shorter.

License

This software is available under the same license as Phabricator itself (Apache 2.0). See NOTICE for more information.

This software is distributed with other open source packages, found in externals/. These packages are available under their own licenses:

  • externals/xmpp/vendor/composer/: Composer 1.5.1 generated autoloader (MIT license)
  • externals/xmpp/vendor/fabiang/xmpp/: Fabian Grutschus's xmpp library 0.7.0 (2-clause BSD license)
  • externals/xmpp/vendor/psr/log/: PSR Log 1.0.2 (MIT license)

phabricator-mail-xmpp's People

Contributors

0 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.