mxhero-api 0.1.38 → 0.1.39

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTU5NzY4NDRiMjRiYzVhM2VmOGMzMDg3OTgyZjY1ODFkODZhZmEzYw==
4
+ ODczNGI2OTc5NWEyODQ3NGM3MTM2ZGNlZTA1MDRlY2RjNWFlZWRiMA==
5
5
  data.tar.gz: !binary |-
6
- OTQwNTgxOGFhNGQ3NDVlNzViMzIyNzhjODJjMTQwYzdhNDg3N2JhMA==
6
+ NzkyZDNiOGRhZjhjOTViMGU4Yjg2ZTYzNGFkYjcyOGFmMDA2ZWZkYw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NjEyNjBkZDQ3NTkzMWYxNDUxMTcwNmZjZTFlOWJiMWIwNzcxODRiYTJiODdi
10
- M2JmNmYwODM0YmFlY2JkZDlkZWVlNmQyOTk0ZWQ3YmNmOTdiOWNjOGQ5Nzdj
11
- YzBlZWM3ZTQ4ZTVmODliNzU2M2Q0YTMwYWVkYzY1ZmRmMjMyN2Y=
9
+ ZTBhMzI3MGVhYzU5ZmU4NjczZjNkMGU5ZWNmMTBkZmQ5YjgzNWY1YzU1ODVj
10
+ ZmMwMjk1ZjJiNzU4NzUyOWQ1NjQ0NjI0M2NiOWE1MDA4NmFjNDUyMDI1YWQ4
11
+ ZGYwZjJiMTQwMTVjZTdiMWJmY2Y0ZTQ2NTkzNDM1NWU0NzMyMDA=
12
12
  data.tar.gz: !binary |-
13
- ZWY0ZDI0YjcwMWJmYzhmNTU1YWUyZTlkMGEzNWJjN2Q0ZTNlODZhMDJhNTQ0
14
- MjU4ODI0NmIxYWZkYjdiNWVmNTRhYzM2OTlkNWQwMGRlMDQ2N2JhM2I5Zjcz
15
- ZjJlNjdlZDBjYTE2Mzg5NjI1ZTlmNmRiNmQyMWE0ZjQyYzE0OGU=
13
+ NWRkN2E1MjE4YWIyYmU0ZWZjNjM2M2M2MGQ0Mzc2OGExN2ZjNTc5ZjNmYjcx
14
+ ZjBkOWM1ODlkNTZjYjBkOTRiMDgwODNlOGMwOWY3MThhMjFlOWE1YmExOTUz
15
+ NzU2YmQ5ZGIyOTEyYmFmZDBjZmYzYmViZGM3ZmM2ZDQyNWMxOWM=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.38
1
+ 0.1.39
data/lib/mxhero-api.rb CHANGED
@@ -89,6 +89,13 @@ module MxHero::API
89
89
  parse_response(response)
90
90
  end
91
91
 
92
+ # In case of error, the message is completed with the cause of error
93
+ def rule_status(domain, rule_id, enabled = true)
94
+ url = domain_rule_url(domain, rule_id)+"/status?enabled=#{enabled}"
95
+ response = call(:put, url)
96
+ parse_response(response)
97
+ end
98
+
92
99
  # Retrive all the domains
93
100
  #
94
101
  # TODO: Improve the response. We really need manage pagination here?
data/mxhero-api.gemspec CHANGED
@@ -1,22 +1,22 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: mxhero-api 0.1.38 ruby lib
2
+ # stub: mxhero-api 0.1.39 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "mxhero-api"
6
- s.version = "0.1.38"
6
+ s.version = "0.1.39"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
9
  s.authors = ["Maximiliano Dello Russo", "Juan Pablo Royo", "mxHero"]
10
- s.date = "2015-04-15"
10
+ s.date = "2015-05-04"
11
11
  s.description = "A gem to provide easy access to the API of MxHero platform (http://www.mxhero.com/)"
12
12
  s.email = ["maxidr@mxhero.com", "juanpablo.royo@gmail.com", "mxhero@mxhero.com"]
13
- s.files = [".gitignore", ".ruby-gemset", ".ruby-version", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "VERSION", "lib/communication.rb", "lib/directories.rb", "lib/dto.rb", "lib/groups.rb", "lib/mxhero-api.rb", "lib/resource.rb", "lib/resources/account.rb", "lib/resources/domain.rb", "lib/resources/group.rb", "lib/urls.rb", "mxhero-api.gemspec", "test/fixtures/api/account_properties.yml", "test/fixtures/api/account_properties_not_found.yml", "test/fixtures/api/accounts.yml", "test/fixtures/api/accounts_filtered.yml", "test/fixtures/api/accounts_from_domain.yml", "test/fixtures/api/accounts_from_domain_paginated.yml", "test/fixtures/api/accounts_without_group.yml", "test/fixtures/api/add_an_inexistent_account_to_group.yml", "test/fixtures/api/add_and_remove_account.yml", "test/fixtures/api/add_feature.yml", "test/fixtures/api/all_groups.yml", "test/fixtures/api/associate_user_domain.yml", "test/fixtures/api/create_directory.yml", "test/fixtures/api/create_domain.yml", "test/fixtures/api/create_rule_for_domain.yml", "test/fixtures/api/create_user.yml", "test/fixtures/api/delete_directory.yml", "test/fixtures/api/delete_group.yml", "test/fixtures/api/delete_rule.yml", "test/fixtures/api/domain_by_id.yml", "test/fixtures/api/domain_by_id_not_found.yml", "test/fixtures/api/domain_rule.yml", "test/fixtures/api/domains.yml", "test/fixtures/api/fetch_directory.yml", "test/fixtures/api/fetch_user.yml", "test/fixtures/api/ldap_info.yml", "test/fixtures/api/move_to_trial.yml", "test/fixtures/api/refresh_directory.yml", "test/fixtures/api/remove_account_from_group_twice.yml", "test/fixtures/api/remove_inexistente_account_from_group.yml", "test/fixtures/api/rules_for_domain.yml", "test/fixtures/api/rules_for_domain_by_component.yml", "test/fixtures/api/save_group.yml", "test/fixtures/api/system_properties.yml", "test/fixtures/api/system_properties_create.yml", "test/fixtures/api/system_properties_element.yml", "test/fixtures/api/test_domain.yml", "test/fixtures/api/update_account_properties.yml", "test/fixtures/api/update_accounts_group_scope.yml", "test/fixtures/api/update_accounts_properties_scope.yml", "test/fixtures/api/update_directory.yml", "test/fixtures/api/update_rule.yml", "test/fixtures/api/update_user.yml", "test/fixtures/api/user_domains.yml", "test/fixtures/api/users_for_domain.yml", "test/fixtures/api/validate_user_credential.yml", "test/fixtures/domain.rb", "test/helper.rb", "test/test_directories.rb", "test/test_domain.rb", "test/test_dto.rb", "test/test_feature.rb", "test/test_groups.rb", "test/test_mxhero_api.rb", "test/test_mxhero_api_response.rb", "test/test_resource.rb"]
13
+ s.files = [".gitignore", ".ruby-gemset", ".ruby-version", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "VERSION", "lib/communication.rb", "lib/directories.rb", "lib/dto.rb", "lib/groups.rb", "lib/mxhero-api.rb", "lib/resource.rb", "lib/resources/account.rb", "lib/resources/domain.rb", "lib/resources/group.rb", "lib/urls.rb", "mxhero-api.gemspec", "test/fixtures/api/account_properties.yml", "test/fixtures/api/account_properties_not_found.yml", "test/fixtures/api/accounts.yml", "test/fixtures/api/accounts_filtered.yml", "test/fixtures/api/accounts_from_domain.yml", "test/fixtures/api/accounts_from_domain_paginated.yml", "test/fixtures/api/accounts_without_group.yml", "test/fixtures/api/add_an_inexistent_account_to_group.yml", "test/fixtures/api/add_and_remove_account.yml", "test/fixtures/api/add_feature.yml", "test/fixtures/api/all_groups.yml", "test/fixtures/api/associate_user_domain.yml", "test/fixtures/api/create_directory.yml", "test/fixtures/api/create_domain.yml", "test/fixtures/api/create_rule_for_domain.yml", "test/fixtures/api/create_user.yml", "test/fixtures/api/delete_directory.yml", "test/fixtures/api/delete_group.yml", "test/fixtures/api/delete_rule.yml", "test/fixtures/api/domain_by_id.yml", "test/fixtures/api/domain_by_id_not_found.yml", "test/fixtures/api/domain_rule.yml", "test/fixtures/api/domains.yml", "test/fixtures/api/fetch_directory.yml", "test/fixtures/api/fetch_user.yml", "test/fixtures/api/ldap_info.yml", "test/fixtures/api/move_to_trial.yml", "test/fixtures/api/refresh_directory.yml", "test/fixtures/api/remove_account_from_group_twice.yml", "test/fixtures/api/remove_inexistente_account_from_group.yml", "test/fixtures/api/rule_status.yml", "test/fixtures/api/rules_for_domain.yml", "test/fixtures/api/rules_for_domain_by_component.yml", "test/fixtures/api/save_group.yml", "test/fixtures/api/system_properties.yml", "test/fixtures/api/system_properties_create.yml", "test/fixtures/api/system_properties_element.yml", "test/fixtures/api/test_domain.yml", "test/fixtures/api/update_account_properties.yml", "test/fixtures/api/update_accounts_group_scope.yml", "test/fixtures/api/update_accounts_properties_scope.yml", "test/fixtures/api/update_directory.yml", "test/fixtures/api/update_rule.yml", "test/fixtures/api/update_user.yml", "test/fixtures/api/user_domains.yml", "test/fixtures/api/users_for_domain.yml", "test/fixtures/api/validate_user_credential.yml", "test/fixtures/domain.rb", "test/helper.rb", "test/test_directories.rb", "test/test_domain.rb", "test/test_dto.rb", "test/test_feature.rb", "test/test_groups.rb", "test/test_mxhero_api.rb", "test/test_mxhero_api_response.rb", "test/test_resource.rb"]
14
14
  s.homepage = "http://github.com/mxhero/mxhero-api"
