mass-client 1.0.29 → 1.0.30

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9380c702eb69c7a65d4c547811eeab6785fa9fdeb9f85e3c0ec5909b0533e08e
4
- data.tar.gz: 85cde6d58b6f13edb37d8abee02804330360cd818ef5945fc3436665c66cbaf3
3
+ metadata.gz: 1f45caa615a6c2efeffb0784f542acb2854bc38d263fbe4cdd08e636305ab8ed
4
+ data.tar.gz: 44bfe2b956e58d162ab9ef7341211965c70ccc9ddbc2763e742cce8ab19911ee
5
5
  SHA512:
6
- metadata.gz: 2bc9901b6d7df6c6fefa02aa2e4c9d720fea770e106d41febb0cace29ca7ebe1f54977a6e11185f80d2e408334cbdf2a9e16e24fb037cb071a67f21599fa2e15
7
- data.tar.gz: 28678eed6f14ac5c812b9116ce06a96d25c3fe39c1607e7c01936f5a1343ea396d59008499b9b61252f082820afa9185b96a35bdf71275387c6d3e5aa8528d22
6
+ metadata.gz: dcf5e9b99d7be75612031456558961d0bce471d4cf565bc686593ced414a269a49b5f7f22a23dfbbe5ffe7be1fa060237573e40f745be45e73c57d3d89fd50bc
7
+ data.tar.gz: c60969bce39377145919c9a256eadcda71f926b1c5310e035827e9749b1c0415643bb2f83773edd8fbc09644e43a9e5a3a321b524c3d1001dcf26d3e0a51f4ee
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
data/lib/base-line/job.rb CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
data/lib/base-line/tag.rb CHANGED
File without changes
File without changes
File without changes
@@ -38,7 +38,7 @@ module Mass
38
38
  t = self.type
39
39
  sources = [
40
40
  {:folder=>p.desc['inbox_label'] || t.desc['default_inbox_label'], :track_field=>'imap_inbox_last_id'},
41
- #{:folder=>p.desc['spam_label'] || t.desc['default_inbox_label'], :track_field=>'imap_spam_last_id'},
41
+ {:folder=>p.desc['spam_label'] || t.desc['default_spam_label'], :track_field=>'imap_spam_last_id'},
42
42
  ]
43
43
 
44
44
  # connecting imap
@@ -62,11 +62,15 @@ module Mass
62
62
  l.logs "Examine folder... "
63
63
  res = imap.examine(folder)
64
64
  l.logf "done (#{res.name})"
65
-
65
+
66
66
  # Gettin latest `limit` messages received, in descendent order (newer first),
67
67
  # in order to stop when I find the latest procesed before.
68
68
  l.logs "Getting latest #{limit.to_s} messages... "
69
- ids = imap.search(["SUBJECT", p.desc['search_all_wildcard']]).reverse[0..limit]
69
+ if p.desc['search_all_wildcard'] == 'ALL'
70
+ ids = imap.search([p.desc['search_all_wildcard']]).reverse[0..limit]
71
+ else
72
+ ids = imap.search(["SUBJECT", p.desc['search_all_wildcard']]).reverse[0..limit]
73
+ end
70
74
  l.logf "done (#{ids.size.to_s} messages)"
71
75
 
72
76
  # iterate the messages
File without changes
data/lib/mass-client.rb CHANGED
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mass-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.29
4
+ version: 1.0.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Daniel Sardi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-14 00:00:00.000000000 Z
11
+ date: 2025-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: timeout