subgun

command module
v0.0.0-...-25888e7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2014 License: Apache-2.0 Imports: 6 Imported by: 0

README

subgun

Subscribe to a mailgun backed mailing list via a web interface.

Build and Configuration

Build subgun using the build script:

./build

Configure subgun by setting a series of environment variables:

export SUBGUN_LISTEN=127.0.0.1:8080
export SUBGUN_LISTS=<mailgun list 1>,<mailgun list 2>,...
export SUBGUN_API_KEY=<mailgun api key>

Once configured, you can simply run the binary:

./subgun

Subscription Workflow

POST to the subscribe URL. See subscribe.html or do it with curl:

curl http://localhost:8080/subscribe/etcd-dev@lists.coreos.com -d "email=brandon@example.com"

This will email brandon@example.com with a confirmation email with a URL that contains a secret token. Clicking on the link will change the subscription status to "Subscribed".

Unsubscribe Workflow

For now use the native workflow in Mailgun.

What about archives?

http://gmane.org/subscribe.php

TODO

  • Already subscribed user error message instead of user error
  • Cleanup HTTP handling

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
third_party
github.com/coreos/go-systemd/activation
Package activation implements primitives for systemd socket activation.
Package activation implements primitives for systemd socket activation.
github.com/coreos/go-systemd/dbus
Integration with the systemd D-Bus API.
Integration with the systemd D-Bus API.
github.com/coreos/go-systemd/examples/activation
Activation example used by the activation unit tests.
Activation example used by the activation unit tests.
github.com/coreos/go-systemd/journal
Package journal provides write bindings to the systemd journal
Package journal provides write bindings to the systemd journal
github.com/gorilla/context
Package gorilla/context stores values shared during a request lifetime.
Package gorilla/context stores values shared during a request lifetime.
github.com/gorilla/mux
Package gorilla/mux implements a request router and dispatcher.
Package gorilla/mux implements a request router and dispatcher.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL