Sha256: c128e89df6301d40dbea64265e5b6ecc4545993c4fc8c7d30a821225ff41bf3d

Contents?: true

Size: 1014 Bytes

Versions: 3

Compression:

Stored size: 1014 Bytes

Contents

#!/usr/bin/env ruby
require "rubygems"  
require "bundler/setup"  
require "mailman"

ENV["RAILS_ENV"] ||= "development"
require File.expand_path("../../config/environment.rb", __FILE__)

Mailman.config.ignore_stdin = true  
Mailman.config.logger = Logger.new File.expand_path("../../log/mailman_#{Rails.env}.log", __FILE__)

# Use Maildir
#
Mailman.config.maildir = "~/Maildir"

# Use Pop3
#
# Mailman.config.pop3 = {
#   server: 'pop.gmail.com', port: 995, ssl: true,
#   username: USERNAME,
#   password: PASSWORD
# }

# Use IMAP
#
# Mailman.config.imap = {
#   server: 'imap.gmail.com', 
#   port: 993, # usually 995, 993 for gmail
#   ssl: true,
#   username: USERNAME,
#   password: PASSWORD,
# }

Mailman::Application.run do  

  # DO NOT CHANGE. Replyr Route for processing reply emails
  to Replyr.route do
    Replyr.process(message)
  end
  
  # add your custom mailman routes (independent of Replyr) here
  # to 'support%@example.org' do
  #   # ...
  # end
  # 
  # default do
  #   # ...
  # end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
replyr-0.1.0 lib/generators/replyr/templates/mailman_server
replyr-0.0.9 lib/generators/replyr/templates/mailman_server
replyr-0.0.8 lib/generators/replyr/templates/mailman_server