aboutsummaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/incoming_message.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb
index cdb437a2d..fd7b226a6 100644
--- a/app/models/incoming_message.rb
+++ b/app/models/incoming_message.rb
@@ -17,6 +17,7 @@
# last_parsed :datetime
# mail_from :text
# sent_at :datetime
+# prominence :string(255) default("normal"), not null
#
# models/incoming_message.rb:
@@ -47,6 +48,12 @@ class IncomingMessage < ActiveRecord::Base
belongs_to :raw_email
+ validates_inclusion_of :prominence, :in => [
+ 'normal',
+ 'hidden',
+ 'requester_only'
+ ]
+
# See binary_mask_stuff function below. It just test for inclusion
# in this hash, not the value of the right hand side.
DoNotBinaryMask = {