public
Description: email => [http post, jabber]
Homepage: http://oss.techno-weenie.net/discussions/astrotrain
Clone URL: git://github.com/entp/astrotrain.git
commit  3df35c6580bcb4c84848c5b1115e8928ea3da288
tree    3e981228515f68988b671db1e4b4a096f25eb446
parent  827e038468ebff6f936430f2aa9e315ad302304c
astrotrain / README
100644 34 lines (25 sloc) 1.146 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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