ish_models 0.0.33.248 → 0.0.33.249
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/office/email_filter.rb +8 -6
- data/lib/office/email_message.rb +0 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f47c52fd484b873fc0a064472c8294063d88905d59859bc67b07542892ec273
|
4
|
+
data.tar.gz: 47cc32427afa876abc9303c9a575e8cdc97f4dd546e32221a9d880415fe04c61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9309759d86f3cdfedf2beb55829f3272d055afe637fa1ce5e55beedb6509a07b2a8f2faaf8679726f4fc4bdffbc5e4dfdce3488c68559a75b1d380d6551ab7a
|
7
|
+
data.tar.gz: f264d1c628f3856cbbf605f1133f0d7802fa1662028d3915a0f850f73235132f422242a5ca24e06f52cba530bff660ca8d8ffe91ef9495301df975dd622ab672
|
data/lib/office/email_filter.rb
CHANGED
@@ -13,15 +13,17 @@ class Office::EmailFilter
|
|
13
13
|
field :body_regex
|
14
14
|
field :body_exact
|
15
15
|
|
16
|
-
|
16
|
+
|
17
17
|
KIND_AUTORESPOND_TMPL = 'autorespond-template'
|
18
18
|
KIND_AUTORESPOND_EACT = 'autorespond-email-action'
|
19
|
-
KIND_REMOVE_TAG
|
20
|
-
KIND_ADD_TAG
|
21
|
-
|
22
|
-
|
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,
|
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'
|
data/lib/office/email_message.rb
CHANGED
@@ -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
|
|