# subgun **Repository Path**: mirrors_coreos/subgun ## Basic Information - **Project Name**: subgun - **Description**: Subscribe to a mailing list on mailgun via a web interface - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-08-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## 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=,,... export SUBGUN_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