wco_models 3.1.0.196 → 3.1.0.198
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.rb +2 -2
- data/app/models/wco_email/message_stub.rb +3 -2
- 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: 833420f8f14a04997a7947c6d7f8090ad7d94d9ab8aa5c5d6db340163a706ea8
|
4
|
+
data.tar.gz: 644f992ba2e95e8f05efa3fb51f978f44182c402b0bc13f7449f0b02fd8bef64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92fc1f474bbfe312097c6f66adb9ba6d65add8c14890180920bcffb380ccde129bfb898bd0c4fc76daa35d01c1caf2e5c1ec5191df02434fe07c319675648ba2
|
7
|
+
data.tar.gz: 1605dfb6dc8e716af6b2446d8fc50f82f7ec2d718de1a9a934608b2f9bc074d82840d629b1ce371ce5a8c44ade0bb5cf8b6024a8ed4331f5dbeff5c9d42110e0
|
@@ -23,7 +23,7 @@ class WcoEmail::EmailFilter
|
|
23
23
|
|
24
24
|
has_many :actions, class_name: '::WcoEmail::EmailFilterAction', inverse_of: :email_filter
|
25
25
|
accepts_nested_attributes_for :actions, allow_destroy: true
|
26
|
-
validate :validate_actions
|
26
|
+
# validate :validate_actions
|
27
27
|
def validate_actions
|
28
28
|
if actions.length == 0
|
29
29
|
errors.add(:actions, 'must be present')
|
@@ -38,7 +38,7 @@ class WcoEmail::EmailFilter
|
|
38
38
|
has_many :skip_conditions, class_name: '::WcoEmail::EmailFilterCondition', inverse_of: :email_skip_filter
|
39
39
|
accepts_nested_attributes_for :skip_conditions, allow_destroy: true
|
40
40
|
|
41
|
-
validate :validate_conditions
|
41
|
+
# validate :validate_conditions
|
42
42
|
def validate_conditions
|
43
43
|
if conditions.length + skip_conditions.length == 0
|
44
44
|
errors.add(:conditions, 'Either conditions or skip conditions must be present.')
|
@@ -239,10 +239,11 @@ class WcoEmail::MessageStub
|
|
239
239
|
else
|
240
240
|
## 2024-07-30 I'm no longer sending these to google.
|
241
241
|
## 2024-11-03 restarted sending.
|
242
|
+
## 2025-01-23 no longer sending to google.
|
242
243
|
conv = WcoEmail::Conversation.find( conv.id )
|
243
244
|
if conv.tags.include? Wco::Tag.inbox
|
244
|
-
out = WcoEmail::ApplicationMailer.forwarder_notify( @message.id.to_s )
|
245
|
-
Rails.env.production? ? out.deliver_later : out.deliver_now
|
245
|
+
# out = WcoEmail::ApplicationMailer.forwarder_notify( @message.id.to_s )
|
246
|
+
# Rails.env.production? ? out.deliver_later : out.deliver_now
|
246
247
|
end
|
247
248
|
end
|
248
249
|
|