mailroute 0.0.5 → 0.0.6

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.
Files changed (22) hide show
  1. data/.gitignore +1 -0
  2. data/lib/mailroute.rb +1 -0
  3. data/lib/mailroute/models/domain.rb +1 -1
  4. data/lib/mailroute/models/email_account.rb +18 -3
  5. data/lib/mailroute/models/timezone.rb +54 -0
  6. data/lib/mailroute/version.rb +1 -1
  7. data/spec/lib/mailroute/models/domain_spec.rb +15 -9
  8. data/spec/lib/mailroute/models/email_account_spec.rb +50 -6
  9. data/spec/lib/mailroute/models/policy_filter_spec.rb +1 -4
  10. data/spec/lib/mailroute/models/timezone_spec.rb +15 -0
  11. data/spec/vcr_cassettes/Mailroute_Domain/has_many_notification_tasks/should_be_able_to_create_a_new_task.yml +174 -0
  12. data/spec/vcr_cassettes/Mailroute_Domain/has_many_notification_tasks/should_have_many_notification_task.yml +172 -0
  13. data/spec/vcr_cassettes/Mailroute_EmailAccount/_set_password/should_set_the_password.yml +55 -63
  14. data/spec/vcr_cassettes/Mailroute_EmailAccount/has_many_notification_tasks/changing_active_notification_tasks/should_use_tasks_either_from_domain_or_from_the_email_account_itself.yml +341 -0
  15. data/spec/vcr_cassettes/Mailroute_EmailAccount/has_many_notification_tasks/should_be_able_to_create_a_new_task.yml +174 -0
  16. data/spec/vcr_cassettes/Mailroute_EmailAccount/has_many_notification_tasks/should_have_many_notification_task.yml +172 -0
  17. data/spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyDomain/standard_mode/anti_spam_preset/.yml +104 -0
  18. data/spec/vcr_cassettes/Mailroute_PolicyFilter/Mailroute_PolicyUser/standard_mode/anti_spam_preset/.yml +104 -0
  19. metadata +21 -9
  20. data/Gemfile.lock +0 -87
  21. data/spec/vcr_cassettes/Mailroute_Domain/has_a_notification_task/should_have_notification_task.yml +0 -249
  22. data/spec/vcr_cassettes/Mailroute_EmailAccount/has_notification_task/should_have_notification_task.yml +0 -79
