Sha256: 2eece62e88b244f5fee8ca8d2a9b4aaf4fd17bd81c702e5f7dbb901b3bac3ab5
Contents?: true
Size: 756 Bytes
Versions: 4
Compression:
Stored size: 756 Bytes
Contents
require 'mailman' require 'email_reply_parser/email_reply_parser' require "replyr/config" require "replyr/reply_email" require "replyr/reply_address" require "replyr/handle_reply" require 'replyr/engine' # Monkey Patch broken listen dependency in mailman v0.7.0 require 'mailman_monkey_patch' if Mailman::VERSION == "0.7.0" module Replyr class << self attr_accessor :config, :logger def config @config ||= Replyr::Config.new end def setup_logger @logger = (defined?(Rails) && Rails.logger) ? Rails.logger : Logger.new(STDOUT) end def address_pattern "#{config.prefix}-%model_name%-%model_id%-%user_id%-%token%@#{config.host}" end alias_method :mailman_route, :address_pattern end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
replyr-0.0.7 | lib/replyr.rb |
replyr-0.0.6 | lib/replyr.rb |
replyr-0.0.5 | lib/replyr.rb |
replyr-0.0.4 | lib/replyr.rb |