alistairholt / astrotrain forked from entp/astrotrain
- Source
- Commits
- Network (9)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
commit 22010ad2502aaa1f54d54a0c174b27f00a02a547
tree a039d7704e3c7d5eeb1ffa46a454147e07d8e0c0
parent 7215b580264f31573491f832e193d1619608d1c1
tree a039d7704e3c7d5eeb1ffa46a454147e07d8e0c0
parent 7215b580264f31573491f832e193d1619608d1c1
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
LICENSE | Thu Oct 16 21:00:16 -0700 2008 | |
| |
README | ||
| |
Rakefile | ||
| |
app/ | ||
| |
autotest/ | ||
| |
config/ | ||
| |
lib/ | ||
| |
merb/ | ||
| |
public/ | ||
| |
schema/ | ||
| |
spec/ | ||
| |
tasks/ |
README
astrotrain ========== Scans incoming emails for mapped recipients and sends an HTTP POST somewhere. @user = User.new :login => 'bob' @user.password = @user.password_confirmation = 'monkey' @user.save # set a mapping to accept email for support@example.com @mapping = @user.mappings.build(:email_user => 'support', :email_domain => 'example.com', :destination => '...') @mapping.save # you can also create wildcards for users: @user.mappings.build(:email_user => 'reply-*', :email_domain => 'example.com', ...) @user.mappings.build(:email_user => '*', :email_domain => 'example.com', ...) # need a script to read from STDIN to process emails. /usr/bin/merb -m /var/www/astrotrain -r 'Message.receive(STDIN.read)' -e production # set it up in postfix (master.cf, ymmv) astrotrain unix - n n - - pipe flags=O user=www-data argv=/var/www/astrotrain/merb.sh This is still highly experimental. Don't even bother with the web UI yet, there's no protection against anyone signing up and creating mappings on your server. TODO ==== Real web UI Jabber support DRb daemon bounced emails