15
15
  s.licenses = ["GPL-3"]
16
16
  s.require_paths = ["lib"]
17
- s.rubygems_version = "2.1.2"
17
+ s.rubygems_version = "2.1.9"
18
18
  s.summary = "A MxHero API client for ruby"
19
- s.test_files = ["test/fixtures/api/account_properties.yml", "test/fixtures/api/account_properties_not_found.yml", "test/fixtures/api/accounts.yml", "test/fixtures/api/accounts_filtered.yml", "test/fixtures/api/accounts_from_domain.yml", "test/fixtures/api/accounts_from_domain_paginated.yml", "test/fixtures/api/accounts_without_group.yml", "test/fixtures/api/add_an_inexistent_account_to_group.yml", "test/fixtures/api/add_and_remove_account.yml", "test/fixtures/api/add_feature.yml", "test/fixtures/api/all_groups.yml", "test/fixtures/api/associate_user_domain.yml", "test/fixtures/api/create_directory.yml", "test/fixtures/api/create_domain.yml", "test/fixtures/api/create_rule_for_domain.yml", "test/fixtures/api/create_user.yml", "test/fixtures/api/delete_directory.yml", "test/fixtures/api/delete_group.yml", "test/fixtures/api/delete_rule.yml", "test/fixtures/api/domain_by_id.yml", "test/fixtures/api/domain_by_id_not_found.yml", "test/fixtures/api/domain_rule.yml", "test/fixtures/api/domains.yml", "test/fixtures/api/fetch_directory.yml", "test/fixtures/api/fetch_user.yml", "test/fixtures/api/ldap_info.yml", "test/fixtures/api/move_to_trial.yml", "test/fixtures/api/refresh_directory.yml", "test/fixtures/api/remove_account_from_group_twice.yml", "test/fixtures/api/remove_inexistente_account_from_group.yml", "test/fixtures/api/rules_for_domain.yml", "test/fixtures/api/rules_for_domain_by_component.yml", "test/fixtures/api/save_group.yml", "test/fixtures/api/system_properties.yml", "test/fixtures/api/system_properties_create.yml", "test/fixtures/api/system_properties_element.yml", "test/fixtures/api/test_domain.yml", "test/fixtures/api/update_account_properties.yml", "test/fixtures/api/update_accounts_group_scope.yml", "test/fixtures/api/update_accounts_properties_scope.yml", "test/fixtures/api/update_directory.yml", "test/fixtures/api/update_rule.yml", "test/fixtures/api/update_user.yml", "test/fixtures/api/user_domains.yml", "test/fixtures/api/users_for_domain.yml", "test/fixtures/api/validate_user_credential.yml", "test/fixtures/domain.rb", "test/helper.rb", "test/test_directories.rb", "test/test_domain.rb", "test/test_dto.rb", "test/test_feature.rb", "test/test_groups.rb", "test/test_mxhero_api.rb", "test/test_mxhero_api_response.rb", "test/test_resource.rb"]
19
+ s.test_files = ["test/fixtures/api/account_properties.yml", "test/fixtures/api/account_properties_not_found.yml", "test/fixtures/api/accounts.yml", "test/fixtures/api/accounts_filtered.yml", "test/fixtures/api/accounts_from_domain.yml", "test/fixtures/api/accounts_from_domain_paginated.yml", "test/fixtures/api/accounts_without_group.yml", "test/fixtures/api/add_an_inexistent_account_to_group.yml", "test/fixtures/api/add_and_remove_account.yml", "test/fixtures/api/add_feature.yml", "test/fixtures/api/all_groups.yml", "test/fixtures/api/associate_user_domain.yml", "test/fixtures/api/create_directory.yml", "test/fixtures/api/create_domain.yml", "test/fixtures/api/create_rule_for_domain.yml", "test/fixtures/api/create_user.yml", "test/fixtures/api/delete_directory.yml", "test/fixtures/api/delete_group.yml", "test/fixtures/api/delete_rule.yml", "test/fixtures/api/domain_by_id.yml", "test/fixtures/api/domain_by_id_not_found.yml", "test/fixtures/api/domain_rule.yml", "test/fixtures/api/domains.yml", "test/fixtures/api/fetch_directory.yml", "test/fixtures/api/fetch_user.yml", "test/fixtures/api/ldap_info.yml", "test/fixtures/api/move_to_trial.yml", "test/fixtures/api/refresh_directory.yml", "test/fixtures/api/remove_account_from_group_twice.yml", "test/fixtures/api/remove_inexistente_account_from_group.yml", "test/fixtures/api/rule_status.yml", "test/fixtures/api/rules_for_domain.yml", "test/fixtures/api/rules_for_domain_by_component.yml", "test/fixtures/api/save_group.yml", "test/fixtures/api/system_properties.yml", "test/fixtures/api/system_properties_create.yml", "test/fixtures/api/system_properties_element.yml", "test/fixtures/api/test_domain.yml", "test/fixtures/api/update_account_properties.yml", "test/fixtures/api/update_accounts_group_scope.yml", "test/fixtures/api/update_accounts_properties_scope.yml", "test/fixtures/api/update_directory.yml", "test/fixtures/api/update_rule.yml", "test/fixtures/api/update_user.yml", "test/fixtures/api/user_domains.yml", "test/fixtures/api/users_for_domain.yml", "test/fixtures/api/validate_user_credential.yml", "test/fixtures/domain.rb", "test/helper.rb", "test/test_directories.rb", "test/test_domain.rb", "test/test_dto.rb", "test/test_feature.rb", "test/test_groups.rb", "test/test_mxhero_api.rb", "test/test_mxhero_api_response.rb", "test/test_resource.rb"]
20
20
 
21
21
  if s.respond_to? :specification_version then
22
22
  s.specification_version = 4
