Commit 9b17ac08ab52ee1296fdcf9eab7408e36c7c31d0

Authored by Niklas
Exists in master

merged

Showing 5 changed files Side-by-side Diff

... ... @@ -3,4 +3,5 @@
3 3 .#*
4 4 .sass-cache
5 5 *.sqlite
  6 +Gemfile.lock
  1 +source 'http://rubygems.org'
  2 +
  3 +gem 'sinatra'
  4 +gem 'rack-flash'
  5 +gem 'activerecord'
  6 +gem 'compass'
  7 +gem 'haml'
... ... @@ -4,8 +4,8 @@
4 4 require 'rack-flash'
5 5 require 'haml'
6 6  
7   -require 'models'
8   -require 'maildrop_serializer'
  7 +require './models'
  8 +require './maildrop_serializer'
9 9 require 'net/imap'
10 10  
11 11 MAILSERVER = 'mail.sourceagency.net'
maildrop_serializer.rb
... ... @@ -5,6 +5,11 @@
5 5 "if (#{filter_expressions(filter)})",
6 6 "{",
7 7 " exception {",
  8 + " `test -d '#{dest_folder(filter)}'",
  9 + " if( $RETURNCODE == 1 )",
  10 + " {",
  11 + " `maildirmake #{dest_folder(filter)}`",
  12 + " }",
8 13 " to #{dest_folder(filter)}",
9 14 " }",
10 15 "}"].join("\n")
1 1 #!/usr/bin/env ruby
2 2  
3 3 require 'rubygems'
4   -require 'models'
  4 +require './models'
5 5  
6 6 [Expression, Filter].each do |model|
7 7 model.migration.down rescue nil