Added bug fix for spam email.

This commit is contained in:
Martin Edenhofer 2014-09-11 14:57:46 +02:00
parent 188e21d3e7
commit b2ee4366a6
5 changed files with 3256 additions and 2 deletions

View file

@ -131,7 +131,7 @@ class CreateTicket < ActiveRecord::Migration
t.column :message_id_md5, :string, :limit => 32, :null => true t.column :message_id_md5, :string, :limit => 32, :null => true
t.column :in_reply_to, :string, :limit => 3000, :null => true t.column :in_reply_to, :string, :limit => 3000, :null => true
t.column :references, :string, :limit => 3200, :null => true t.column :references, :string, :limit => 3200, :null => true
t.column :body, :text, :null => true t.column :body, :text, :limit => 4.megabytes + 1
t.column :internal, :boolean, :null => false, :default => false t.column :internal, :boolean, :null => false, :default => false
t.column :updated_by_id, :integer, :null => false t.column :updated_by_id, :integer, :null => false
t.column :created_by_id, :integer, :null => false t.column :created_by_id, :integer, :null => false

View file

@ -0,0 +1,8 @@
class UpdateTicketArticleSize < ActiveRecord::Migration
def up
change_column :ticket_articles, :body, :text, :limit => 4.megabytes + 1
end
def down
end
end

1623
test/fixtures/mail23.box vendored Normal file

File diff suppressed because it is too large Load diff

View file

@ -479,6 +479,18 @@ Freemont and pulling out several minutes.
[1] &#104;&#116;&#116;&#112;&#58;&#47;&#47;&#1072;&#1086;&#1089;&#1082;&#46;&#1088;&#1092;?jmlfwnwe&ucwkiyyc [1] &#104;&#116;&#116;&#112;&#58;&#47;&#47;&#1072;&#1086;&#1089;&#1082;&#46;&#1088;&#1092;?jmlfwnwe&ucwkiyyc
", ",
}, },
},
{
:data => IO.read('test/fixtures/mail23.box'),
:body_md5 => '545a1b067fd10ac636c20b44f5df8868',
:params => {
:from => 'marketingmanager@nthcpghana.com',
:from_email => 'marketingmanager@nthcpghana.com',
:from_display_name => '',
:subject => nil,
:to => 'undisclosed-recipients: ;',
},
}, },
] ]

File diff suppressed because it is too large Load diff