@@ -0,0 +1,174 @@
1
+ ---
2
+ recorded_with: VCR 2.5.0
3
+ http_interactions:
4
+ - request:
5
+ method: get
6
+ uri: https://admin-dev.mailroute.net/api/v1/email_account/7721/
7
+ body:
8
+ string: ""
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Authorization:
13
+ - ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ Server:
20
+ - nginx/1.2.6
21
+ Content-Type:
22
+ - application/json; charset=utf-8
23
+ Vary:
24
+ - Accept, Cookie
25
+ - Accept-Encoding
26
+ Connection:
27
+ - keep-alive
28
+ Cache-Control:
29
+ - no-cache
30
+ Transfer-Encoding:
31
+ - chunked
32
+ Date:
33
+ - Tue, 28 May 2013 17:54:50 GMT
34
+ body:
35
+ string: "{\"absolute_url\": \"/user/admin@example.com/\", \"aliases\": \"\", \"change_pwd\": null, \"contact\": null, \"create_opt\": null, \"created_at\": \"Tue, 28 May 2013 10:51:18 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"domain_name\": \"example.com\", \"id\": 7721, \"localpart\": \"admin\", \"notification_tasks\": [\"/api/v1/notification_account_task/16931/\"], \"policy\": \"/api/v1/policy_user/16398/\", \"priority\": 8, \"resource_uri\": \"/api/v1/email_account/7721/\", \"updated_at\": \"Tue, 28 May 2013 10:51:18 -0700\", \"use_domain_notifications\": true}"
36
+ http_version:
37
+ recorded_at: Tue, 28 May 2013 17:54:50 GMT
38
+ - request:
39
+ method: get
40
+ uri: https://admin-dev.mailroute.net/api/v1/notification_account_task/?email_account=7721
41
+ body:
42
+ string: ""
43
+ headers:
44
+ Accept:
45
+ - application/json
46
+ Authorization:
47
+ - ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
48
+ response:
49
+ status:
50
+ code: 200
51
+ message: OK
52
+ headers:
53
+ Server:
54
+ - nginx/1.2.6
55
+ Content-Type:
56
+ - application/json; charset=utf-8
57
+ Vary:
58
+ - Accept, Cookie
59
+ - Accept-Encoding
60
+ Connection:
61
+ - keep-alive
62
+ Cache-Control:
63
+ - no-cache
64
+ Transfer-Encoding:
65
+ - chunked
66
+ Date:
67
+ - Tue, 28 May 2013 17:54:51 GMT
68
+ body:
69
+ string: "{\"meta\": {\"limit\": 20, \"next\": null, \"offset\": 0, \"previous\": null, \"total_count\": 1}, \"objects\": [{\"email_account\": \"/api/v1/email_account/7721/\", \"enabled\": false, \"fri\": true, \"hour\": 7, \"id\": 16931, \"minute\": 0, \"mon\": false, \"resource_uri\": \"/api/v1/notification_account_task/16931/\", \"sat\": false, \"sun\": false, \"thu\": true, \"timezone\": null, \"tue\": true, \"wed\": true}]}"
70
+ http_version:
71
+ recorded_at: Tue, 28 May 2013 17:54:51 GMT
72
+ - request:
73
+ method: post
74
+ uri: https://admin-dev.mailroute.net/api/v1/notification_account_task/
75
+ body:
76
+ string: "{\"minute\":15,\"email_account\":\"/api/v1/email_account/7721/\",\"hour\":10}"
77
+ headers:
78
+ Accept:
79
+ - "*/*"
80
+ Content-Type:
81
+ - application/json
82
+ Authorization:
83
+ - ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
84
+ response:
85
+ status:
86
+ code: 201
87
+ message: CREATED
88
+ headers:
89
+ Server:
90
+ - nginx/1.2.6
91
+ Content-Type:
92
+ - application/json; charset=utf-8
93
+ Vary:
94
+ - Accept, Cookie
95
+ Connection:
96
+ - keep-alive
97
+ Transfer-Encoding:
98
+ - chunked
99
+ Date:
100
+ - Tue, 28 May 2013 17:54:52 GMT
101
+ Location:
102
+ - https://admin-dev.mailroute.net/api/v1/notification_account_task/16932/
103
+ body:
104
+ string: "{\"email_account\": \"/api/v1/email_account/7721/\", \"enabled\": false, \"fri\": false, \"hour\": 10, \"id\": 16932, \"minute\": 15, \"mon\": false, \"resource_uri\": \"/api/v1/notification_account_task/16932/\", \"sat\": false, \"sun\": false, \"thu\": false, \"timezone\": null, \"tue\": false, \"wed\": false}"
105
+ http_version:
106
+ recorded_at: Tue, 28 May 2013 17:54:52 GMT
107
+ - request:
108
+ method: get
109
+ uri: https://admin-dev.mailroute.net/api/v1/email_account/7721/
110
+ body:
111
+ string: ""
112
+ headers:
113
+ Accept:
114
+ - application/json
115
+ Authorization:
116
+ - ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
117
+ response:
118
+ status:
119
+ code: 200
120
+ message: OK
121
+ headers:
122
+ Server:
123
+ - nginx/1.2.6
124
+ Content-Type:
125
+ - application/json; charset=utf-8
126
+ Vary:
127
+ - Accept, Cookie
128
+ - Accept-Encoding
129
+ Connection:
130
+ - keep-alive
131
+ Cache-Control:
132
+ - no-cache
133
+ Transfer-Encoding:
134
+ - chunked
135
+ Date:
136
+ - Tue, 28 May 2013 17:54:53 GMT
137
+ body:
138
+ string: "{\"absolute_url\": \"/user/admin@example.com/\", \"aliases\": \"\", \"change_pwd\": null, \"contact\": null, \"create_opt\": null, \"created_at\": \"Tue, 28 May 2013 10:51:18 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"domain_name\": \"example.com\", \"id\": 7721, \"localpart\": \"admin\", \"notification_tasks\": [\"/api/v1/notification_account_task/16931/\", \"/api/v1/notification_account_task/16932/\"], \"policy\": \"/api/v1/policy_user/16398/\", \"priority\": 8, \"resource_uri\": \"/api/v1/email_account/7721/\", \"updated_at\": \"Tue, 28 May 2013 10:51:18 -0700\", \"use_domain_notifications\": true}"
139
+ http_version:
140
+ recorded_at: Tue, 28 May 2013 17:54:53 GMT
141
+ - request:
142
+ method: get
143
+ uri: https://admin-dev.mailroute.net/api/v1/notification_account_task/?email_account=7721
144
+ body:
145
+ string: ""
146
+ headers:
147
+ Accept:
148
+ - application/json
149
+ Authorization:
150
+ - ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
151
+ response:
152
+ status:
153
+ code: 200
154
+ message: OK
155
+ headers:
156
+ Server:
157
+ - nginx/1.2.6
158
+ Content-Type:
159
+ - application/json; charset=utf-8
160
+ Vary:
161
+ - Accept, Cookie
162
+ - Accept-Encoding
163
+ Connection:
164
+ - keep-alive
165
+ Cache-Control:
166
+ - no-cache
167
+ Transfer-Encoding:
168
+ - chunked
169
+ Date:
170
+ - Tue, 28 May 2013 17:54:54 GMT
171
+ body:
172
+ string: "{\"meta\": {\"limit\": 20, \"next\": null, \"offset\": 0, \"previous\": null, \"total_count\": 2}, \"objects\": [{\"email_account\": \"/api/v1/email_account/7721/\", \"enabled\": false, \"fri\": true, \"hour\": 7, \"id\": 16931, \"minute\": 0, \"mon\": false, \"resource_uri\": \"/api/v1/notification_account_task/16931/\", \"sat\": false, \"sun\": false, \"thu\": true, \"timezone\": null, \"tue\": true, \"wed\": true}, {\"email_account\": \"/api/v1/email_account/7721/\", \"enabled\": false, \"fri\": false, \"hour\": 10, \"id\": 16932, \"minute\": 15, \"mon\": false, \"resource_uri\": \"/api/v1/notification_account_task/16932/\", \"sat\": false, \"sun\": false, \"thu\": false, \"timezone\": null, \"tue\": false, \"wed\": false}]}"
173
+ http_version:
174
+ recorded_at: Tue, 28 May 2013 17:54:54 GMT
@@ -0,0 +1,172 @@
1
+ ---
2
+ recorded_with: VCR 2.5.0
3
+ http_interactions:
4
+ - request:
5
+ method: get
6
+ uri: https://admin-dev.mailroute.net/api/v1/email_account/7721/
7
+ body:
8
+ string: ""
9
+ headers:
10
+ Authorization:
11
+ - ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
12
+ Accept:
13
+ - application/json
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ Connection:
20
+ - keep-alive
21
+ Content-Type:
22
+ - application/json; charset=utf-8
23
+ Server:
24
+ - nginx/1.2.6
25
+ Vary:
26
+ - Accept, Cookie
27
+ - Accept-Encoding
28
+ Transfer-Encoding:
29
+ - chunked
30
+ Date:
31
+ - Tue, 28 May 2013 17:54:32 GMT
32
+ Cache-Control:
33
+ - no-cache
34
+ body:
35
+ string: "{\"absolute_url\": \"/user/admin@example.com/\", \"aliases\": \"\", \"change_pwd\": null, \"contact\": null, \"create_opt\": null, \"created_at\": \"Tue, 28 May 2013 10:51:18 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"domain_name\": \"example.com\", \"id\": 7721, \"localpart\": \"admin\", \"notification_tasks\": [\"/api/v1/notification_account_task/16931/\"], \"policy\": \"/api/v1/policy_user/16398/\", \"priority\": 8, \"resource_uri\": \"/api/v1/email_account/7721/\", \"updated_at\": \"Tue, 28 May 2013 10:51:18 -0700\", \"use_domain_notifications\": true}"
36
+ http_version:
37
+ recorded_at: Tue, 28 May 2013 17:54:32 GMT
38
+ - request:
39
+ method: get
40
+ uri: https://admin-dev.mailroute.net/api/v1/notification_account_task/?email_account=7721
41
+ body:
42
+ string: ""
43
+ headers:
44
+ Authorization:
45
+ - ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
46
+ Accept:
47
+ - application/json
48
+ response:
49
+ status:
50
+ code: 200
51
+ message: OK
52
+ headers:
53
+ Connection:
54
+ - keep-alive
55
+ Content-Type:
56
+ - application/json; charset=utf-8
57
+ Server:
58
+ - nginx/1.2.6
59
+ Vary:
60
+ - Accept, Cookie
61
+ - Accept-Encoding
62
+ Transfer-Encoding:
63
+ - chunked
64
+ Date:
65
+ - Tue, 28 May 2013 17:54:33 GMT
66
+ Cache-Control:
67
+ - no-cache
68
+ body:
69
+ string: "{\"meta\": {\"limit\": 20, \"next\": null, \"offset\": 0, \"previous\": null, \"total_count\": 1}, \"objects\": [{\"email_account\": \"/api/v1/email_account/7721/\", \"enabled\": false, \"fri\": true, \"hour\": 7, \"id\": 16931, \"minute\": 0, \"mon\": true, \"resource_uri\": \"/api/v1/notification_account_task/16931/\", \"sat\": false, \"sun\": false, \"thu\": true, \"timezone\": null, \"tue\": true, \"wed\": true}]}"
70
+ http_version:
71
+ recorded_at: Tue, 28 May 2013 17:54:34 GMT
72
+ - request:
73
+ method: put
74
+ uri: https://admin-dev.mailroute.net/api/v1/notification_account_task/16931/
75
+ body:
76
+ string: "{\"sat\":false,\"sun\":false,\"minute\":0,\"resource_uri\":\"/api/v1/notification_account_task/16931/\",\"tue\":true,\"id\":16931,\"enabled\":false,\"wed\":true,\"mon\":false,\"hour\":7,\"timezone\":null,\"thu\":true,\"fri\":true,\"email_account\":\"/api/v1/email_account/7721/\"}"
77
+ headers:
78
+ Content-Type:
79
+ - application/json
80
+ Authorization:
81
+ - ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
82
+ Accept:
83
+ - "*/*"
84
+ response:
85
+ status:
86
+ code: 202
87
+ message: ACCEPTED
88
+ headers:
89
+ Connection:
90
+ - keep-alive
91
+ Content-Type:
92
+ - application/json; charset=utf-8
93
+ Server:
94
+ - nginx/1.2.6
95
+ Vary:
96
+ - Accept, Cookie
97
+ Transfer-Encoding:
98
+ - chunked
99
+ Date:
100
+ - Tue, 28 May 2013 17:54:36 GMT
101
+ body:
102
+ string: "{\"email_account\": \"/api/v1/email_account/7721/\", \"enabled\": false, \"fri\": true, \"hour\": 7, \"id\": 16931, \"minute\": 0, \"mon\": false, \"resource_uri\": \"/api/v1/notification_account_task/16931/\", \"sat\": false, \"sun\": false, \"thu\": true, \"timezone\": null, \"tue\": true, \"wed\": true}"
103
+ http_version:
104
+ recorded_at: Tue, 28 May 2013 17:54:36 GMT
105
+ - request:
106
+ method: get
107
+ uri: https://admin-dev.mailroute.net/api/v1/email_account/7721/
108
+ body:
109
+ string: ""
110
+ headers:
111
+ Authorization:
112
+ - ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
113
+ Accept:
114
+ - application/json
115
+ response:
116
+ status:
117
+ code: 200
118
+ message: OK
119
+ headers:
120
+ Connection:
121
+ - keep-alive
122
+ Content-Type:
123
+ - application/json; charset=utf-8
124
+ Server:
125
+ - nginx/1.2.6
126
+ Vary:
127
+ - Accept, Cookie
128
+ - Accept-Encoding
129
+ Transfer-Encoding:
130
+ - chunked
131
+ Date:
132
+ - Tue, 28 May 2013 17:54:37 GMT
133
+ Cache-Control:
134
+ - no-cache
135
+ body:
136
+ string: "{\"absolute_url\": \"/user/admin@example.com/\", \"aliases\": \"\", \"change_pwd\": null, \"contact\": null, \"create_opt\": null, \"created_at\": \"Tue, 28 May 2013 10:51:18 -0700\", \"domain\": \"/api/v1/domain/8372/\", \"domain_name\": \"example.com\", \"id\": 7721, \"localpart\": \"admin\", \"notification_tasks\": [\"/api/v1/notification_account_task/16931/\"], \"policy\": \"/api/v1/policy_user/16398/\", \"priority\": 8, \"resource_uri\": \"/api/v1/email_account/7721/\", \"updated_at\": \"Tue, 28 May 2013 10:51:18 -0700\", \"use_domain_notifications\": true}"
137
+ http_version:
138
+ recorded_at: Tue, 28 May 2013 17:54:37 GMT
139
+ - request:
140
+ method: get
141
+ uri: https://admin-dev.mailroute.net/api/v1/notification_account_task/?email_account=7721
142
+ body:
143
+ string: ""
144
+ headers:
145
+ Authorization:
146
+ - ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
147
+ Accept:
148
+ - application/json
149
+ response:
150
+ status:
151
+ code: 200
152
+ message: OK
153
+ headers:
154
+ Connection:
155
+ - keep-alive
156
+ Content-Type:
157
+ - application/json; charset=utf-8
158
+ Server:
159
+ - nginx/1.2.6
160
+ Vary:
161
+ - Accept, Cookie
162
+ - Accept-Encoding
163
+ Transfer-Encoding:
164
+ - chunked
165
+ Date:
166
+ - Tue, 28 May 2013 17:54:38 GMT
167
+ Cache-Control:
168
+ - no-cache
169
+ body:
170
+ string: "{\"meta\": {\"limit\": 20, \"next\": null, \"offset\": 0, \"previous\": null, \"total_count\": 1}, \"objects\": [{\"email_account\": \"/api/v1/email_account/7721/\", \"enabled\": false, \"fri\": true, \"hour\": 7, \"id\": 16931, \"minute\": 0, \"mon\": false, \"resource_uri\": \"/api/v1/notification_account_task/16931/\", \"sat\": false, \"sun\": false, \"thu\": true, \"timezone\": null, \"tue\": true, \"wed\": true}]}"
171
+ http_version:
172
+ recorded_at: Tue, 28 May 2013 17:54:38 GMT
@@ -0,0 +1,104 @@
1
+ ---
2
+ recorded_with: VCR 2.5.0
3
+ http_interactions:
4
+ - request:
5
+ method: get
6
+ uri: https://admin-dev.mailroute.net/api/v1/policy_domain/16379/
7
+ body:
8
+ string: ""
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Authorization:
13
+ - ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ Cache-Control:
20
+ - no-cache
21
+ Transfer-Encoding:
22
+ - chunked
23
+ Connection:
24
+ - keep-alive
25
+ Server:
26
+ - nginx/1.2.6
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Date:
30
+ - Mon, 20 May 2013 17:50:21 GMT
31
+ Vary:
32
+ - Accept, Cookie
33
+ - Accept-Encoding
34
+ body:
35
+ string: "{\"addr_extension_bad_header\": null, \"addr_extension_banned\": null, \"addr_extension_spam\": null, \"addr_extension_virus\": null, \"archive_quarantine_to\": null, \"bad_header_lover\": \"N\", \"bad_header_quarantine_to\": \"sql:\", \"banned_files_lover\": \"N\", \"banned_quarantine_to\": \"sql:\", \"bypass_banned_checks\": \"N\", \"bypass_header_checks\": \"N\", \"bypass_spam_checks\": \"N\", \"bypass_virus_checks\": \"N\", \"domain\": \"/api/v1/domain/8367/\", \"id\": 16379, \"is_default\": false, \"message_size_limit\": 0, \"priority\": 5, \"resource_uri\": \"/api/v1/policy_domain/16379/\", \"spam_kill_level\": 7.0, \"spam_lover\": \"N\", \"spam_quarantine_cutoff_level\": null, \"spam_quarantine_to\": \"sql:\", \"spam_subject_tag\": null, \"spam_subject_tag2\": \"Possible Spam (_SCORE_):\", \"spam_subject_tag3\": null, \"spam_tag2_level\": 5.5, \"spam_tag3_level\": null, \"spam_tag_level\": -9999.0, \"unchecked_lover\": \"Y\", \"unchecked_quarantine_to\": null, \"virus_lover\": \"N\", \"virus_quarantine_to\": \"sql:\", \"warnbadhrecip\": \"N\", \"warnbannedrecip\": \"N\", \"warnvirusrecip\": \"N\"}"
36
+ http_version:
37
+ recorded_at: Mon, 20 May 2013 17:50:21 GMT
38
+ - request:
39
+ method: put
40
+ uri: https://admin-dev.mailroute.net/api/v1/policy_domain/16379/
41
+ body:
42
+ string: "{\"unchecked_lover\":\"Y\",\"spam_tag2_level\":5.5,\"resource_uri\":\"/api/v1/policy_domain/16379/\",\"banned_files_lover\":\"N\",\"archive_quarantine_to\":null,\"spam_subject_tag\":null,\"spam_lover\":\"N\",\"message_size_limit\":0,\"is_default\":false,\"bypass_spam_checks\":\"N\",\"addr_extension_spam\":null,\"warnbannedrecip\":\"N\",\"spam_kill_level\":7.0,\"id\":16379,\"domain\":\"/api/v1/domain/8367/\",\"bypass_header_checks\":\"N\",\"virus_quarantine_to\":\"sql:\",\"virus_lover\":\"N\",\"banned_quarantine_to\":\"sql:\",\"warnvirusrecip\":\"N\",\"bypass_virus_checks\":\"N\",\"addr_extension_banned\":null,\"warnbadhrecip\":\"N\",\"spam_tag3_level\":null,\"bypass_banned_checks\":\"N\",\"bad_header_quarantine_to\":\"sql:\",\"addr_extension_virus\":null,\"addr_extension_bad_header\":null,\"unchecked_quarantine_to\":null,\"spam_subject_tag3\":null,\"spam_subject_tag2\":\"Possible Spam (_SCORE_):\",\"spam_quarantine_cutoff_level\":null,\"bad_header_lover\":\"N\",\"anti_spam_preset\":\"standard\",\"spam_tag_level\":-9999.0,\"spam_quarantine_to\":\"sql:\",\"priority\":5}"
43
+ headers:
44
+ Accept:
45
+ - "*/*"
46
+ Authorization:
47
+ - ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
48
+ Content-Type:
49
+ - application/json
50
+ response:
51
+ status:
52
+ code: 202
53
+ message: ACCEPTED
54
+ headers:
55
+ Transfer-Encoding:
56
+ - chunked
57
+ Connection:
58
+ - keep-alive
59
+ Server:
60
+ - nginx/1.2.6
61
+ Content-Type:
62
+ - application/json; charset=utf-8
63
+ Date:
64
+ - Mon, 20 May 2013 17:50:22 GMT
65
+ Vary:
66
+ - Accept, Cookie
67
+ body:
68
+ string: "{\"addr_extension_bad_header\": null, \"addr_extension_banned\": null, \"addr_extension_spam\": null, \"addr_extension_virus\": null, \"anti_spam_preset\": \"standard\", \"archive_quarantine_to\": null, \"bad_header_lover\": \"N\", \"bad_header_quarantine_to\": \"sql:\", \"banned_files_lover\": \"N\", \"banned_quarantine_to\": \"sql:\", \"bypass_banned_checks\": \"N\", \"bypass_header_checks\": \"N\", \"bypass_spam_checks\": \"N\", \"bypass_virus_checks\": \"N\", \"domain\": \"/api/v1/domain/8367/\", \"id\": 16379, \"is_default\": false, \"message_size_limit\": 0, \"pk\": \"16379\", \"priority\": 5, \"resource_uri\": \"/api/v1/policy_domain/16379/\", \"spam_kill_level\": 7.0, \"spam_lover\": \"N\", \"spam_quarantine_cutoff_level\": null, \"spam_quarantine_to\": \"sql:\", \"spam_subject_tag\": null, \"spam_subject_tag2\": \"\", \"spam_subject_tag3\": null, \"spam_tag2_level\": null, \"spam_tag3_level\": null, \"spam_tag_level\": -9999.0, \"unchecked_lover\": \"Y\", \"unchecked_quarantine_to\": null, \"virus_lover\": \"N\", \"virus_quarantine_to\": \"sql:\", \"warnbadhrecip\": \"N\", \"warnbannedrecip\": \"N\", \"warnvirusrecip\": \"N\"}"
69
+ http_version:
70
+ recorded_at: Mon, 20 May 2013 17:50:23 GMT
71
+ - request:
72
+ method: get
73
+ uri: https://admin-dev.mailroute.net/api/v1/policy_domain/16379/
74
+ body:
75
+ string: ""
76
+ headers:
77
+ Accept:
78
+ - application/json
79
+ Authorization:
80
+ - ApiKey blablablablabla@example.com:5f64xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx8262
81
+ response:
82
+ status:
83
+ code: 200
84
+ message: OK
85
+ headers:
86
+ Cache-Control:
87
+ - no-cache
88
+ Transfer-Encoding:
89
+ - chunked
90
+ Connection:
91
+ - keep-alive
92
+ Server:
93
+ - nginx/1.2.6
94
+ Content-Type:
95
+ - application/json; charset=utf-8
96
+ Date:
97
+ - Mon, 20 May 2013 17:50:24 GMT
98
+ Vary:
99
+ - Accept, Cookie
100
+ - Accept-Encoding
101
+ body:
102
+ string: "{\"addr_extension_bad_header\": null, \"addr_extension_banned\": null, \"addr_extension_spam\": null, \"addr_extension_virus\": null, \"archive_quarantine_to\": null, \"bad_header_lover\": \"N\", \"bad_header_quarantine_to\": \"sql:\", \"banned_files_lover\": \"N\", \"banned_quarantine_to\": \"sql:\", \"bypass_banned_checks\": \"N\", \"bypass_header_checks\": \"N\", \"bypass_spam_checks\": \"N\", \"bypass_virus_checks\": \"N\", \"domain\": \"/api/v1/domain/8367/\", \"id\": 16379, \"is_default\": false, \"message_size_limit\": 0, \"priority\": 5, \"resource_uri\": \"/api/v1/policy_domain/16379/\", \"spam_kill_level\": 7.0, \"spam_lover\": \"N\", \"spam_quarantine_cutoff_level\": null, \"spam_quarantine_to\": \"sql:\", \"spam_subject_tag\": null, \"spam_subject_tag2\": \"\", \"spam_subject_tag3\": null, \"spam_tag2_level\": null, \"spam_tag3_level\": null, \"spam_tag_level\": -9999.0, \"unchecked_lover\": \"Y\", \"unchecked_quarantine_to\": null, \"virus_lover\": \"N\", \"virus_quarantine_to\": \"sql:\", \"warnbadhrecip\": \"N\", \"warnbannedrecip\": \"N\", \"warnvirusrecip\": \"N\"}"
103
+ http_version:
104
+ recorded_at: Mon, 20 May 2013 17:50:24 GMT