itrp-export-monitor 1.0.4 → 1.0.5

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NGYyODZmYTUyNTRjZDhhMDAyMWQxNzk0N2NkYWQ4ZjdjMTZmM2ZmZQ==
4
+ NDg0YTUyMDEwZGZmZWJkNGI4NDQ1ZDliNzQ5OGNhNzg2ZmM0MDhmNg==
5
5
  data.tar.gz: !binary |-
6
- ODQ5YzVhZmM2MTNiZDUwOWY0NmU0OTE5MDRjNmNlYmYxNWJmMDU1Ng==
6
+ MmMxMDgxZTAwY2NjODk0ZjE2OTQwODA0YTM0Y2RiMWQxNjI3NzEyMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YzBmZTFhMDhhNzBiYmYzMDg2MDgxZjU4MzRmYTE1ZWViYWQxMjkxYjExMDMy
10
- NjMwNmMyZmRkMzQ0ZDdhMzJiZTg5NjZmMmNmNDYzNDIzOGYxZmVmMGVmNDYy
11
- ZGUzYWExMWViZWI0MThkOTI3NTBiMWE0YjFiZWQwMzE2OTJlNWU=
9
+ Y2UxYzkxZTA0MGZlM2FhMTZjOTRkMWNmMGM2ZGY1NGMxMGEyYTY0ZmE3ZDEw
10
+ NTU2NTNiZTY5YThlZTlkZGJkMDJlZGQ3ODg2ZGRiMDliOTA0ZDM5NDFjMjhm
11
+ NTNkYTkyMGI2Zjc5YjU5MzAzYmQzNGU5ZjRlZjI3NDAxZGNiMjg=
12
12
  data.tar.gz: !binary |-
13
- NTc3OWEwMzA4NDdkMjI3NjM4OTYyZDQwZTZhZmVjZGZiMmNlNjVjNGQzNzMw
14
- Mjk1N2Y5ZjYxNDhlNzY4NGQ0MWI3MDY3OWRhZmJlYWEwMmZlYTk4MzlmMWVm
15
- ZGMxZjljZDZkNDhiMWRhMWIyZjQ2YTE5YWRmYTgxZDdkZjU0MzY=
13
+ ZGM3ZTJhM2JlNzAzMTBiMTgxOTdjODRjMjc5OWEwN2Q4Nzk4YWNhMDk2NWE0
14
+ MzE3OWU1NzNjOWVkOTgxZDA5NjgzZTRjZjkxZjk2OWUxYjQ4NWU5YmQ0ZjUy
15
+ Mzk1NmQ4YjcxNDlhNDEzYWMxM2RiNmI1ZWI3MjYyODc4MWY1ZjQ=
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- itrp-export-monitor (1.0.4)
4
+ itrp-export-monitor (1.0.5)
5
5
  activesupport
6
6
  clacks (>= 1.0.7)
7
7
  gem_config
@@ -12,7 +12,7 @@ PATH
12
12
  GEM
13
13
  remote: https://rubygems.org/
14
14
  specs:
15
- activesupport (4.1.7)
15
+ activesupport (4.1.8)
16
16
  i18n (~> 0.6, >= 0.6.9)
17
17
  json (~> 1.7, >= 1.7.7)
18
18
  minitest (~> 5.1)
@@ -35,7 +35,7 @@ GEM
35
35
  mail (2.6.3)
36
36
  mime-types (>= 1.16, < 3)
37
37
  mime-types (2.4.3)
38
- minitest (5.4.2)
38
+ minitest (5.5.0)
39
39
  multi_json (1.8.2)
40
40
  rake (10.1.0)
41
41
  rspec (2.14.1)
data/README.md CHANGED
@@ -56,7 +56,7 @@ the Scheduled Export in ITRP at `https://<your domain>.itrp.com/exports`.
56
56
 
57
57
  The **email address** is the email address where the export file is sent to.
58
58
  This is the email address of the user defined in the *Run as* field.
59
- **We strongly recommend to [create a separate mailbox](setup-a-mailbox) for the export monitor.**
59
+ **We strongly recommend to [create a separate mailbox](#setup-a-mailbox) for the export monitor.**
60
60
 
61
61
  The **password** is the password with which the IMAP server can be accessed for this email address.
62
62
 
@@ -141,6 +141,7 @@ All options available:
141
141
  * _imap_password_: **required** The password to access the IMAP server
142
142
  * _imap_mailbox_: The mailbox to monitor for ITRP export mails (default: `'INBOX'`)
143
143
  * _imap_archive_: The archive mailbox to store the processed ITRP export mails (default: `'[Gmail]/All Mail'`)
144
+ * _imap_search_: The query used to search for emails from ITRP containing export data (default: `'FROM ITRP HEADER X-ITRP-ExportID ""'`)
144
145
  * _on_exception_: A Proc that takes an exception and the mail as an argument: `Proc.new{ |ex, mail| ... }`.
145
146
  All exceptions will also be logged as errors in the logfile.
146
147
  * _csv_row_sep_: Set the CSV row separator (default: `:auto`, i.e. windows/unix newline)
@@ -78,7 +78,7 @@ imap({
78
78
  find_options({
79
79
  mailbox: '#{option(:imap_mailbox)}',
80
80
  archivebox: '#{option(:imap_archive)}',
81
- keys: 'FROM ITRP HEADER X-ITRP-ExportID ""',
81
+ keys: '#{option(:imap_search)}',
82
82
  delete_after_find: true # Note that only the processed export mails will be deleted
83
83
  })
84
84
 
@@ -1,7 +1,7 @@
1
1
  module Itrp
2
2
  module Export
3
3
  module Monitor
4
- VERSION = '1.0.4'
4
+ VERSION = '1.0.5'
5
5
  end
6
6
  end
7
7
  end
@@ -50,6 +50,7 @@ module Itrp
50
50
  # - imap_password: *required* The password to access the IMAP server
51
51
  # - imap_mailbox: The mailbox to monitor for ITRP export mails (default: 'INBOX')
52
52
  # - imap_archive: The archive mailbox to store the processed ITRP export mails (default: '[Gmail]/All Mail')
53
+ # - imap_search: The query used to search for emails from ITRP containing export data (default: `'FROM ITRP HEADER X-ITRP-ExportID ""'`)
53
54
  # - on_exception: A Proc that takes an exception and the mail as an argument: Proc.new{ |ex, mail| ... }
54
55
  module Monitor
55
56
  include GemConfig::Base
@@ -80,6 +81,7 @@ module Itrp
80
81
 
81
82
  has :imap_mailbox, classes: String, default: 'INBOX'
82
83
  has :imap_archive, classes: String, default: '[Gmail]/All Mail'
84
+ has :imap_search, classes: String, default: 'FROM ITRP HEADER X-ITRP-ExportID ""'
83
85
 
84
86
  has :on_exception, classes: Proc
85
87
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itrp-export-monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - ITRP
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-11 00:00:00.000000000 Z
11
+ date: 2014-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem_config