Skip to content
Browse files

Deleted mailman scripts

  • Loading branch information...
1 parent 230e058 commit 372e27046cc0e695912a8c788738309c3ce5b032 @ndbroadbent ndbroadbent committed
Showing with 0 additions and 45 deletions.
  1. +0 −7 script/mailman_daemon
  2. +0 −38 script/mailman_server
View
7 script/mailman_daemon
@@ -1,7 +0,0 @@
-#!/usr/bin/env ruby
-
-require "rubygems"
-require "bundler/setup"
-require "daemons"
-
-Daemons.run("script/mailman_server")
View
38 script/mailman_server
@@ -1,38 +0,0 @@
-#!/usr/bin/env ruby
-
-require "rubygems"
-require "bundler/setup"
-require "mailman"
-
-ENV["RAILS_ENV"] ||= "test"
-require File.dirname(__FILE__) + "/../config/environment"
-
-Mailman.config.ignore_stdin = true
-
-def connection_configured?(connection)
- Setting.mailman && Setting.mailman[connection] && Setting.mailman[connection][:username].present?
-end
-
-
-if Rails.env == 'test'
- Mailman.config.maildir = Rails.root.join("tmp/test_maildir")
- Mailman.config.poll_interval = 0
-else
- mail_settings = Setting.mailman
- unless connection_configured?(:pop3) || connection_configured?(:imap)
- puts "Please configure Mailman POP3 or IMAP settings for 'Reply via email'!"
- exit 1
- end
-
- Mailman.config.logger = Logger.new(Rails.root.join("log/mailman_#{Rails.env}.log"))
- Mailman.config.poll_interval = Setting.mailman[:poll_interval]
-
- if connection_configured?(:pop3)
- Mailman.config.pop3 = mail_settings[:pop3]
- elsif connection_configured?(:imap)
- Mailman.config.imap = mail_settings[:imap]
- end
-end
-
-require 'fat_free_crm/mailman'
-FatFreeCRM::Mailman.new.run

0 comments on commit 372e270

Please sign in to comment.
Something went wrong with that request. Please try again.