@@ -0,0 +1,186 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://admin:password@test.mxhero.com/webapi/api/v1/domains/mxhero.com/rules
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Content-Type:
13
+ - application/json
14
+ Authorization:
15
+ - Basic YWRtaW46cGFzc3dvcmQ=
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: !binary |-
20
+ T0s=
21
+ headers:
22
+ !binary "RGF0ZQ==":
23
+ - !binary |-
24
+ TW9uLCAwNCBNYXkgMjAxNSAxOTozOToyNCBHTVQ=
25
+ !binary "U2VydmVy":
26
+ - !binary |-
27
+ QXBhY2hlLzIuMi4xNCAoVWJ1bnR1KQ==
28
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
29
+ - !binary |-
30
+ Y2h1bmtlZA==
31
+ !binary "Q29udGVudC1UeXBl":
32
+ - !binary |-
33
+ YXBwbGljYXRpb24vanNvbg==
34
+ body:
35
+ encoding: US-ASCII
36
+ string: ! '[{"id":19807,"domain":"mxhero.com","name":"trackurl-domain-to-any","created":1401375652000,"updated":1401375652000,"enabled":true,"twoWays":false,"adminOrder":"before","component":"com.mxhero.application.trackurl","fromDirection":{"id":39613,"directionType":"domain","freeValue":"mxhero.com","domain":"mxhero.com","account":null,"group":null},"toDirection":{"id":39614,"directionType":"anyone","freeValue":"anyone","domain":null,"account":null,"group":null},"properties":[]},{"id":19810,"domain":"mxhero.com","name":"aaaaa","created":1402603592000,"updated":1402603592000,"enabled":true,"twoWays":false,"adminOrder":null,"component":"org.mxhero.feature.wiretapcontent","fromDirection":{"id":39619,"directionType":"individual","freeValue":"maxidr@mxhero.com","domain":"mxhero.com","account":"maxidr","group":null},"toDirection":{"id":39620,"directionType":"anyone","freeValue":"anyone","domain":null,"account":null,"group":null},"properties":[{"propertyKey":"andor.selection","propertyValue":"or"},{"propertyKey":"interParsing","propertyValue":"true"},{"propertyKey":"word.list","propertyValue":"aaaa"},{"propertyKey":"email.value","propertyValue":""},{"propertyKey":"found.action","propertyValue":"drop"}]},{"id":19817,"domain":"mxhero.com","name":"rule
37
+ 2","created":1403027638000,"updated":1403028417000,"enabled":false,"twoWays":true,"adminOrder":null,"component":"com.mxhero.application.box","fromDirection":{"id":39633,"directionType":"domain","freeValue":"mxhero.com","domain":"mxhero.com","account":null,"group":null},"toDirection":{"id":39634,"directionType":"individual","freeValue":"maxidr@mxhero.com","domain":"mxhero.com","account":"maxidr","group":null},"properties":[{"propertyKey":"adminAccount","propertyValue":"admin.maxidr@mxhero.com.es"},{"propertyKey":"storageAccount","propertyValue":"tester-fusion@mxhero.com"},{"propertyKey":"storageType","propertyValue":"box_account"},{"propertyKey":"folderStructure","propertyValue":"mail2Box/Fusion/${account.emailPeer}/${message.plainSubject}"},{"propertyKey":"embedded.attach","propertyValue":"true"},{"propertyKey":"embedded.attach.position","propertyValue":"botton"}]},{"id":19820,"domain":"mxhero.com","name":"mail2boxmxhero","created":1403192972000,"updated":1405425005000,"enabled":true,"twoWays":true,"adminOrder":null,"component":"com.mxhero.application.box","fromDirection":{"id":39639,"directionType":"domain","freeValue":"mxhero.com","domain":"mxhero.com","account":null,"group":null},"toDirection":{"id":39640,"directionType":"anyone","freeValue":"anyone","domain":null,"account":null,"group":null},"properties":[{"propertyKey":"adminAccount","propertyValue":"jproyo@mxhero.com"},{"propertyKey":"storageAccount","propertyValue":"jproyo@mxhero.com"},{"propertyKey":"storageType","propertyValue":"box_account"},{"propertyKey":"folderStructure","propertyValue":"mail2Box/Fusion/${account.emailPeer}/${message.plainSubject}"},{"propertyKey":"embedded.attach","propertyValue":"false"},{"propertyKey":"embedded.attach.position","propertyValue":""}]},{"id":19834,"domain":"mxhero.com","name":"label","created":1403469440000,"updated":1403469496000,"enabled":true,"twoWays":true,"adminOrder":null,"component":"com.mxhero.application.box.archive","fromDirection":{"id":39667,"directionType":"individual","freeValue":"marcelo@mxhero.com","domain":"mxhero.com","account":"marcelo","group":null},"toDirection":{"id":39668,"directionType":"individual","freeValue":"marketing@mxhero.com","domain":"mxhero.com","account":"marketing","group":null},"properties":[{"propertyKey":"adminAccount","propertyValue":"admin.mxhero@mxhero.com"},{"propertyKey":"storageAccount","propertyValue":""},{"propertyKey":"storageType","propertyValue":"rule_account"},{"propertyKey":"folderStructure","propertyValue":"mail2Box/Archive/${account.emailPeer}/${message.plainSubject}"},{"propertyKey":"storeMail","propertyValue":"false"},{"propertyKey":"storeAttachments","propertyValue":"true"},{"propertyKey":"storePdfMessage","propertyValue":"true"},{"propertyKey":"dropAfter","propertyValue":"false"}]},{"id":19835,"domain":"mxhero.com","name":"rule","created":1403470904000,"updated":1403470956000,"enabled":true,"twoWays":false,"adminOrder":null,"component":"com.mxhero.application.box.audit","fromDirection":{"id":39669,"directionType":"individual","freeValue":"maxidr@mxhero.com","domain":"mxhero.com","account":"maxidr","group":null},"toDirection":{"id":39670,"directionType":"anyone","freeValue":"anyone","domain":null,"account":null,"group":null},"properties":[{"propertyKey":"admin_account","propertyValue":"admin.mxhero@mxhero.com"},{"propertyKey":"storageAccount","propertyValue":"test@mxhero.com"},{"propertyKey":"storageType","propertyValue":"box_account"},{"propertyKey":"folderStructure","propertyValue":"mail2Box/Audit/${account.emailPeer}/${message.plainSubject}"},{"propertyKey":"storeMail","propertyValue":"false"},{"propertyKey":"storeAttachments","propertyValue":"false"},{"propertyKey":"storePdfMessage","propertyValue":"true"},{"propertyKey":"dropAfter","propertyValue":"false"},{"propertyKey":"andor.selection","propertyValue":"or"},{"propertyKey":"word.list","propertyValue":"test"},{"propertyKey":"word.list","propertyValue":"john"}]},{"id":19836,"domain":"mxhero.com","name":"rule","created":1403534584000,"updated":1403540406000,"enabled":true,"twoWays":false,"adminOrder":null,"component":"com.mxhero.application.box.track","fromDirection":{"id":39671,"directionType":"domain","freeValue":"mxhero.com","domain":"mxhero.com","account":null,"group":null},"toDirection":{"id":39672,"directionType":"individual","freeValue":"archive@mxhero.com","domain":"mxhero.com","account":"archive","group":null},"properties":[{"propertyKey":"useBox","propertyValue":"true"},{"propertyKey":"admin_account","propertyValue":"admin.maxidr@mxhero.com"},{"propertyKey":"storageAccount","propertyValue":""},{"propertyKey":"storageType","propertyValue":"rule_account"},{"propertyKey":"folderStructure","propertyValue":"mail2Box/Fusion/${account.emailPeer}/${message.plainSubject}"},{"propertyKey":"useReadReceipt","propertyValue":"true"},{"propertyKey":"keepUseReceipt","propertyValue":"false"}]},{"id":19837,"domain":"mxhero.com","name":"rule","created":1403541683000,"updated":1403541778000,"enabled":true,"twoWays":false,"adminOrder":null,"component":"com.mxhero.application.box.audit","fromDirection":{"id":39673,"directionType":"domain","freeValue":"mxhero.com","domain":"mxhero.com","account":null,"group":null},"toDirection":{"id":39674,"directionType":"individual","freeValue":"andy@mxhero.com","domain":"mxhero.com","account":"andy","group":null},"properties":[{"propertyKey":"admin_account","propertyValue":"admin.mxhero@mxhero.com"},{"propertyKey":"storageAccount","propertyValue":""},{"propertyKey":"storageType","propertyValue":"rule_account"},{"propertyKey":"folderStructure","propertyValue":"mail2Box/Audit/${account.emailPeer}/${message.plainSubject}"},{"propertyKey":"storeMail","propertyValue":"false"},{"propertyKey":"storeAttachments","propertyValue":"false"},{"propertyKey":"storePdfMessage","propertyValue":"true"},{"propertyKey":"dropAfter","propertyValue":"false"},{"propertyKey":"andor.selection","propertyValue":"or"},{"propertyKey":"word.list","propertyValue":"test"}]},{"id":19849,"domain":"mxhero.com","name":"test","created":1404412836000,"updated":1406218079000,"enabled":false,"twoWays":false,"adminOrder":null,"component":"com.mxhero.application.mail2cloud.archive","fromDirection":{"id":39697,"directionType":"individual","freeValue":"mmarmol@mxhero.com","domain":"mxhero.com","account":"mmarmol","group":null},"toDirection":{"id":39698,"directionType":"anyone","freeValue":"anyone","domain":null,"account":null,"group":null},"properties":[{"propertyKey":"storageType","propertyValue":"drive"},{"propertyKey":"storageData","propertyValue":""},{"propertyKey":"folderStructure","propertyValue":"mail2cloud/Archive/${emailPeer}/${subject}"},{"propertyKey":"storeMail","propertyValue":"false"},{"propertyKey":"storeAttachments","propertyValue":"false"},{"propertyKey":"storePdfMessage","propertyValue":"false"}]},{"id":19855,"domain":"mxhero.com","name":"rule","created":1404496422000,"updated":1404496422000,"enabled":true,"twoWays":false,"adminOrder":null,"component":"com.mxhero.application.box.track","fromDirection":{"id":39709,"directionType":"domain","freeValue":"mxhero.com","domain":"mxhero.com","account":null,"group":null},"toDirection":{"id":39710,"directionType":"individual","freeValue":"maxidr@mxhero.com","domain":"mxhero.com","account":"maxidr","group":null},"properties":[{"propertyKey":"useBox","propertyValue":"true"},{"propertyKey":"admin_account","propertyValue":"admin.maxidr@mxhero.com"},{"propertyKey":"storageAccount","propertyValue":"test@test.com"},{"propertyKey":"storageType","propertyValue":"box_account"},{"propertyKey":"folderStructure","propertyValue":"mail2Box/Fusion/${account.emailPeer}/${message.plainSubject}"},{"propertyKey":"useReadReceipt","propertyValue":"true"},{"propertyKey":"keepUseReceipt","propertyValue":"false"}]},{"id":19856,"domain":"mxhero.com","name":"rule","created":1404760744000,"updated":1404768811000,"enabled":false,"twoWays":false,"adminOrder":null,"component":"com.mxhero.application.mail2cloud.audit","fromDirection":{"id":39711,"directionType":"domain","freeValue":"mxhero.com","domain":"mxhero.com","account":null,"group":null},"toDirection":{"id":39712,"directionType":"individual","freeValue":"maxidr@mxhero.com","domain":"mxhero.com","account":"maxidr","group":null},"properties":[{"propertyKey":"storageType","propertyValue":"box"},{"propertyKey":"storageData","propertyValue":"{\"adminAccount\":\"maxidr@mxhero.com\",\"storageType\":\"rule_account\",\"storageAccount\":null}"},{"propertyKey":"folderStructure","propertyValue":"mail2Cloud/Audit/${emailPeer}/${subject}"},{"propertyKey":"storeMail","propertyValue":"true"},{"propertyKey":"storeAttachments","propertyValue":"false"},{"propertyKey":"storePdfMessage","propertyValue":"false"},{"propertyKey":"dropAfter","propertyValue":"false"},{"propertyKey":"andor.selection","propertyValue":"or"},{"propertyKey":"word.list","propertyValue":"sex"}]},{"id":19858,"domain":"mxhero.com","name":"rule","created":1405028682000,"updated":1405028682000,"enabled":true,"twoWays":true,"adminOrder":null,"component":"com.mxhero.application.box.archive","fromDirection":{"id":39715,"directionType":"anyone","freeValue":"anyone","domain":null,"account":null,"group":null},"toDirection":{"id":39716,"directionType":"domain","freeValue":"mxhero.com","domain":"mxhero.com","account":null,"group":null},"properties":[{"propertyKey":"adminAccount","propertyValue":"maxidr@mxhero.com"},{"propertyKey":"storageAccount","propertyValue":"maxidr@mxhero.com"},{"propertyKey":"storageType","propertyValue":"box_account"},{"propertyKey":"folderStructure","propertyValue":"mail2Box/Archive/${account.emailPeer}/${message.plainSubject}"},{"propertyKey":"storeMail","propertyValue":"true"},{"propertyKey":"storeAttachments","propertyValue":"true"},{"propertyKey":"storePdfMessage","propertyValue":"true"},{"propertyKey":"dropAfter","propertyValue":"false"}]},{"id":19860,"domain":"mxhero.com","name":"rule","created":1405541801000,"updated":1406246327000,"enabled":false,"twoWays":false,"adminOrder":null,"component":"com.mxhero.application.mail2cloud.archive","fromDirection":{"id":39719,"directionType":"domain","freeValue":"mxhero.com","domain":"mxhero.com","account":null,"group":null},"toDirection":{"id":39720,"directionType":"individual","freeValue":"maxidr@mxhero.com","domain":"mxhero.com","account":"maxidr","group":null},"properties":[{"propertyKey":"storageType","propertyValue":"box"},{"propertyKey":"storageData","propertyValue":"{\"adminAccount\":\"maxidr@mxhero.com\",\"storageType\":\"rule_account\",\"storageAccount\":null}"},{"propertyKey":"folderStructure","propertyValue":"mail2cloud/Archive/${emailPeer}/${subject}"},{"propertyKey":"storeMail","propertyValue":"false"},{"propertyKey":"storeAttachments","propertyValue":"false"},{"propertyKey":"storePdfMessage","propertyValue":"false"}]},{"id":19861,"domain":"mxhero.com","name":"rule","created":1405541891000,"updated":1405541891000,"enabled":true,"twoWays":true,"adminOrder":null,"component":"com.mxhero.application.mail2cloud.archive","fromDirection":{"id":39721,"directionType":"individual","freeValue":"maxidr@mxhero.com","domain":"mxhero.com","account":"maxidr","group":null},"toDirection":{"id":39722,"directionType":"individual","freeValue":"alex@mxhero.com","domain":"mxhero.com","account":"alex","group":null},"properties":[{"propertyKey":"storageType","propertyValue":"box"},{"propertyKey":"storageData","propertyValue":"{\"adminAccount\":\"maxidr@mxhero.com\",\"storageType\":\"rule_account\",\"storageAccount\":\"maxidr@mxhero.com\"}"},{"propertyKey":"folderStructure","propertyValue":"mail2cloud/Archive/${emailPeer}/${subject}"},{"propertyKey":"storeMail","propertyValue":"false"},{"propertyKey":"storeAttachments","propertyValue":"true"},{"propertyKey":"storePdfMessage","propertyValue":"true"}]},{"id":19862,"domain":"mxhero.com","name":"rule","created":1405544545000,"updated":1405544545000,"enabled":true,"twoWays":true,"adminOrder":null,"component":"com.mxhero.application.mail2cloud.archive","fromDirection":{"id":39723,"directionType":"individual","freeValue":"marcelo@mxhero.com","domain":"mxhero.com","account":"marcelo","group":null},"toDirection":{"id":39724,"directionType":"individual","freeValue":"andy@mxhero.com","domain":"mxhero.com","account":"andy","group":null},"properties":[{"propertyKey":"storageType","propertyValue":"box"},{"propertyKey":"storageData","propertyValue":"{\"adminAccount\":\"admin.mxhero@mxhero.com\",\"storageType\":\"box_account\",\"storageAccount\":\"admin.mxhero@mxhero.com\"}"},{"propertyKey":"folderStructure","propertyValue":"mail2cloud/Archive/${emailPeer}/${subject}"},{"propertyKey":"storeMail","propertyValue":"false"},{"propertyKey":"storeAttachments","propertyValue":"true"},{"propertyKey":"storePdfMessage","propertyValue":"true"}]},{"id":19863,"domain":"mxhero.com","name":"rule","created":1405544867000,"updated":1405544867000,"enabled":true,"twoWays":true,"adminOrder":null,"component":"com.mxhero.application.mail2cloud.archive","fromDirection":{"id":39725,"directionType":"individual","freeValue":"mxhero@mxhero.com","domain":"mxhero.com","account":"mxhero","group":null},"toDirection":{"id":39726,"directionType":"individual","freeValue":"maxidr@mxhero.com","domain":"mxhero.com","account":"maxidr","group":null},"properties":[{"propertyKey":"storageType","propertyValue":"box"},{"propertyKey":"storageData","propertyValue":"{\"adminAccount\":\"admin.mxhero@mxhero.com\",\"storageType\":\"box_account\",\"storageAccount\":\"other.mxhero@mxhero.com\"}"},{"propertyKey":"folderStructure","propertyValue":"mail2cloud/Archive/${emailPeer}/${subject}"},{"propertyKey":"storeMail","propertyValue":"false"},{"propertyKey":"storeAttachments","propertyValue":"true"},{"propertyKey":"storePdfMessage","propertyValue":"true"}]},{"id":19864,"domain":"mxhero.com","name":"rule","created":1405545936000,"updated":1405545936000,"enabled":true,"twoWays":true,"adminOrder":null,"component":"com.mxhero.application.mail2cloud.archive","fromDirection":{"id":39727,"directionType":"individual","freeValue":"contact@mxhero.com","domain":"mxhero.com","account":"contact","group":null},"toDirection":{"id":39728,"directionType":"individual","freeValue":"maxidr@mxhero.com","domain":"mxhero.com","account":"maxidr","group":null},"properties":[{"propertyKey":"storageType","propertyValue":"box"},{"propertyKey":"storageData","propertyValue":"{\"adminAccount\":\"maxidr@mxhero.com\",\"storageType\":\"rule_account\",\"storageAccount\":\"maxidr@mxhero.com\"}"},{"propertyKey":"folderStructure","propertyValue":"mail2cloud/Archive/${emailPeer}/${subject}"},{"propertyKey":"storeMail","propertyValue":"false"},{"propertyKey":"storeAttachments","propertyValue":"true"},{"propertyKey":"storePdfMessage","propertyValue":"true"}]},{"id":19865,"domain":"mxhero.com","name":"rule","created":1405546255000,"updated":1405546255000,"enabled":true,"twoWays":false,"adminOrder":null,"component":"com.mxhero.application.mail2cloud.audit","fromDirection":{"id":39729,"directionType":"individual","freeValue":"marketing@mxhero.com","domain":"mxhero.com","account":"marketing","group":null},"toDirection":{"id":39730,"directionType":"individual","freeValue":"maxidr@mxhero.com","domain":"mxhero.com","account":"maxidr","group":null},"properties":[{"propertyKey":"storageType","propertyValue":"box"},{"propertyKey":"storageData","propertyValue":"{\"adminAccount\":\"maxidr@mxhero.com\",\"storageType\":\"rule_account\",\"storageAccount\":\"maxidr@mxhero.com\"}"},{"propertyKey":"folderStructure","propertyValue":"mail2Cloud/Audit/${emailPeer}/${subject}"},{"propertyKey":"storeMail","propertyValue":"true"},{"propertyKey":"storeAttachments","propertyValue":"false"},{"propertyKey":"storePdfMessage","propertyValue":"true"},{"propertyKey":"dropAfter","propertyValue":"false"},{"propertyKey":"andor.selection","propertyValue":"or"}]},{"id":19869,"domain":"mxhero.com","name":"rule","created":1406250210000,"updated":1406250457000,"enabled":false,"twoWays":false,"adminOrder":null,"component":"com.mxhero.application.mail2cloud.archive","fromDirection":{"id":39737,"directionType":"individual","freeValue":"maxidr@gmail.com","domain":"gmail.com","account":"maxidr","group":null},"toDirection":{"id":39738,"directionType":"individual","freeValue":"maxidr@mxhero.com","domain":"mxhero.com","account":"maxidr","group":null},"properties":[{"propertyKey":"storageType","propertyValue":"drive"},{"propertyKey":"storageData","propertyValue":"{\"storageAccount\":\"maxidr@mxhero.com\"}"},{"propertyKey":"folderStructure","propertyValue":"mail2cloud/Archive/${emailPeer}/${subject}"},{"propertyKey":"storeMail","propertyValue":"false"},{"propertyKey":"storeAttachments","propertyValue":"false"},{"propertyKey":"storePdfMessage","propertyValue":"false"}]},{"id":19873,"domain":"mxhero.com","name":"rule","created":1406313350000,"updated":1406313350000,"enabled":true,"twoWays":true,"adminOrder":null,"component":"com.mxhero.application.mail2cloud.archive","fromDirection":{"id":39745,"directionType":"individual","freeValue":"maxidr@mxhero.com","domain":"mxhero.com","account":"maxidr","group":null},"toDirection":{"id":39746,"directionType":"individual","freeValue":"maxidr@mxhero.com","domain":"mxhero.com","account":"maxidr","group":null},"properties":[{"propertyKey":"storageType","propertyValue":"drive"},{"propertyKey":"storageData","propertyValue":"{\"storageAccount\":\"maxidr@mxhero.com\",\"is_gmail\":true,\"app_id\":\"95e4cb03f6f75d7941813fa355ddb669\"}"},{"propertyKey":"folderStructure","propertyValue":"mail2cloud/Archive/${emailPeer}/${subject}"},{"propertyKey":"storeMail","propertyValue":"false"},{"propertyKey":"storeAttachments","propertyValue":"true"},{"propertyKey":"storePdfMessage","propertyValue":"true"}]},{"id":19875,"domain":"mxhero.com","name":"rule","created":1406318786000,"updated":1406322239000,"enabled":true,"twoWays":true,"adminOrder":null,"component":"com.mxhero.application.mail2cloud.archive","fromDirection":{"id":39749,"directionType":"individual","freeValue":"maxidr@gmail.com.ar","domain":"gmail.com.ar","account":"maxidr","group":null},"toDirection":{"id":39750,"directionType":"individual","freeValue":"maxidr@mxhero.com","domain":"mxhero.com","account":"maxidr","group":null},"properties":[{"propertyKey":"storageType","propertyValue":"drive"},{"propertyKey":"storageData","propertyValue":"{\"storageAccount\":\"maxidr@mxhero.com\",\"isGmail\":true,\"appAuthId\":\"95e4cb03f6f75d7941813fa355ddb669\"}"},{"propertyKey":"folderStructure","propertyValue":"mail2cloud/Archive/${emailPeer}/${subject}"},{"propertyKey":"storeMail","propertyValue":"false"},{"propertyKey":"storeAttachments","propertyValue":"true"},{"propertyKey":"storePdfMessage","propertyValue":"true"}]},{"id":19876,"domain":"mxhero.com","name":"rule","created":1406556610000,"updated":1406556610000,"enabled":true,"twoWays":true,"adminOrder":null,"component":"com.mxhero.application.mail2cloud.fusion","fromDirection":{"id":39751,"directionType":"individual","freeValue":"maxidr@mxhero.com","domain":"mxhero.com","account":"maxidr","group":null},"toDirection":{"id":39752,"directionType":"individual","freeValue":"maxidr@gmail.com","domain":"gmail.com","account":"maxidr","group":null},"properties":[{"propertyKey":"storageType","propertyValue":"drive"},{"propertyKey":"storageData","propertyValue":""},{"propertyKey":"folderStructure","propertyValue":"mail2cloud/Fusion/${emailPeer}/${subject}"},{"propertyKey":"addLinksInBody","propertyValue":"true"},{"propertyKey":"addLinksInHtmlPart","propertyValue":"true"},{"propertyKey":"removeAttachments","propertyValue":"true"},{"propertyKey":"expireAccessInSeconds","propertyValue":"true"}]},{"id":19878,"domain":"mxhero.com","name":"test","created":1406558827000,"updated":1406561512000,"enabled":false,"twoWays":false,"adminOrder":null,"component":"com.mxhero.application.mail2cloud.totaltrack","fromDirection":{"id":39755,"directionType":"individual","freeValue":"maxidr@mxhero.com","domain":"mxhero.com","account":"maxidr","group":null},"toDirection":{"id":39756,"directionType":"individual","freeValue":"maxidr@gmail.com","domain":"gmail.com","account":"maxidr","group":null},"properties":[{"propertyKey":"storageType","propertyValue":"drive"},{"propertyKey":"storageData","propertyValue":""},{"propertyKey":"folderStructure","propertyValue":"mail2Cloud/Fusion/${emailPeer}/${subject}"},{"propertyKey":"useReadReceipt","propertyValue":"true"},{"propertyKey":"keepUseReceipt","propertyValue":"false"},{"propertyKey":"addLinksInBody","propertyValue":"true"},{"propertyKey":"addLinksInHtmlPart","propertyValue":"true"},{"propertyKey":"removeAttachments","propertyValue":"true"},{"propertyKey":"storeAttachments","propertyValue":"true"},{"propertyKey":"expireAccessInSeconds","propertyValue":"0"}]},{"id":19880,"domain":"mxhero.com","name":"rule","created":1406569109000,"updated":1406569271000,"enabled":true,"twoWays":true,"adminOrder":null,"component":"com.mxhero.application.mail2cloud.archive","fromDirection":{"id":39759,"directionType":"individual","freeValue":"maxidr@mxhero.com","domain":"mxhero.com","account":"maxidr","group":null},"toDirection":{"id":39760,"directionType":"individual","freeValue":"maxidr@gmail.com","domain":"gmail.com","account":"maxidr","group":null},"properties":[{"propertyKey":"storageType","propertyValue":"drive"},{"propertyKey":"storageData","propertyValue":"{\"storageAccount\":\"maxidr@mxhero.com\"}"},{"propertyKey":"folderStructure","propertyValue":"mail2cloud/Archive/${emailPeer}/${subject}"},{"propertyKey":"storeMail","propertyValue":"false"},{"propertyKey":"storeAttachments","propertyValue":"true"},{"propertyKey":"storePdfMessage","propertyValue":"true"}]},{"id":19887,"domain":"mxhero.com","name":"rule","created":1417618652000,"updated":1417621116000,"enabled":true,"twoWays":true,"adminOrder":null,"component":"com.mxhero.application.mail2cloud.fusion","fromDirection":{"id":39773,"directionType":"individual","freeValue":"maxidr@mxhero.com","domain":"mxhero.com","account":"maxidr","group":null},"toDirection":{"id":39774,"directionType":"anyone","freeValue":"anyone","domain":null,"account":null,"group":null},"properties":[{"propertyKey":"storageType","propertyValue":"box"},{"propertyKey":"storageData","propertyValue":"{\"adminAccount\":\"maxidr@mxhero.com\",\"storageType\":\"rule_account\",\"storageAccount\":\"maxidr@mxhero.com\"}"},{"propertyKey":"folderStructure","propertyValue":"mail2cloud/Fusion/${emailPeer}/${subject}"},{"propertyKey":"addLinksInBody","propertyValue":"true"},{"propertyKey":"addLinksInHtmlPart","propertyValue":"true"},{"propertyKey":"removeAttachments","propertyValue":"true"},{"propertyKey":"expireAccessInSeconds","propertyValue":"0"},{"propertyKey":"noTrackAttachments","propertyValue":"true"}]},{"id":19888,"domain":"mxhero.com","name":"rule","created":1419948538000,"updated":1419949290000,"enabled":true,"twoWays":true,"adminOrder":null,"component":"com.mxhero.application.mail2cloud.fusion","fromDirection":{"id":39775,"directionType":"domain","freeValue":"mxhero.com","domain":"mxhero.com","account":null,"group":null},"toDirection":{"id":39776,"directionType":"individual","freeValue":"maxidr@mxhero.com","domain":"mxhero.com","account":"maxidr","group":null},"properties":[{"propertyKey":"storageType","propertyValue":"box"},{"propertyKey":"storageData","propertyValue":"{\"adminAccount\":\"maxidr@mxhero.com\",\"storageType\":\"rule_account\",\"storageAccount\":\"maxidr@mxhero.com\"}"},{"propertyKey":"folderStructure","propertyValue":"mail2cloud/Fusion/${emailPeer}/${subject}"},{"propertyKey":"addLinksInBody","propertyValue":"true"},{"propertyKey":"addLinksInHtmlPart","propertyValue":"true"},{"propertyKey":"removeAttachments","propertyValue":"true"},{"propertyKey":"expireAccessInSeconds","propertyValue":"0"},{"propertyKey":"noTrackAttachments","propertyValue":"false"},{"propertyKey":"storeMail","propertyValue":"true"},{"propertyKey":"storePdfMessage","propertyValue":"true"}]},{"id":19891,"domain":"mxhero.com","name":"jproyorule","created":1423236211000,"updated":1423236211000,"enabled":true,"twoWays":true,"adminOrder":null,"component":"com.mxhero.application.mail2cloud.fusion","fromDirection":{"id":39781,"directionType":"individual","freeValue":"jproyo@mxhero.com","domain":"mxhero.com","account":"jproyo","group":null},"toDirection":{"id":39782,"directionType":"anyone","freeValue":"anyone","domain":null,"account":null,"group":null},"properties":[{"propertyKey":"storageType","propertyValue":"drive"},{"propertyKey":"storageData","propertyValue":""},{"propertyKey":"folderStructure","propertyValue":"mail2cloud/Fusion/${emailPeer}/${subject}"},{"propertyKey":"addLinksInBody","propertyValue":"true"},{"propertyKey":"addLinksInHtmlPart","propertyValue":"true"},{"propertyKey":"removeAttachments","propertyValue":"true"},{"propertyKey":"expireAccessInSeconds","propertyValue":"0"},{"propertyKey":"noTrackAttachments","propertyValue":"false"},{"propertyKey":"storeMail","propertyValue":"true"},{"propertyKey":"storePdfMessage","propertyValue":"true"},{"propertyKey":"sizeInBytes","propertyValue":""}]},{"id":19892,"domain":"mxhero.com","name":"alexrule","created":1423236339000,"updated":1423236339000,"enabled":true,"twoWays":true,"adminOrder":null,"component":"com.mxhero.application.mail2cloud.fusion","fromDirection":{"id":39783,"directionType":"individual","freeValue":"alex@mxhero.com","domain":"mxhero.com","account":"alex","group":null},"toDirection":{"id":39784,"directionType":"anyone","freeValue":"anyone","domain":null,"account":null,"group":null},"properties":[{"propertyKey":"storageType","propertyValue":"drive"},{"propertyKey":"storageData","propertyValue":""},{"propertyKey":"folderStructure","propertyValue":"mail2cloud/Fusion/${emailPeer}/${subject}"},{"propertyKey":"addLinksInBody","propertyValue":"true"},{"propertyKey":"addLinksInHtmlPart","propertyValue":"true"},{"propertyKey":"removeAttachments","propertyValue":"true"},{"propertyKey":"expireAccessInSeconds","propertyValue":"0"},{"propertyKey":"noTrackAttachments","propertyValue":"false"},{"propertyKey":"storeMail","propertyValue":"true"},{"propertyKey":"storePdfMessage","propertyValue":"true"},{"propertyKey":"sizeInBytes","propertyValue":"47185920"}]},{"id":19893,"domain":"mxhero.com","name":"jproyorule","created":1423236476000,"updated":1423236476000,"enabled":true,"twoWays":true,"adminOrder":null,"component":"com.mxhero.application.mail2cloud.archive","fromDirection":{"id":39785,"directionType":"individual","freeValue":"jproyo@mxhero.com","domain":"mxhero.com","account":"jproyo","group":null},"toDirection":{"id":39786,"directionType":"anyone","freeValue":"anyone","domain":null,"account":null,"group":null},"properties":[{"propertyKey":"storageType","propertyValue":"drive"},{"propertyKey":"storageData","propertyValue":"{\"storageAccount\":\"jproyo@mxhero.com\"}"},{"propertyKey":"folderStructure","propertyValue":"mail2cloud/Archive/${emailPeer}/${subject}"},{"propertyKey":"storeMail","propertyValue":"false"},{"propertyKey":"storeAttachments","propertyValue":"true"},{"propertyKey":"storePdfMessage","propertyValue":"true"}]},{"id":19894,"domain":"mxhero.com","name":"fusiondropboxbusinessrule","created":1423753954000,"updated":1423754977000,"enabled":true,"twoWays":true,"adminOrder":null,"component":"com.mxhero.application.mail2cloud.fusion","fromDirection":{"id":39787,"directionType":"domain","freeValue":"mxhero.com","domain":"mxhero.com","account":null,"group":null},"toDirection":{"id":39788,"directionType":"anyone","freeValue":"anyone","domain":null,"account":null,"group":null},"properties":[{"propertyKey":"storageType","propertyValue":"dropbox"},{"propertyKey":"storageData","propertyValue":"{\"adminAccount\":\"dbtid:aacjx0i_yo-3crqlt-uiaoctutm6qbts4zk\"}"},{"propertyKey":"folderStructure","propertyValue":"mail2cloud/Fusion/${emailPeer}/${subject}"},{"propertyKey":"addLinksInBody","propertyValue":"true"},{"propertyKey":"addLinksInHtmlPart","propertyValue":"true"},{"propertyKey":"removeAttachments","propertyValue":"true"},{"propertyKey":"expireAccessInSeconds","propertyValue":"0"},{"propertyKey":"noTrackAttachments","propertyValue":"false"},{"propertyKey":"storeMail","propertyValue":"true"},{"propertyKey":"storePdfMessage","propertyValue":"true"},{"propertyKey":"sizeInBytes","propertyValue":""}]},{"id":19895,"domain":"mxhero.com","name":"dropboxsinglerule","created":1423756036000,"updated":1423756036000,"enabled":true,"twoWays":true,"adminOrder":null,"component":"com.mxhero.application.mail2cloud.fusion","fromDirection":{"id":39789,"directionType":"individual","freeValue":"developers@mxhero.com","domain":"mxhero.com","account":"developers","group":null},"toDirection":{"id":39790,"directionType":"anyone","freeValue":"anyone","domain":null,"account":null,"group":null},"properties":[{"propertyKey":"storageType","propertyValue":"dropbox"},{"propertyKey":"storageData","propertyValue":"{\"storageAccount\":\"juanpablo.royo@gmail.com\"}"},{"propertyKey":"folderStructure","propertyValue":"mail2cloud/Fusion/${emailPeer}/${subject}"},{"propertyKey":"addLinksInBody","propertyValue":"true"},{"propertyKey":"addLinksInHtmlPart","propertyValue":"true"},{"propertyKey":"removeAttachments","propertyValue":"true"},{"propertyKey":"expireAccessInSeconds","propertyValue":"0"},{"propertyKey":"noTrackAttachments","propertyValue":"false"},{"propertyKey":"storeMail","propertyValue":"true"},{"propertyKey":"storePdfMessage","propertyValue":"true"},{"propertyKey":"sizeInBytes","propertyValue":"26214400"}]},{"id":19896,"domain":"mxhero.com","name":"dropboxleorule","created":1423764315000,"updated":1423852115000,"enabled":true,"twoWays":true,"adminOrder":null,"component":"com.mxhero.application.mail2cloud.fusion","fromDirection":{"id":39791,"directionType":"individual","freeValue":"leofabiano@mxhero.com","domain":"mxhero.com","account":"leofabiano","group":null},"toDirection":{"id":39792,"directionType":"anyone","freeValue":"anyone","domain":null,"account":null,"group":null},"properties":[{"propertyKey":"storageType","propertyValue":"dropbox"},{"propertyKey":"storageData","propertyValue":"{\"adminAccount\":\"dbtid:aacjx0i_yo-3crqlt-uiaoctutm6qbts4zk\"}"},{"propertyKey":"folderStructure","propertyValue":"mail2cloud/Fusion/${emailPeer}/${subject}"},{"propertyKey":"addLinksInBody","propertyValue":"true"},{"propertyKey":"addLinksInHtmlPart","propertyValue":"true"},{"propertyKey":"removeAttachments","propertyValue":"true"},{"propertyKey":"expireAccessInSeconds","propertyValue":"0"},{"propertyKey":"noTrackAttachments","propertyValue":"false"},{"propertyKey":"storeMail","propertyValue":"true"},{"propertyKey":"storePdfMessage","propertyValue":"true"},{"propertyKey":"sizeInBytes","propertyValue":""}]},{"id":19897,"domain":"mxhero.com","name":"rule
38
+ test","created":1424703171000,"updated":1424703171000,"enabled":true,"twoWays":true,"adminOrder":null,"component":"com.mxhero.application.mail2cloud.fusion","fromDirection":{"id":39793,"directionType":"domain","freeValue":"mxhero.com","domain":"mxhero.com","account":null,"group":null},"toDirection":{"id":39794,"directionType":"anyoneelse","freeValue":"Anyone
39
+ else","domain":"mxhero.com","account":null,"group":null},"properties":[{"propertyKey":"storageType","propertyValue":"box"},{"propertyKey":"storageData","propertyValue":"{\"adminAccount\":\"mmarmol@mxhero.com\",\"storageType\":\"box_account\",\"storageAccount\":\"mmarmol@mxhero.com\"}"},{"propertyKey":"folderStructure","propertyValue":"mail2cloud/Fusion/${emailPeer}/${subject}"},{"propertyKey":"addLinksInBody","propertyValue":"true"},{"propertyKey":"addLinksInHtmlPart","propertyValue":"true"},{"propertyKey":"removeAttachments","propertyValue":"true"},{"propertyKey":"expireAccessInSeconds","propertyValue":"0"},{"propertyKey":"noTrackAttachments","propertyValue":"false"},{"propertyKey":"storeMail","propertyValue":"false"},{"propertyKey":"storePdfMessage","propertyValue":"false"},{"propertyKey":"sizeInBytes","propertyValue":""}]},{"id":19898,"domain":"mxhero.com","name":"rule","created":1426617507000,"updated":1426617543000,"enabled":true,"twoWays":true,"adminOrder":null,"component":"com.mxhero.application.mail2cloud.fusion","fromDirection":{"id":39795,"directionType":"domain","freeValue":"mxhero.com","domain":"mxhero.com","account":null,"group":null},"toDirection":{"id":39796,"directionType":"individual","freeValue":"maxidr@gmail.com","domain":"gmail.com","account":"maxidr","group":null},"properties":[{"propertyKey":"storageType","propertyValue":"box"},{"propertyKey":"storageData","propertyValue":"{\"adminAccount\":\"maxidr@mxhero.com\",\"storageType\":\"rule_account\",\"storageAccount\":\"maxidr@mxhero.com\"}"},{"propertyKey":"folderStructure","propertyValue":"mail2cloud/Fusion/${emailPeer}/${subject}"},{"propertyKey":"addLinksInBody","propertyValue":"true"},{"propertyKey":"addLinksInHtmlPart","propertyValue":"true"},{"propertyKey":"removeAttachments","propertyValue":"true"},{"propertyKey":"expireAccessInSeconds","propertyValue":"0"},{"propertyKey":"noTrackAttachments","propertyValue":"false"},{"propertyKey":"storeMail","propertyValue":"false"},{"propertyKey":"storePdfMessage","propertyValue":"false"},{"propertyKey":"sizeInBytes","propertyValue":""},{"propertyKey":"doNotOverwriteFiles","propertyValue":"false"}]}]'
40
+ http_version:
41
+ recorded_at: Mon, 04 May 2015 19:39:25 GMT
42
+ - request:
43
+ method: put
44
+ uri: http://admin:password@test.mxhero.com/webapi/api/v1/domains/mxhero.com/rules/19807/status?enabled=false
45
+ body:
46
+ encoding: US-ASCII
47
+ string: ''
48
+ headers:
49
+ Accept:
50
+ - application/json
51
+ Content-Type:
52
+ - application/json
53
+ Authorization:
54
+ - Basic YWRtaW46cGFzc3dvcmQ=
55
+ response:
56
+ status:
57
+ code: 200
58
+ message: !binary |-
59
+ T0s=
60
+ headers:
61
+ !binary "RGF0ZQ==":
62
+ - !binary |-
63
+ TW9uLCAwNCBNYXkgMjAxNSAxOTozOToyNSBHTVQ=
64
+ !binary "U2VydmVy":
65
+ - !binary |-
66
+ QXBhY2hlLzIuMi4xNCAoVWJ1bnR1KQ==
67
+ !binary "Q29udGVudC1MZW5ndGg=":
68
+ - !binary |-
69
+ MA==
70
+ !binary "Q29udGVudC1UeXBl":
71
+ - !binary |-
72
+ dGV4dC9wbGFpbg==
73
+ body:
74
+ encoding: US-ASCII
75
+ string: ''
76
+ http_version:
77
+ recorded_at: Mon, 04 May 2015 19:39:26 GMT
78
+ - request:
79
+ method: get
80
+ uri: http://admin:password@test.mxhero.com/webapi/api/v1/domains/mxhero.com/rules/19807
81
+ body:
82
+ encoding: US-ASCII
83
+ string: ''
84
+ headers:
85
+ Accept:
86
+ - application/json
87
+ Content-Type:
88
+ - application/json
89
+ Authorization:
90
+ - Basic YWRtaW46cGFzc3dvcmQ=
91
+ response:
92
+ status:
93
+ code: 200
94
+ message: !binary |-
95
+ T0s=
96
+ headers:
97
+ !binary "RGF0ZQ==":
98
+ - !binary |-
99
+ TW9uLCAwNCBNYXkgMjAxNSAxOTozOToyNiBHTVQ=
100
+ !binary "U2VydmVy":
101
+ - !binary |-
102
+ QXBhY2hlLzIuMi4xNCAoVWJ1bnR1KQ==
103
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
104
+ - !binary |-
105
+ Y2h1bmtlZA==
106
+ !binary "Q29udGVudC1UeXBl":
107
+ - !binary |-
108
+ YXBwbGljYXRpb24vanNvbg==
109
+ body:
110
+ encoding: US-ASCII
111
+ string: ! '{"id":19807,"domain":"mxhero.com","name":"trackurl-domain-to-any","created":1401375652000,"updated":1430768365000,"enabled":false,"twoWays":false,"adminOrder":"before","component":"com.mxhero.application.trackurl","fromDirection":{"id":39613,"directionType":"domain","freeValue":"mxhero.com","domain":"mxhero.com","account":null,"group":null},"toDirection":{"id":39614,"directionType":"anyone","freeValue":"anyone","domain":null,"account":null,"group":null},"properties":[]}'
112
+ http_version:
113
+ recorded_at: Mon, 04 May 2015 19:39:26 GMT
114
+ - request:
115
+ method: put
116
+ uri: http://admin:password@test.mxhero.com/webapi/api/v1/domains/mxhero.com/rules/19807/status?enabled=true
117
+ body:
118
+ encoding: US-ASCII
119
+ string: ''
120
+ headers:
121
+ Accept:
122
+ - application/json
123
+ Content-Type:
124
+ - application/json
125
+ Authorization:
126
+ - Basic YWRtaW46cGFzc3dvcmQ=
127
+ response:
128
+ status:
129
+ code: 200
130
+ message: !binary |-
131
+ T0s=
132
+ headers:
133
+ !binary "RGF0ZQ==":
134
+ - !binary |-
135
+ TW9uLCAwNCBNYXkgMjAxNSAxOTozOToyNiBHTVQ=
136
+ !binary "U2VydmVy":
137
+ - !binary |-
138
+ QXBhY2hlLzIuMi4xNCAoVWJ1bnR1KQ==
139
+ !binary "Q29udGVudC1MZW5ndGg=":
140
+ - !binary |-
141
+ MA==
142
+ !binary "Q29udGVudC1UeXBl":
143
+ - !binary |-
144
+ dGV4dC9wbGFpbg==
145
+ body:
146
+ encoding: US-ASCII
147
+ string: ''
148
+ http_version:
149
+ recorded_at: Mon, 04 May 2015 19:39:26 GMT
150
+ - request:
151
+ method: get
152
+ uri: http://admin:password@test.mxhero.com/webapi/api/v1/domains/mxhero.com/rules/19807
153
+ body:
154
+ encoding: US-ASCII
155
+ string: ''
156
+ headers:
157
+ Accept:
158
+ - application/json
159
+ Content-Type:
160
+ - application/json
161
+ Authorization:
162
+ - Basic YWRtaW46cGFzc3dvcmQ=
163
+ response:
164
+ status:
165
+ code: 200
166
+ message: !binary |-
167
+ T0s=
168
+ headers:
169
+ !binary "RGF0ZQ==":
170
+ - !binary |-
171
+ TW9uLCAwNCBNYXkgMjAxNSAxOTozOToyNyBHTVQ=
172
+ !binary "U2VydmVy":
173
+ - !binary |-
174
+ QXBhY2hlLzIuMi4xNCAoVWJ1bnR1KQ==
175
+ !binary "VHJhbnNmZXItRW5jb2Rpbmc=":
176
+ - !binary |-
177
+ Y2h1bmtlZA==
178
+ !binary "Q29udGVudC1UeXBl":
179
+ - !binary |-
180
+ YXBwbGljYXRpb24vanNvbg==
181
+ body:
182
+ encoding: US-ASCII
183
+ string: ! '{"id":19807,"domain":"mxhero.com","name":"trackurl-domain-to-any","created":1401375652000,"updated":1430768366000,"enabled":true,"twoWays":false,"adminOrder":"before","component":"com.mxhero.application.trackurl","fromDirection":{"id":39613,"directionType":"domain","freeValue":"mxhero.com","domain":"mxhero.com","account":null,"group":null},"toDirection":{"id":39614,"directionType":"anyone","freeValue":"anyone","domain":null,"account":null,"group":null},"properties":[]}'
184
+ http_version:
185
+ recorded_at: Mon, 04 May 2015 19:39:27 GMT
186
+ recorded_with: VCR 2.5.0
@@ -35,6 +35,25 @@ class MxHeroAPITest < MiniTest::Unit::TestCase
35
35
  end
