This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit e29c7bb38964e578196d8aada0b45a3b5e6a9b15
tree eb5dab905e4d43aba022dd63e3e976be4f487c62
parent 7def86f570f9bfde55aa1047f9ac9d8604cfe45b
tree eb5dab905e4d43aba022dd63e3e976be4f487c62
parent 7def86f570f9bfde55aa1047f9ac9d8604cfe45b
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Thu Sep 17 20:03:56 -0700 2009 | |
| |
LICENSE | Thu Oct 16 21:00:16 -0700 2008 | |
| |
README | Thu Sep 17 20:05:38 -0700 2009 | |
| |
Rakefile | Fri Sep 25 14:12:32 -0700 2009 | |
| |
VERSION | ||
| |
astrotrain.gemspec | ||
| |
config/ | Wed Sep 02 23:32:18 -0700 2009 | |
| |
lib/ | ||
| |
test/ |
README
astrotrain ========== NOTE: Astrotrain is a full gem now. If you're looking for the old Astrotrain on merb: http://github.com/entp/astrotrain/tree/merb git://github.com/entp/astrotrain.git (merb branch) Scans incoming emails for mapped recipients and sends an HTTP POST somewhere. # setup a config file. # Point the queue_path at a directory that your mail server dumps each raw incoming mail. require 'astrotrain' Astrotrain.load path do DataMapper.setup(:default, { :adapter => "mysql", :database => "astrotrain", :username => "root", :host => "localhost" }) end Astrotrain::Message.queue_path = "/path/to/maildir" Astrotrain::Mapping::Transport.processing = true # start up IRB irb -I /var/astrotrain/lib -r config.rb # manage mappings LIB=/var/astrotrain/lib CONFIG=config.rb rake at:mappings LIB=/var/astrotrain/lib CONFIG=config.rb rake at:map EMAIL=support@foo.com DEST=http://foo.com/email LIB=/var/astrotrain/lib CONFIG=config.rb rake at:unmap MAP=123 # start the server that runs over the queue directory LIB=/var/astrotrain/lib CONFIG=config.rb rake at:process # start the sinatra API ruby -I /var/astrotrain/lib /var/astrotrain/lib/astrotrain/api.rb config.rb A single Astrotrain process currently handles email for two production applications, processing thousands daily. It's far from perfect, but definitely usable. TODO ==== Gem package - I realize the load paths could be simplified a bunch, so a gem package will come soon. Docs bounced emails








