wco_models 3.1.0.256 → 3.1.0.257
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 +4 -4
- data/app/models/wco_email/email_filter_condition.rb +19 -12
- 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: 6e767956c5c69ff3ca2f88a2d28dc018dfd4fb0db6007d75b28cfbf73eb49620
|
|
4
|
+
data.tar.gz: 46eb26b616382e9d327660cee34914087f09d21c09e2f348c4ec05bebb3323e4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 46c2f66b85a3f83afc8df98daa734ba49bc38e3b9ca96b83919d2b777f1524cad61595b4862a1795a4aa59805c3b6a5e7703483f5c31d7452a32ca2620d77280
|
|
7
|
+
data.tar.gz: 7aaee28f649f23c530fe400e60e7233a46d8c0981e0bc0d4c7afebbcac5f56c9b0c2466f287ca4a2f8c542ebe527a6645f154624a614f99c7fd1926902b3c94a
|
|
@@ -40,20 +40,27 @@ class WcoEmail::EmailFilterCondition
|
|
|
40
40
|
cond = self
|
|
41
41
|
reason = nil
|
|
42
42
|
case cond.field
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
if
|
|
47
|
-
|
|
48
|
-
else
|
|
49
|
-
reason = "#{email_skip_filter ? 'skip_' : ''}condition leadset not-has-tag #{this_tag} NOT met"
|
|
43
|
+
## from match-i <value>
|
|
44
|
+
when WcoEmail::EmailFilterCondition::FIELD_FROM
|
|
45
|
+
if cond.operator == WcoEmail::EmailFilterCondition::OPERATOR_MATCH
|
|
46
|
+
if message.from.downcase.include?( value.downcase )
|
|
47
|
+
reason = "#{email_skip_filter ? 'skip_' : ''}condition from match-i `#{value}`"
|
|
50
48
|
end
|
|
51
49
|
end
|
|
52
|
-
when WcoEmail::
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
50
|
+
# when WcoEmail::FIELD_LEADSET
|
|
51
|
+
# if cond.operator == WcoEmail::OPERATOR_NOT_HAS_TAG
|
|
52
|
+
# this_tag = Wco::Tag.find cond.value
|
|
53
|
+
# if leadset.tags.include?( this_tag )
|
|
54
|
+
# ;
|
|
55
|
+
# else
|
|
56
|
+
# reason = "#{email_skip_filter ? 'skip_' : ''}condition leadset not-has-tag #{this_tag} NOT met"
|
|
57
|
+
# end
|
|
58
|
+
# end
|
|
59
|
+
# when WcoEmail::FIELD_TO
|
|
60
|
+
# if message.to == cond.value
|
|
61
|
+
# reason = "{email_skip_filter ? 'skip_' : ''}condition to = #{cond.value}"
|
|
62
|
+
# end
|
|
63
|
+
# end
|
|
57
64
|
return reason
|
|
58
65
|
end
|
|
59
66
|
|