Sha256: 48267cdc07bece2a9ba92818f86708cbbfcb5080f2db4d0110174f1ab90531da
Contents?: true
Size: 1.27 KB
Versions: 14
Compression:
Stored size: 1.27 KB
Contents
require 'delegate' require 'uuid' require 'tmail' require 'hpricot' require 'active_support' require 'active_record' 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' require 'mlist/manager' module MList mattr_reader :version @@version = YAML.load_file(File.join(File.dirname(__FILE__), '..', "VERSION.yml")) class << @@version def to_s @to_s ||= [self[:major], self[:minor], self[:patch]].join('.') end end 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
14 entries across 14 versions & 1 rubygems