ish_models 0.0.33.248 → 0.0.33.249

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2def700aeaad8af0e705ff8942ad3644d42e9bd1ac93360dda132e81eac94c3a
4
- data.tar.gz: 0efc6da855db6c6087405a8a86a32c1c5ec331fa6605f5c73bf6ba50cd3ab788
3
+ metadata.gz: 6f47c52fd484b873fc0a064472c8294063d88905d59859bc67b07542892ec273
4
+ data.tar.gz: 47cc32427afa876abc9303c9a575e8cdc97f4dd546e32221a9d880415fe04c61
5
5
  SHA512:
6
- metadata.gz: 980d5d0b40716c183f460e92dceb012e0999a04f6449b9b5a637d45c1109f504949d6fd45cb598ef3263fb96f90dfac4609c9bfe10e280a2f1af1dbcae526515
7
- data.tar.gz: e2629dfb10d8554ac7da8f8c5541f38da1f02333e5259ac0f2bedd7fd2d68d3b5ad5e7ca1532b31ca769f918a253f97d8feeed1fcca66fe78766c77e0f5ad7f0
6
+ metadata.gz: f9309759d86f3cdfedf2beb55829f3272d055afe637fa1ce5e55beedb6509a07b2a8f2faaf8679726f4fc4bdffbc5e4dfdce3488c68559a75b1d380d6551ab7a
7
+ data.tar.gz: f264d1c628f3856cbbf605f1133f0d7802fa1662028d3915a0f850f73235132f422242a5ca24e06f52cba530bff660ca8d8ffe91ef9495301df975dd622ab672
@@ -13,15 +13,17 @@ class Office::EmailFilter
13
13
  field :body_regex
14
14
  field :body_exact
15
15
 
16
- KIND_AUTORESPOND = 'autorespond' # @deprecated, DO NOT USE!
16
+
17
17
  KIND_AUTORESPOND_TMPL = 'autorespond-template'
18
18
  KIND_AUTORESPOND_EACT = 'autorespond-email-action'
19
- KIND_REMOVE_TAG = 'remove-tag'
20
- KIND_ADD_TAG = 'add-tag'
21
- KIND_DELETE = 'delete' # @obsolete, use add-tag
22
- KIND_SKIP_INBOX = 'skip-inbox' # @obsolete, use remove-tag
19
+ KIND_REMOVE_TAG = 'remove-tag'
20
+ KIND_ADD_TAG = 'add-tag'
21
+
22
+ KIND_AUTORESPOND = 'autorespond' # @deprecated, DO NOT USE!
23
+ KIND_DELETE = 'delete' # @deprecated, use add-tag
24
+ KIND_SKIP_INBOX = 'skip-inbox' # @deprecated, use remove-tag
23
25
 
24
- KINDS = [ nil, KIND_AUTORESPOND_TMPL, KIND_AUTORESPOND_EACT, KIND_SKIP_INBOX, KIND_ADD_TAG, KIND_REMOVE_TAG]
26
+ KINDS = [ nil, KIND_AUTORESPOND_TMPL, KIND_AUTORESPOND_EACT, KIND_ADD_TAG, KIND_REMOVE_TAG]
25
27
  field :kind
26
28
 
27
29
  STATE_ACTIVE = 'active'
@@ -94,11 +94,6 @@ class Office::EmailMessage
94
94
  def apply_filter filter
95
95
  case filter.kind
96
96
 
97
- ## @deprecated, use KIND_REMOVE_TAG
98
- when ::Office::EmailFilter::KIND_SKIP_INBOX
99
- # self.remove_tag( WpTag::INBOX )
100
- self.conv.remove_tag( WpTag::INBOX )
101
-
102
97
  when ::Office::EmailFilter::KIND_ADD_TAG
103
98
  self.conv.add_tag( filter.wp_term_id )
104
99
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.33.248
4
+ version: 0.0.33.249
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox