Sha256: 9d4f561938989016305fbd2048e5af283db6a5573516f54da0a093c4fb2b7da3

Contents?: true

Size: 994 Bytes

Versions: 3

Compression:

Stored size: 994 Bytes

Contents

require 'tmail'
require 'activesupport'
require 'activerecord'

require 'mlist/util'
require 'mlist/email'
require 'mlist/message'
require 'mlist/list'
require 'mlist/mail_list'
require 'mlist/email_post'
require 'mlist/email_server'
require 'mlist/email_subscriber'
require 'mlist/server'
require 'mlist/thread'

module MList
  class DoubleDeliveryError < StandardError
    def initialize(message)
      super("A message should never be delivered more than once. An attempt was made to deliver this message:\n#{message.inspect}")
    end
  end
end

Time::DATE_FORMATS[:mlist_reply_timestamp] = Date::DATE_FORMATS[:mlist_reply_timestamp] = lambda do |time|
  time.strftime('%a, %b %d, %Y at %I:%M %p').sub(/0(\d,)/, '\1').sub(/0(\d:)/, '\1')
end

# In order to keep the inline images in email intact. Certainly a scary bit of
# hacking, but this is the solution out there on the internet.
TMail::HeaderField::FNAME_TO_CLASS.delete 'content-id'

TMail::Mail::ALLOW_MULTIPLE['x-beenthere'] = true

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
aiwilliams-mlist-0.1.0 lib/mlist.rb
aiwilliams-mlist-0.1.1 lib/mlist.rb
aiwilliams-mlist-0.1.2 lib/mlist.rb