36
36
  end
37
37
 
38
+ def test_rule_status
39
+ VCR.use_cassette('rule_status') do
40
+ mx_domain = 'mxhero.com'
41
+ rules = obtain_rules(mx_domain)
42
+ existing_rule = rules.find { |r| r[:enabled] }
43
+ updated_rule = existing_rule.clone
44
+
45
+ assert_equal @api.rule_status(mx_domain, updated_rule[:id], false).code, 200
46
+
47
+ rule = @api.domain_rule(updated_rule[:domain], updated_rule[:id])
48
+ assert !rule[:enabled]
49
+
50
+ assert @api.rule_status(mx_domain,updated_rule[:id], true).code, 200
51
+
52
+ rule = @api.domain_rule(updated_rule[:domain], updated_rule[:id])
53
+ assert rule[:enabled]
54
+ end
55
+ end
56
+
38
57
  def test_domain_rule
39
58
  VCR.use_cassette('domain_rule') do
40
59
  rules = obtain_rules(domain)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mxhero-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.38
4
+ version: 0.1.39
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maximiliano Dello Russo
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-04-15 00:00:00.000000000 Z
13
+ date: 2015-05-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: vcr
@@ -112,6 +112,7 @@ files:
112
112
  - test/fixtures/api/refresh_directory.yml
113
113
  - test/fixtures/api/remove_account_from_group_twice.yml
114
114
  - test/fixtures/api/remove_inexistente_account_from_group.yml
115
+ - test/fixtures/api/rule_status.yml
115
116
  - test/fixtures/api/rules_for_domain.yml
116
117
  - test/fixtures/api/rules_for_domain_by_component.yml
117
118
  - test/fixtures/api/save_group.yml
@@ -158,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
159
  version: '0'
159
160
  requirements: []
160
161
  rubyforge_project:
161
- rubygems_version: 2.1.2
162
+ rubygems_version: 2.1.9
162
163
  signing_key:
163
164
  specification_version: 4
164
165
  summary: A MxHero API client for ruby
@@ -193,6 +194,7 @@ test_files:
193
194
  - test/fixtures/api/refresh_directory.yml
194
195
  - test/fixtures/api/remove_account_from_group_twice.yml
195
196
  - test/fixtures/api/remove_inexistente_account_from_group.yml
197
+ - test/fixtures/api/rule_status.yml
196
198
  - test/fixtures/api/rules_for_domain.yml
197
199
  - test/fixtures/api/rules_for_domain_by_component.yml
198
200
  - test/fixtures/api/save_group.yml