gmail 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +27 -27
  4. data/.rspec +1 -1
  5. data/.rubocop.yml +53 -13
  6. data/.rubocop_todo.yml +299 -239
  7. data/.travis.yml +19 -19
  8. data/CHANGELOG.md +152 -145
  9. data/Gemfile +5 -3
  10. data/LICENSE +21 -21
  11. data/README.md +380 -355
  12. data/Rakefile +44 -46
  13. data/gmail.gemspec +32 -34
  14. data/lib/gmail.rb +72 -78
  15. data/lib/gmail/client.rb +35 -34
  16. data/lib/gmail/client/base.rb +244 -229
  17. data/lib/gmail/client/plain.rb +24 -24
  18. data/lib/gmail/client/xoauth.rb +67 -68
  19. data/lib/gmail/client/xoauth2.rb +39 -39
  20. data/lib/gmail/imap_extensions.rb +156 -159
  21. data/lib/gmail/labels.rb +80 -79
  22. data/lib/gmail/mailbox.rb +178 -175
  23. data/lib/gmail/message.rb +212 -207
  24. data/lib/gmail/version.rb +3 -3
  25. data/spec/account.yml.example +1 -1
  26. data/spec/account.yml.obfus +2 -2
  27. data/spec/gmail/client/base_spec.rb +5 -5
  28. data/spec/gmail/client/plain_spec.rb +169 -169
  29. data/spec/gmail/client/xoauth2_spec.rb +186 -186
  30. data/spec/gmail/client/xoauth_spec.rb +5 -5
  31. data/spec/gmail/client_spec.rb +5 -5
  32. data/spec/gmail/imap_extensions_spec.rb +47 -47
  33. data/spec/gmail/labels_spec.rb +27 -27
  34. data/spec/gmail/mailbox_spec.rb +84 -84
  35. data/spec/gmail/message_spec.rb +181 -181
  36. data/spec/gmail_spec.rb +40 -39
  37. data/spec/recordings/gmail/_new_connects_with_client_and_give_it_context_when_block_given.yml +61 -28
  38. data/spec/recordings/gmail/_new_connects_with_gmail_service_and_return_valid_connection_object.yml +43 -28
  39. data/spec/recordings/gmail/_new_does_not_raise_error_when_couldn_t_connect_with_given_account.yml +21 -13
  40. data/spec/recordings/gmail/_new_raises_error_when_couldn_t_connect_with_given_account.yml +21 -13
  41. data/spec/recordings/gmail_client_plain/instance/delivers_inline_composed_email.yml +61 -42
  42. data/spec/recordings/gmail_client_plain/instance/does_not_log_in_when_given_gmail_account_is_invalid.yml +21 -13
  43. data/spec/recordings/gmail_client_plain/instance/does_not_raise_error_even_though_gmail_account_is_invalid.yml +21 -13
  44. data/spec/recordings/gmail_client_plain/instance/labels/checks_if_there_is_given_label_defined.yml +409 -196
  45. data/spec/recordings/gmail_client_plain/instance/labels/creates_given_label.yml +280 -151
  46. data/spec/recordings/gmail_client_plain/instance/labels/removes_existing_label.yml +271 -146
  47. data/spec/recordings/gmail_client_plain/instance/labels/returns_list_of_all_available_labels.yml +227 -113
  48. data/spec/recordings/gmail_client_plain/instance/properly_logs_in_to_valid_gmail_account.yml +61 -42
  49. data/spec/recordings/gmail_client_plain/instance/properly_logs_out_from_gmail.yml +61 -42
  50. data/spec/recordings/gmail_client_plain/instance/properly_switches_to_given_mailbox.yml +164 -109
  51. data/spec/recordings/gmail_client_plain/instance/properly_switches_to_given_mailbox_using_block_style.yml +164 -109
  52. data/spec/recordings/gmail_client_plain/instance/raises_error_when_given_gmail_account_is_invalid_and_errors_enabled.yml +21 -13
  53. data/spec/recordings/gmail_client_xo_auth2/instance/does_not_log_in_when_given_gmail_account_is_invalid.yml +24 -13
  54. data/spec/recordings/gmail_client_xo_auth2/instance/labels/checks_if_there_is_given_label_defined.yml +39 -27
  55. data/spec/recordings/gmail_client_xo_auth2/instance/labels/creates_given_label.yml +52 -39
  56. data/spec/recordings/gmail_client_xo_auth2/instance/labels/removes_existing_label.yml +52 -39
  57. data/spec/recordings/gmail_client_xo_auth2/instance/labels/returns_list_of_all_available_labels.yml +39 -27
  58. data/spec/recordings/gmail_client_xo_auth2/instance/properly_logs_in_to_valid_gmail_account.yml +26 -15
  59. data/spec/recordings/gmail_client_xo_auth2/instance/properly_logs_out_from_gmail.yml +26 -15
  60. data/spec/recordings/gmail_client_xo_auth2/instance/properly_switches_to_given_mailbox.yml +63 -40
  61. data/spec/recordings/gmail_client_xo_auth2/instance/properly_switches_to_given_mailbox_using_block_style.yml +63 -40
  62. data/spec/recordings/gmail_client_xo_auth2/instance/raises_error_when_given_gmail_account_is_invalid_and_errors_enabled.yml +24 -13
  63. data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/all/localizes_into_the_appropriate_label.yml +229 -116
  64. data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/and_the_mailbox_does_not_exist/returns_the_mailbox_name_as_a_string.yml +229 -110
  65. data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/drafts/localizes_into_the_appropriate_label.yml +229 -116
  66. data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/flagged/localizes_into_the_appropriate_label.yml +229 -116
  67. data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/important/localizes_into_the_appropriate_label.yml +229 -116
  68. data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/inbox/localizes_into_the_appropriate_label.yml +61 -42
  69. data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/junk/localizes_into_the_appropriate_label.yml +229 -116
  70. data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/sent/localizes_into_the_appropriate_label.yml +229 -116
  71. data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/trash/localizes_into_the_appropriate_label.yml +229 -116
  72. data/spec/recordings/gmail_mailbox/instance/counts_all_emails.yml +595 -277
  73. data/spec/recordings/gmail_mailbox/instance/finds_messages.yml +1049 -586
  74. data/spec/recordings/gmail_mailbox/instance/waits_once.yml +191 -136
  75. data/spec/recordings/gmail_mailbox/instance/waits_repeatedly.yml +217 -141
  76. data/spec/recordings/gmail_mailbox/instance/waits_with_29-minute_re-issue.yml +188 -136
  77. data/spec/recordings/gmail_mailbox/instance/waits_with_an_unblocked_connection.yml +644 -207
  78. data/spec/recordings/gmail_mailbox/on_initialize/sets_client_and_name.yml +61 -42
  79. data/spec/recordings/gmail_mailbox/on_initialize/works_in_inbox_by_default.yml +61 -42
  80. data/spec/recordings/gmail_message/initialize/sets_prefetch_attrs.yml +1068 -578
  81. data/spec/recordings/gmail_message/initialize/sets_uid_and_mailbox.yml +1068 -580
  82. data/spec/recordings/gmail_message/instance_methods/deletes_itself.yml +1084 -637
  83. data/spec/recordings/gmail_message/instance_methods/marks_itself_read.yml +1137 -682
  84. data/spec/recordings/gmail_message/instance_methods/marks_itself_unread.yml +1153 -686
  85. data/spec/recordings/gmail_message/instance_methods/moves_from_one_tag_to_other.yml +1447 -862
  86. data/spec/recordings/gmail_message/instance_methods/removes_a_given_label.yml +1288 -776
  87. data/spec/recordings/gmail_message/instance_methods/removes_a_given_label_with_old_method.yml +1288 -776
  88. data/spec/recordings/gmail_message/instance_methods/sets_given_label.yml +1165 -690
  89. data/spec/recordings/gmail_message/instance_methods/sets_given_label_with_old_method.yml +1157 -691
  90. data/spec/spec_helper.rb +56 -53
  91. data/spec/support/imap_mock.rb +181 -181
  92. data/spec/support/obfuscation.rb +49 -52
  93. metadata +21 -90
  94. data/spec/recordings/gmail_client_plain/instance/_connection_automatically_logs_in_to_gmail_account_when_it_s_called.yml +0 -42
@@ -1,637 +1,1084 @@
1
- ---
2
- LOGIN-9a890af1c86854f5170d99be6e10b8f1:
3
- - - :return
4
- - !ruby/struct:Net::IMAP::TaggedResponse
5
- tag: RUBY0001
6
- name: OK
7
- data: !ruby/struct:Net::IMAP::ResponseText
8
- code:
9
- text: ki0zvkyi1yzgy7xu4f4dh46nqrcecm@gmail.com authenticated (Success)
10
- raw_data: "RUBY0001 OK ki0zvkyi1yzgy7xu4f4dh46nqrcecm@gmail.com authenticated
11
- (Success)\r\n"
12
- - CAPABILITY: &1
13
- - - IMAP4REV1
14
- - UNSELECT
15
- - IDLE
16
- - NAMESPACE
17
- - QUOTA
18
- - ID
19
- - XLIST
20
- - CHILDREN
21
- - X-GM-EXT-1
22
- - UIDPLUS
23
- - COMPRESS=DEFLATE
24
- - ENABLE
25
- - MOVE
26
- - CONDSTORE
27
- - ESEARCH
28
- - UTF8=ACCEPT
29
- LIST-b30698c3407aff5520448484b159fc07:
30
- - - :return
31
- - !ruby/struct:Net::IMAP::TaggedResponse
32
- tag: RUBY0002
33
- name: OK
34
- data: !ruby/struct:Net::IMAP::ResponseText
35
- code:
36
- text: Success
37
- raw_data: "RUBY0002 OK Success\r\n"
38
- - CAPABILITY: *1
39
- LIST:
40
- - !ruby/struct:Net::IMAP::MailboxList
41
- attr:
42
- - :Hasnochildren
43
- delim: "/"
44
- name: Awesome
45
- - !ruby/struct:Net::IMAP::MailboxList
46
- attr:
47
- - :Hasnochildren
48
- delim: "/"
49
- name: Great
50
- - !ruby/struct:Net::IMAP::MailboxList
51
- attr:
52
- - :Hasnochildren
53
- delim: "/"
54
- name: INBOX
55
- - !ruby/struct:Net::IMAP::MailboxList
56
- attr:
57
- - :Hasnochildren
58
- delim: "/"
59
- name: Ni&APE-os
60
- - !ruby/struct:Net::IMAP::MailboxList
61
- attr:
62
- - :Noselect
63
- - :Haschildren
64
- delim: "/"
65
- name: "[Gmail]"
66
- - !ruby/struct:Net::IMAP::MailboxList
67
- attr:
68
- - :Hasnochildren
69
- - :All
70
- delim: "/"
71
- name: "[Gmail]/All Mail"
72
- - !ruby/struct:Net::IMAP::MailboxList
73
- attr:
74
- - :Hasnochildren
75
- - :Drafts
76
- delim: "/"
77
- name: "[Gmail]/Drafts"
78
- - !ruby/struct:Net::IMAP::MailboxList
79
- attr:
80
- - :Hasnochildren
81
- - :Important
82
- delim: "/"
83
- name: "[Gmail]/Important"
84
- - !ruby/struct:Net::IMAP::MailboxList
85
- attr:
86
- - :Sent
87
- - :Hasnochildren
88
- delim: "/"
89
- name: "[Gmail]/Sent Mail"
90
- - !ruby/struct:Net::IMAP::MailboxList
91
- attr:
92
- - :Hasnochildren
93
- - :Junk
94
- delim: "/"
95
- name: "[Gmail]/Spam"
96
- - !ruby/struct:Net::IMAP::MailboxList
97
- attr:
98
- - :Hasnochildren
99
- - :Flagged
100
- delim: "/"
101
- name: "[Gmail]/Starred"
102
- - !ruby/struct:Net::IMAP::MailboxList
103
- attr:
104
- - :Trash
105
- - :Hasnochildren
106
- delim: "/"
107
- name: "[Gmail]/Trash"
108
- - !ruby/struct:Net::IMAP::MailboxList
109
- attr:
110
- - :Hasnochildren
111
- delim: "/"
112
- name: one's and two's
113
- - !ruby/struct:Net::IMAP::MailboxList
114
- attr:
115
- - :Hasnochildren
116
- delim: "/"
117
- name: some new label
118
- - !ruby/struct:Net::IMAP::MailboxList
119
- attr:
120
- - :Hasnochildren
121
- delim: "/"
122
- name: some other label
123
- SELECT-6e4aa0e4422393e73c74d4645fd3834e:
124
- - - :return
125
- - !ruby/struct:Net::IMAP::TaggedResponse
126
- tag: RUBY0003
127
- name: OK
128
- data: !ruby/struct:Net::IMAP::ResponseText
129
- code: !ruby/struct:Net::IMAP::ResponseCode
130
- name: READ-WRITE
131
- data:
132
- text: " [Gmail]/Trash selected. (Success)"
133
- raw_data: "RUBY0003 OK [READ-WRITE] [Gmail]/Trash selected. (Success)\r\n"
134
- - FLAGS: &4
135
- - - :Answered
136
- - :Flagged
137
- - :Draft
138
- - :Deleted
139
- - :Seen
140
- - "$Phishing"
141
- - "$NotPhishing"
142
- OK: &5
143
- - !ruby/struct:Net::IMAP::ResponseText
144
- code: !ruby/struct:Net::IMAP::ResponseCode
145
- name: PERMANENTFLAGS
146
- data: &2
147
- - :Answered
148
- - :Flagged
149
- - :Draft
150
- - :Deleted
151
- - :Seen
152
- - "$Phishing"
153
- - "$NotPhishing"
154
- - :*
155
- text: " Flags permitted."
156
- - !ruby/struct:Net::IMAP::ResponseText
157
- code: !ruby/struct:Net::IMAP::ResponseCode
158
- name: UIDVALIDITY
159
- data: 2
160
- text: " UIDs valid."
161
- - !ruby/struct:Net::IMAP::ResponseText
162
- code: !ruby/struct:Net::IMAP::ResponseCode
163
- name: UIDNEXT
164
- data: 7
165
- text: " Predicted next UID."
166
- - !ruby/struct:Net::IMAP::ResponseText
167
- code: !ruby/struct:Net::IMAP::ResponseCode
168
- name: HIGHESTMODSEQ
169
- data: '14840'
170
- text: ''
171
- PERMANENTFLAGS: &6
172
- - *2
173
- UIDVALIDITY: &7
174
- - 2
175
- EXISTS: &8
176
- - 4
177
- RECENT: &9
178
- - 0
179
- UIDNEXT: &10
180
- - 7
181
- HIGHESTMODSEQ: &11
182
- - '14840'
183
- - - :return
184
- - !ruby/struct:Net::IMAP::TaggedResponse
185
- tag: RUBY0009
186
- name: OK
187
- data: !ruby/struct:Net::IMAP::ResponseText
188
- code: !ruby/struct:Net::IMAP::ResponseCode
189
- name: READ-WRITE
190
- data:
191
- text: " [Gmail]/Trash selected. (Success)"
192
- raw_data: "RUBY0009 OK [READ-WRITE] [Gmail]/Trash selected. (Success)\r\n"
193
- - FLAGS: &12
194
- - - :Answered
195
- - :Flagged
196
- - :Draft
197
- - :Deleted
198
- - :Seen
199
- - "$Phishing"
200
- - "$NotPhishing"
201
- OK: &13
202
- - !ruby/struct:Net::IMAP::ResponseText
203
- code: !ruby/struct:Net::IMAP::ResponseCode
204
- name: PERMANENTFLAGS
205
- data: &3
206
- - :Answered
207
- - :Flagged
208
- - :Draft
209
- - :Deleted
210
- - :Seen
211
- - "$Phishing"
212
- - "$NotPhishing"
213
- - :*
214
- text: " Flags permitted."
215
- - !ruby/struct:Net::IMAP::ResponseText
216
- code: !ruby/struct:Net::IMAP::ResponseCode
217
- name: UIDVALIDITY
218
- data: 2
219
- text: " UIDs valid."
220
- - !ruby/struct:Net::IMAP::ResponseText
221
- code: !ruby/struct:Net::IMAP::ResponseCode
222
- name: UIDNEXT
223
- data: 8
224
- text: " Predicted next UID."
225
- - !ruby/struct:Net::IMAP::ResponseText
226
- code: !ruby/struct:Net::IMAP::ResponseCode
227
- name: HIGHESTMODSEQ
228
- data: '14878'
229
- text: ''
230
- PERMANENTFLAGS: &14
231
- - *3
232
- UIDVALIDITY: &15
233
- - 2
234
- EXISTS: &16
235
- - 5
236
- RECENT: &17
237
- - 0
238
- UIDNEXT: &18
239
- - 8
240
- HIGHESTMODSEQ: &19
241
- - '14878'
242
- UID SEARCH-b19658413e2b63d2bac9c290a67c2cb3:
243
- - - :return
244
- - !ruby/struct:Net::IMAP::TaggedResponse
245
- tag: RUBY0004
246
- name: OK
247
- data: !ruby/struct:Net::IMAP::ResponseText
248
- code:
249
- text: SEARCH completed (Success)
250
- raw_data: "RUBY0004 OK SEARCH completed (Success)\r\n"
251
- - FLAGS: *4
252
- OK: *5
253
- PERMANENTFLAGS: *6
254
- UIDVALIDITY: *7
255
- EXISTS: *8
256
- RECENT: *9
257
- UIDNEXT: *10
258
- HIGHESTMODSEQ: *11
259
- SEARCH:
260
- - - 3
261
- - 4
262
- - 5
263
- - 6
264
- - - :return
265
- - !ruby/struct:Net::IMAP::TaggedResponse
266
- tag: RUBY0010
267
- name: OK
268
- data: !ruby/struct:Net::IMAP::ResponseText
269
- code:
270
- text: SEARCH completed (Success)
271
- raw_data: "RUBY0010 OK SEARCH completed (Success)\r\n"
272
- - FLAGS: *12
273
- OK: *13
274
- PERMANENTFLAGS: *14
275
- UIDVALIDITY: *15
276
- EXISTS: *16
277
- RECENT: *17
278
- UIDNEXT: *18
279
- HIGHESTMODSEQ: *19
280
- SEARCH:
281
- - - 3
282
- - 4
283
- - 5
284
- - 6
285
- - 7
286
- SELECT-868fce8856c91e50bebd43b4dbd8e071:
287
- - - :return
288
- - !ruby/struct:Net::IMAP::TaggedResponse
289
- tag: RUBY0005
290
- name: OK
291
- data: !ruby/struct:Net::IMAP::ResponseText
292
- code: !ruby/struct:Net::IMAP::ResponseCode
293
- name: READ-WRITE
294
- data:
295
- text: " [Gmail]/All Mail selected. (Success)"
296
- raw_data: "RUBY0005 OK [READ-WRITE] [Gmail]/All Mail selected. (Success)\r\n"
297
- - FLAGS: &22
298
- - - :Answered
299
- - :Flagged
300
- - :Draft
301
- - :Deleted
302
- - :Seen
303
- - "$Phishing"
304
- - "$NotPhishing"
305
- OK: &23
306
- - !ruby/struct:Net::IMAP::ResponseText
307
- code: !ruby/struct:Net::IMAP::ResponseCode
308
- name: PERMANENTFLAGS
309
- data: &20
310
- - :Answered
311
- - :Flagged
312
- - :Draft
313
- - :Deleted
314
- - :Seen
315
- - "$Phishing"
316
- - "$NotPhishing"
317
- - :*
318
- text: " Flags permitted."
319
- - !ruby/struct:Net::IMAP::ResponseText
320
- code: !ruby/struct:Net::IMAP::ResponseCode
321
- name: UIDVALIDITY
322
- data: 11
323
- text: " UIDs valid."
324
- - !ruby/struct:Net::IMAP::ResponseText
325
- code: !ruby/struct:Net::IMAP::ResponseCode
326
- name: UIDNEXT
327
- data: 190
328
- text: " Predicted next UID."
329
- - !ruby/struct:Net::IMAP::ResponseText
330
- code: !ruby/struct:Net::IMAP::ResponseCode
331
- name: HIGHESTMODSEQ
332
- data: '14840'
333
- text: ''
334
- PERMANENTFLAGS: &24
335
- - *20
336
- UIDVALIDITY: &25
337
- - 11
338
- EXISTS: &26
339
- - 181
340
- RECENT: &27
341
- - 0
342
- UIDNEXT: &28
343
- - 190
344
- HIGHESTMODSEQ: &29
345
- - '14840'
346
- - - :return
347
- - !ruby/struct:Net::IMAP::TaggedResponse
348
- tag: RUBY0007
349
- name: OK
350
- data: !ruby/struct:Net::IMAP::ResponseText
351
- code: !ruby/struct:Net::IMAP::ResponseCode
352
- name: READ-WRITE
353
- data:
354
- text: " [Gmail]/All Mail selected. (Success)"
355
- raw_data: "RUBY0007 OK [READ-WRITE] [Gmail]/All Mail selected. (Success)\r\n"
356
- - FLAGS: &30
357
- - - :Answered
358
- - :Flagged
359
- - :Draft
360
- - :Deleted
361
- - :Seen
362
- - "$Phishing"
363
- - "$NotPhishing"
364
- OK: &31
365
- - !ruby/struct:Net::IMAP::ResponseText
366
- code: !ruby/struct:Net::IMAP::ResponseCode
367
- name: PERMANENTFLAGS
368
- data: &21
369
- - :Answered
370
- - :Flagged
371
- - :Draft
372
- - :Deleted
373
- - :Seen
374
- - "$Phishing"
375
- - "$NotPhishing"
376
- - :*
377
- text: " Flags permitted."
378
- - !ruby/struct:Net::IMAP::ResponseText
379
- code: !ruby/struct:Net::IMAP::ResponseCode
380
- name: UIDVALIDITY
381
- data: 11
382
- text: " UIDs valid."
383
- - !ruby/struct:Net::IMAP::ResponseText
384
- code: !ruby/struct:Net::IMAP::ResponseCode
385
- name: UIDNEXT
386
- data: 190
387
- text: " Predicted next UID."
388
- - !ruby/struct:Net::IMAP::ResponseText
389
- code: !ruby/struct:Net::IMAP::ResponseCode
390
- name: HIGHESTMODSEQ
391
- data: '14840'
392
- text: ''
393
- PERMANENTFLAGS: &32
394
- - *21
395
- UIDVALIDITY: &33
396
- - 11
397
- EXISTS: &34
398
- - 181
399
- - 180
400
- RECENT: &35
401
- - 0
402
- UIDNEXT: &36
403
- - 190
404
- HIGHESTMODSEQ: &37
405
- - '14840'
406
- UID SEARCH-0010f3078427015fc193bf14c1871582:
407
- - - :return
408
- - !ruby/struct:Net::IMAP::TaggedResponse
409
- tag: RUBY0006
410
- name: OK
411
- data: !ruby/struct:Net::IMAP::ResponseText
412
- code:
413
- text: SEARCH completed (Success)
414
- raw_data: "RUBY0006 OK SEARCH completed (Success)\r\n"
415
- - FLAGS: *22
416
- OK: *23
417
- PERMANENTFLAGS: *24
418
- UIDVALIDITY: *25
419
- EXISTS: *26
420
- RECENT: *27
421
- UIDNEXT: *28
422
- HIGHESTMODSEQ: *29
423
- SEARCH:
424
- - - 4
425
- - 5
426
- - 11
427
- - 12
428
- - 13
429
- - 14
430
- - 15
431
- - 16
432
- - 17
433
- - 18
434
- - 19
435
- - 20
436
- - 21
437
- - 22
438
- - 23
439
- - 24
440
- - 25
441
- - 26
442
- - 27
443
- - 28
444
- - 29
445
- - 30
446
- - 31
447
- - 32
448
- - 33
449
- - 34
450
- - 35
451
- - 36
452
- - 37
453
- - 38
454
- - 39
455
- - 40
456
- - 41
457
- - 42
458
- - 43
459
- - 44
460
- - 45
461
- - 46
462
- - 47
463
- - 48
464
- - 49
465
- - 50
466
- - 51
467
- - 52
468
- - 53
469
- - 54
470
- - 55
471
- - 56
472
- - 57
473
- - 58
474
- - 59
475
- - 60
476
- - 61
477
- - 62
478
- - 63
479
- - 64
480
- - 65
481
- - 66
482
- - 67
483
- - 68
484
- - 69
485
- - 70
486
- - 71
487
- - 72
488
- - 73
489
- - 74
490
- - 75
491
- - 76
492
- - 77
493
- - 78
494
- - 79
495
- - 80
496
- - 81
497
- - 82
498
- - 83
499
- - 84
500
- - 85
501
- - 86
502
- - 87
503
- - 88
504
- - 89
505
- - 90
506
- - 91
507
- - 92
508
- - 93
509
- - 94
510
- - 95
511
- - 96
512
- - 97
513
- - 98
514
- - 99
515
- - 100
516
- - 101
517
- - 102
518
- - 103
519
- - 104
520
- - 105
521
- - 106
522
- - 107
523
- - 108
524
- - 109
525
- - 110
526
- - 111
527
- - 112
528
- - 113
529
- - 114
530
- - 115
531
- - 116
532
- - 117
533
- - 118
534
- - 119
535
- - 120
536
- - 121
537
- - 122
538
- - 123
539
- - 124
540
- - 125
541
- - 126
542
- - 127
543
- - 128
544
- - 129
545
- - 130
546
- - 131
547
- - 132
548
- - 133
549
- - 134
550
- - 135
551
- - 136
552
- - 137
553
- - 138
554
- - 139
555
- - 140
556
- - 141
557
- - 142
558
- - 143
559
- - 144
560
- - 145
561
- - 157
562
- - 158
563
- - 159
564
- - 160
565
- - 161
566
- - 162
567
- - 166
568
- - 167
569
- - 168
570
- - 169
571
- - 170
572
- - 171
573
- - 172
574
- - 173
575
- - 174
576
- - 175
577
- - 176
578
- - 177
579
- - 178
580
- - 179
581
- - 180
582
- - 181
583
- - 182
584
- - 183
585
- - 184
586
- - 185
587
- - 188
588
- UID STORE-5f00644f03823fab3d1e9602aa792384:
589
- - - :return
590
- - !ruby/struct:Net::IMAP::TaggedResponse
591
- tag: RUBY0008
592
- name: OK
593
- data: !ruby/struct:Net::IMAP::ResponseText
594
- code:
595
- text: Success
596
- raw_data: "RUBY0008 OK Success\r\n"
597
- - FLAGS: *30
598
- OK: *31
599
- PERMANENTFLAGS: *32
600
- UIDVALIDITY: *33
601
- EXISTS: *34
602
- RECENT: *35
603
- UIDNEXT: *36
604
- HIGHESTMODSEQ: *37
605
- FETCH:
606
- - !ruby/struct:Net::IMAP::FetchData
607
- seqno: 180
608
- attr:
609
- X-GM-LABELS:
610
- - "\\Important"
611
- - "\\Inbox"
612
- - "\\Sent"
613
- - "\\Trash"
614
- UID: 188
615
- EXPUNGE:
616
- - 180
617
- LOGOUT-e76a09b7766d60a37ff9e1af527a143e:
618
- - - :return
619
- - !ruby/struct:Net::IMAP::TaggedResponse
620
- tag: RUBY0011
621
- name: OK
622
- data: !ruby/struct:Net::IMAP::ResponseText
623
- code:
624
- text: 73 good day (Success)
625
- raw_data: "RUBY0011 OK 73 good day (Success)\r\n"
626
- - FLAGS: *12
627
- OK: *13
628
- PERMANENTFLAGS: *14
629
- UIDVALIDITY: *15
630
- EXISTS: *16
631
- RECENT: *17
632
- UIDNEXT: *18
633
- HIGHESTMODSEQ: *19
634
- BYE:
635
- - !ruby/struct:Net::IMAP::ResponseText
636
- code:
637
- text: LOGOUT Requested
1
+ ---
2
+ LOGIN-9a890af1c86854f5170d99be6e10b8f1:
3
+ - - :return
4
+ - !ruby/struct:Net::IMAP::TaggedResponse
5
+ tag: RUBY0001
6
+ name: OK
7
+ data: &2 !ruby/struct:Net::IMAP::ResponseText
8
+ code:
9
+ text: ki0zvkyi1yzgy7xu4f4dh46nqrcecm@gmail.com authenticated (Success)
10
+ raw_data: "RUBY0001 OK ki0zvkyi1yzgy7xu4f4dh46nqrcecm@gmail.com authenticated
11
+ (Success)\r\n"
12
+ - CAPABILITY: &3
13
+ - &1
14
+ - IMAP4REV1
15
+ - UNSELECT
16
+ - IDLE
17
+ - NAMESPACE
18
+ - QUOTA
19
+ - ID
20
+ - XLIST
21
+ - CHILDREN
22
+ - X-GM-EXT-1
23
+ - UIDPLUS
24
+ - COMPRESS=DEFLATE
25
+ - ENABLE
26
+ - MOVE
27
+ - CONDSTORE
28
+ - ESEARCH
29
+ - UTF8=ACCEPT
30
+ - LIST-EXTENDED
31
+ - LIST-STATUS
32
+ - - !ruby/struct:Net::IMAP::UntaggedResponse
33
+ name: CAPABILITY
34
+ data: *1
35
+ raw_data: "* CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN
36
+ X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE ENABLE MOVE CONDSTORE ESEARCH UTF8=ACCEPT
37
+ LIST-EXTENDED LIST-STATUS\r\n"
38
+ - !ruby/struct:Net::IMAP::TaggedResponse
39
+ tag: RUBY0001
40
+ name: OK
41
+ data: *2
42
+ raw_data: "RUBY0001 OK ki0zvkyi1yzgy7xu4f4dh46nqrcecm@gmail.com authenticated
43
+ (Success)\r\n"
44
+ LIST-b30698c3407aff5520448484b159fc07:
45
+ - - :return
46
+ - !ruby/struct:Net::IMAP::TaggedResponse
47
+ tag: RUBY0002
48
+ name: OK
49
+ data: &20 !ruby/struct:Net::IMAP::ResponseText
50
+ code:
51
+ text: Success
52
+ raw_data: "RUBY0002 OK Success\r\n"
53
+ - CAPABILITY: *3
54
+ LIST:
55
+ - &4 !ruby/struct:Net::IMAP::MailboxList
56
+ attr:
57
+ - :Hasnochildren
58
+ delim: "/"
59
+ name: Awesome
60
+ - &5 !ruby/struct:Net::IMAP::MailboxList
61
+ attr:
62
+ - :Hasnochildren
63
+ delim: "/"
64
+ name: Great
65
+ - &6 !ruby/struct:Net::IMAP::MailboxList
66
+ attr:
67
+ - :Hasnochildren
68
+ delim: "/"
69
+ name: INBOX
70
+ - &7 !ruby/struct:Net::IMAP::MailboxList
71
+ attr:
72
+ - :Hasnochildren
73
+ delim: "/"
74
+ name: Ni&APE-os
75
+ - &8 !ruby/struct:Net::IMAP::MailboxList
76
+ attr:
77
+ - :Haschildren
78
+ - :Noselect
79
+ delim: "/"
80
+ name: "[Gmail]"
81
+ - &9 !ruby/struct:Net::IMAP::MailboxList
82
+ attr:
83
+ - :All
84
+ - :Hasnochildren
85
+ delim: "/"
86
+ name: "[Gmail]/All Mail"
87
+ - &10 !ruby/struct:Net::IMAP::MailboxList
88
+ attr:
89
+ - :Drafts
90
+ - :Hasnochildren
91
+ delim: "/"
92
+ name: "[Gmail]/Drafts"
93
+ - &11 !ruby/struct:Net::IMAP::MailboxList
94
+ attr:
95
+ - :Hasnochildren
96
+ - :Important
97
+ delim: "/"
98
+ name: "[Gmail]/Important"
99
+ - &12 !ruby/struct:Net::IMAP::MailboxList
100
+ attr:
101
+ - :Hasnochildren
102
+ - :Sent
103
+ delim: "/"
104
+ name: "[Gmail]/Sent Mail"
105
+ - &13 !ruby/struct:Net::IMAP::MailboxList
106
+ attr:
107
+ - :Hasnochildren
108
+ - :Junk
109
+ delim: "/"
110
+ name: "[Gmail]/Spam"
111
+ - &14 !ruby/struct:Net::IMAP::MailboxList
112
+ attr:
113
+ - :Flagged
114
+ - :Hasnochildren
115
+ delim: "/"
116
+ name: "[Gmail]/Starred"
117
+ - &15 !ruby/struct:Net::IMAP::MailboxList
118
+ attr:
119
+ - :Hasnochildren
120
+ - :Trash
121
+ delim: "/"
122
+ name: "[Gmail]/Trash"
123
+ - &16 !ruby/struct:Net::IMAP::MailboxList
124
+ attr:
125
+ - :Hasnochildren
126
+ delim: "/"
127
+ name: "\\Junk"
128
+ - &17 !ruby/struct:Net::IMAP::MailboxList
129
+ attr:
130
+ - :Hasnochildren
131
+ delim: "/"
132
+ name: one's and two's
133
+ - &18 !ruby/struct:Net::IMAP::MailboxList
134
+ attr:
135
+ - :Hasnochildren
136
+ delim: "/"
137
+ name: some new label
138
+ - &19 !ruby/struct:Net::IMAP::MailboxList
139
+ attr:
140
+ - :Hasnochildren
141
+ delim: "/"
142
+ name: some other label
143
+ - - !ruby/struct:Net::IMAP::UntaggedResponse
144
+ name: LIST
145
+ data: *4
146
+ raw_data: "* LIST (\\HasNoChildren) \"/\" \"Awesome\"\r\n"
147
+ - !ruby/struct:Net::IMAP::UntaggedResponse
148
+ name: LIST
149
+ data: *5
150
+ raw_data: "* LIST (\\HasNoChildren) \"/\" \"Great\"\r\n"
151
+ - !ruby/struct:Net::IMAP::UntaggedResponse
152
+ name: LIST
153
+ data: *6
154
+ raw_data: "* LIST (\\HasNoChildren) \"/\" \"INBOX\"\r\n"
155
+ - !ruby/struct:Net::IMAP::UntaggedResponse
156
+ name: LIST
157
+ data: *7
158
+ raw_data: "* LIST (\\HasNoChildren) \"/\" \"Ni&APE-os\"\r\n"
159
+ - !ruby/struct:Net::IMAP::UntaggedResponse
160
+ name: LIST
161
+ data: *8
162
+ raw_data: "* LIST (\\HasChildren \\Noselect) \"/\" \"[Gmail]\"\r\n"
163
+ - !ruby/struct:Net::IMAP::UntaggedResponse
164
+ name: LIST
165
+ data: *9
166
+ raw_data: "* LIST (\\All \\HasNoChildren) \"/\" \"[Gmail]/All Mail\"\r\n"
167
+ - !ruby/struct:Net::IMAP::UntaggedResponse
168
+ name: LIST
169
+ data: *10
170
+ raw_data: "* LIST (\\Drafts \\HasNoChildren) \"/\" \"[Gmail]/Drafts\"\r\n"
171
+ - !ruby/struct:Net::IMAP::UntaggedResponse
172
+ name: LIST
173
+ data: *11
174
+ raw_data: "* LIST (\\HasNoChildren \\Important) \"/\" \"[Gmail]/Important\"\r\n"
175
+ - !ruby/struct:Net::IMAP::UntaggedResponse
176
+ name: LIST
177
+ data: *12
178
+ raw_data: "* LIST (\\HasNoChildren \\Sent) \"/\" \"[Gmail]/Sent Mail\"\r\n"
179
+ - !ruby/struct:Net::IMAP::UntaggedResponse
180
+ name: LIST
181
+ data: *13
182
+ raw_data: "* LIST (\\HasNoChildren \\Junk) \"/\" \"[Gmail]/Spam\"\r\n"
183
+ - !ruby/struct:Net::IMAP::UntaggedResponse
184
+ name: LIST
185
+ data: *14
186
+ raw_data: "* LIST (\\Flagged \\HasNoChildren) \"/\" \"[Gmail]/Starred\"\r\n"
187
+ - !ruby/struct:Net::IMAP::UntaggedResponse
188
+ name: LIST
189
+ data: *15
190
+ raw_data: "* LIST (\\HasNoChildren \\Trash) \"/\" \"[Gmail]/Trash\"\r\n"
191
+ - !ruby/struct:Net::IMAP::UntaggedResponse
192
+ name: LIST
193
+ data: *16
194
+ raw_data: "* LIST (\\HasNoChildren) \"/\" \"\\\\Junk\"\r\n"
195
+ - !ruby/struct:Net::IMAP::UntaggedResponse
196
+ name: LIST
197
+ data: *17
198
+ raw_data: "* LIST (\\HasNoChildren) \"/\" \"one's and two's\"\r\n"
199
+ - !ruby/struct:Net::IMAP::UntaggedResponse
200
+ name: LIST
201
+ data: *18
202
+ raw_data: "* LIST (\\HasNoChildren) \"/\" \"some new label\"\r\n"
203
+ - !ruby/struct:Net::IMAP::UntaggedResponse
204
+ name: LIST
205
+ data: *19
206
+ raw_data: "* LIST (\\HasNoChildren) \"/\" \"some other label\"\r\n"
207
+ - !ruby/struct:Net::IMAP::TaggedResponse
208
+ tag: RUBY0002
209
+ name: OK
210
+ data: *20
211
+ raw_data: "RUBY0002 OK Success\r\n"
212
+ SELECT-6e4aa0e4422393e73c74d4645fd3834e:
213
+ - - :return
214
+ - !ruby/struct:Net::IMAP::TaggedResponse
215
+ tag: RUBY0003
216
+ name: OK
217
+ data: &27 !ruby/struct:Net::IMAP::ResponseText
218
+ code: !ruby/struct:Net::IMAP::ResponseCode
219
+ name: READ-WRITE
220
+ data:
221
+ text: " [Gmail]/Trash selected. (Success)"
222
+ raw_data: "RUBY0003 OK [READ-WRITE] [Gmail]/Trash selected. (Success)\r\n"
223
+ - FLAGS: &35
224
+ - &22
225
+ - :Answered
226
+ - :Flagged
227
+ - :Draft
228
+ - :Deleted
229
+ - :Seen
230
+ - "$NotPhishing"
231
+ - "$Phishing"
232
+ OK: &36
233
+ - &23 !ruby/struct:Net::IMAP::ResponseText
234
+ code: !ruby/struct:Net::IMAP::ResponseCode
235
+ name: PERMANENTFLAGS
236
+ data: &21
237
+ - :Answered
238
+ - :Flagged
239
+ - :Draft
240
+ - :Deleted
241
+ - :Seen
242
+ - "$NotPhishing"
243
+ - "$Phishing"
244
+ - :*
245
+ text: " Flags permitted."
246
+ - &24 !ruby/struct:Net::IMAP::ResponseText
247
+ code: !ruby/struct:Net::IMAP::ResponseCode
248
+ name: UIDVALIDITY
249
+ data: 2
250
+ text: " UIDs valid."
251
+ - &25 !ruby/struct:Net::IMAP::ResponseText
252
+ code: !ruby/struct:Net::IMAP::ResponseCode
253
+ name: UIDNEXT
254
+ data: 9
255
+ text: " Predicted next UID."
256
+ - &26 !ruby/struct:Net::IMAP::ResponseText
257
+ code: !ruby/struct:Net::IMAP::ResponseCode
258
+ name: HIGHESTMODSEQ
259
+ data: '24193'
260
+ text: ''
261
+ PERMANENTFLAGS: &37
262
+ - *21
263
+ UIDVALIDITY: &38
264
+ - 2
265
+ EXISTS: &39
266
+ - 1
267
+ RECENT: &40
268
+ - 0
269
+ UIDNEXT: &41
270
+ - 9
271
+ HIGHESTMODSEQ: &42
272
+ - '24193'
273
+ - - !ruby/struct:Net::IMAP::UntaggedResponse
274
+ name: FLAGS
275
+ data: *22
276
+ raw_data: "* FLAGS (\\Answered \\Flagged \\Draft \\Deleted \\Seen $NotPhishing
277
+ $Phishing)\r\n"
278
+ - !ruby/struct:Net::IMAP::UntaggedResponse
279
+ name: OK
280
+ data: *23
281
+ raw_data: "* OK [PERMANENTFLAGS (\\Answered \\Flagged \\Draft \\Deleted \\Seen
282
+ $NotPhishing $Phishing \\*)] Flags permitted.\r\n"
283
+ - !ruby/struct:Net::IMAP::UntaggedResponse
284
+ name: OK
285
+ data: *24
286
+ raw_data: "* OK [UIDVALIDITY 2] UIDs valid.\r\n"
287
+ - !ruby/struct:Net::IMAP::UntaggedResponse
288
+ name: EXISTS
289
+ data: 1
290
+ raw_data: "* 1 EXISTS\r\n"
291
+ - !ruby/struct:Net::IMAP::UntaggedResponse
292
+ name: RECENT
293
+ data: 0
294
+ raw_data: "* 0 RECENT\r\n"
295
+ - !ruby/struct:Net::IMAP::UntaggedResponse
296
+ name: OK
297
+ data: *25
298
+ raw_data: "* OK [UIDNEXT 9] Predicted next UID.\r\n"
299
+ - !ruby/struct:Net::IMAP::UntaggedResponse
300
+ name: OK
301
+ data: *26
302
+ raw_data: "* OK [HIGHESTMODSEQ 24193]\r\n"
303
+ - !ruby/struct:Net::IMAP::TaggedResponse
304
+ tag: RUBY0003
305
+ name: OK
306
+ data: *27
307
+ raw_data: "RUBY0003 OK [READ-WRITE] [Gmail]/Trash selected. (Success)\r\n"
308
+ - - :return
309
+ - !ruby/struct:Net::IMAP::TaggedResponse
310
+ tag: RUBY0009
311
+ name: OK
312
+ data: &34 !ruby/struct:Net::IMAP::ResponseText
313
+ code: !ruby/struct:Net::IMAP::ResponseCode
314
+ name: READ-WRITE
315
+ data:
316
+ text: " [Gmail]/Trash selected. (Success)"
317
+ raw_data: "RUBY0009 OK [READ-WRITE] [Gmail]/Trash selected. (Success)\r\n"
318
+ - FLAGS: &45
319
+ - &29
320
+ - :Answered
321
+ - :Flagged
322
+ - :Draft
323
+ - :Deleted
324
+ - :Seen
325
+ - "$NotPhishing"
326
+ - "$Phishing"
327
+ OK: &46
328
+ - &30 !ruby/struct:Net::IMAP::ResponseText
329
+ code: !ruby/struct:Net::IMAP::ResponseCode
330
+ name: PERMANENTFLAGS
331
+ data: &28
332
+ - :Answered
333
+ - :Flagged
334
+ - :Draft
335
+ - :Deleted
336
+ - :Seen
337
+ - "$NotPhishing"
338
+ - "$Phishing"
339
+ - :*
340
+ text: " Flags permitted."
341
+ - &31 !ruby/struct:Net::IMAP::ResponseText
342
+ code: !ruby/struct:Net::IMAP::ResponseCode
343
+ name: UIDVALIDITY
344
+ data: 2
345
+ text: " UIDs valid."
346
+ - &32 !ruby/struct:Net::IMAP::ResponseText
347
+ code: !ruby/struct:Net::IMAP::ResponseCode
348
+ name: UIDNEXT
349
+ data: 10
350
+ text: " Predicted next UID."
351
+ - &33 !ruby/struct:Net::IMAP::ResponseText
352
+ code: !ruby/struct:Net::IMAP::ResponseCode
353
+ name: HIGHESTMODSEQ
354
+ data: '24238'
355
+ text: ''
356
+ PERMANENTFLAGS: &47
357
+ - *28
358
+ UIDVALIDITY: &48
359
+ - 2
360
+ EXISTS: &49
361
+ - 2
362
+ RECENT: &50
363
+ - 0
364
+ UIDNEXT: &51
365
+ - 10
366
+ HIGHESTMODSEQ: &52
367
+ - '24238'
368
+ - - !ruby/struct:Net::IMAP::UntaggedResponse
369
+ name: FLAGS
370
+ data: *29
371
+ raw_data: "* FLAGS (\\Answered \\Flagged \\Draft \\Deleted \\Seen $NotPhishing
372
+ $Phishing)\r\n"
373
+ - !ruby/struct:Net::IMAP::UntaggedResponse
374
+ name: OK
375
+ data: *30
376
+ raw_data: "* OK [PERMANENTFLAGS (\\Answered \\Flagged \\Draft \\Deleted \\Seen
377
+ $NotPhishing $Phishing \\*)] Flags permitted.\r\n"
378
+ - !ruby/struct:Net::IMAP::UntaggedResponse
379
+ name: OK
380
+ data: *31
381
+ raw_data: "* OK [UIDVALIDITY 2] UIDs valid.\r\n"
382
+ - !ruby/struct:Net::IMAP::UntaggedResponse
383
+ name: EXISTS
384
+ data: 2
385
+ raw_data: "* 2 EXISTS\r\n"
386
+ - !ruby/struct:Net::IMAP::UntaggedResponse
387
+ name: RECENT
388
+ data: 0
389
+ raw_data: "* 0 RECENT\r\n"
390
+ - !ruby/struct:Net::IMAP::UntaggedResponse
391
+ name: OK
392
+ data: *32
393
+ raw_data: "* OK [UIDNEXT 10] Predicted next UID.\r\n"
394
+ - !ruby/struct:Net::IMAP::UntaggedResponse
395
+ name: OK
396
+ data: *33
397
+ raw_data: "* OK [HIGHESTMODSEQ 24238]\r\n"
398
+ - !ruby/struct:Net::IMAP::TaggedResponse
399
+ tag: RUBY0009
400
+ name: OK
401
+ data: *34
402
+ raw_data: "RUBY0009 OK [READ-WRITE] [Gmail]/Trash selected. (Success)\r\n"
403
+ UID SEARCH-b19658413e2b63d2bac9c290a67c2cb3:
404
+ - - :return
405
+ - !ruby/struct:Net::IMAP::TaggedResponse
406
+ tag: RUBY0004
407
+ name: OK
408
+ data: &44 !ruby/struct:Net::IMAP::ResponseText
409
+ code:
410
+ text: SEARCH completed (Success)
411
+ raw_data: "RUBY0004 OK SEARCH completed (Success)\r\n"
412
+ - FLAGS: *35
413
+ OK: *36
414
+ PERMANENTFLAGS: *37
415
+ UIDVALIDITY: *38
416
+ EXISTS: *39
417
+ RECENT: *40
418
+ UIDNEXT: *41
419
+ HIGHESTMODSEQ: *42
420
+ SEARCH:
421
+ - &43
422
+ - 8
423
+ - - !ruby/struct:Net::IMAP::UntaggedResponse
424
+ name: SEARCH
425
+ data: *43
426
+ raw_data: "* SEARCH 8\r\n"
427
+ - !ruby/struct:Net::IMAP::TaggedResponse
428
+ tag: RUBY0004
429
+ name: OK
430
+ data: *44
431
+ raw_data: "RUBY0004 OK SEARCH completed (Success)\r\n"
432
+ - - :return
433
+ - !ruby/struct:Net::IMAP::TaggedResponse
434
+ tag: RUBY0010
435
+ name: OK
436
+ data: &54 !ruby/struct:Net::IMAP::ResponseText
437
+ code:
438
+ text: SEARCH completed (Success)
439
+ raw_data: "RUBY0010 OK SEARCH completed (Success)\r\n"
440
+ - FLAGS: *45
441
+ OK: *46
442
+ PERMANENTFLAGS: *47
443
+ UIDVALIDITY: *48
444
+ EXISTS: *49
445
+ RECENT: *50
446
+ UIDNEXT: *51
447
+ HIGHESTMODSEQ: *52
448
+ SEARCH:
449
+ - &53
450
+ - 8
451
+ - 9
452
+ - - !ruby/struct:Net::IMAP::UntaggedResponse
453
+ name: SEARCH
454
+ data: *53
455
+ raw_data: "* SEARCH 8 9\r\n"
456
+ - !ruby/struct:Net::IMAP::TaggedResponse
457
+ tag: RUBY0010
458
+ name: OK
459
+ data: *54
460
+ raw_data: "RUBY0010 OK SEARCH completed (Success)\r\n"
461
+ SELECT-868fce8856c91e50bebd43b4dbd8e071:
462
+ - - :return
463
+ - !ruby/struct:Net::IMAP::TaggedResponse
464
+ tag: RUBY0005
465
+ name: OK
466
+ data: &61 !ruby/struct:Net::IMAP::ResponseText
467
+ code: !ruby/struct:Net::IMAP::ResponseCode
468
+ name: READ-WRITE
469
+ data:
470
+ text: " [Gmail]/All Mail selected. (Success)"
471
+ raw_data: "RUBY0005 OK [READ-WRITE] [Gmail]/All Mail selected. (Success)\r\n"
472
+ - FLAGS: &69
473
+ - &56
474
+ - :Answered
475
+ - :Flagged
476
+ - :Draft
477
+ - :Deleted
478
+ - :Seen
479
+ - "$NotPhishing"
480
+ - "$Phishing"
481
+ OK: &70
482
+ - &57 !ruby/struct:Net::IMAP::ResponseText
483
+ code: !ruby/struct:Net::IMAP::ResponseCode
484
+ name: PERMANENTFLAGS
485
+ data: &55
486
+ - :Answered
487
+ - :Flagged
488
+ - :Draft
489
+ - :Deleted
490
+ - :Seen
491
+ - "$NotPhishing"
492
+ - "$Phishing"
493
+ - :*
494
+ text: " Flags permitted."
495
+ - &58 !ruby/struct:Net::IMAP::ResponseText
496
+ code: !ruby/struct:Net::IMAP::ResponseCode
497
+ name: UIDVALIDITY
498
+ data: 11
499
+ text: " UIDs valid."
500
+ - &59 !ruby/struct:Net::IMAP::ResponseText
501
+ code: !ruby/struct:Net::IMAP::ResponseCode
502
+ name: UIDNEXT
503
+ data: 398
504
+ text: " Predicted next UID."
505
+ - &60 !ruby/struct:Net::IMAP::ResponseText
506
+ code: !ruby/struct:Net::IMAP::ResponseCode
507
+ name: HIGHESTMODSEQ
508
+ data: '24193'
509
+ text: ''
510
+ PERMANENTFLAGS: &71
511
+ - *55
512
+ UIDVALIDITY: &72
513
+ - 11
514
+ EXISTS: &73
515
+ - 385
516
+ RECENT: &74
517
+ - 0
518
+ UIDNEXT: &75
519
+ - 398
520
+ HIGHESTMODSEQ: &76
521
+ - '24193'
522
+ - - !ruby/struct:Net::IMAP::UntaggedResponse
523
+ name: FLAGS
524
+ data: *56
525
+ raw_data: "* FLAGS (\\Answered \\Flagged \\Draft \\Deleted \\Seen $NotPhishing
526
+ $Phishing)\r\n"
527
+ - !ruby/struct:Net::IMAP::UntaggedResponse
528
+ name: OK
529
+ data: *57
530
+ raw_data: "* OK [PERMANENTFLAGS (\\Answered \\Flagged \\Draft \\Deleted \\Seen
531
+ $NotPhishing $Phishing \\*)] Flags permitted.\r\n"
532
+ - !ruby/struct:Net::IMAP::UntaggedResponse
533
+ name: OK
534
+ data: *58
535
+ raw_data: "* OK [UIDVALIDITY 11] UIDs valid.\r\n"
536
+ - !ruby/struct:Net::IMAP::UntaggedResponse
537
+ name: EXISTS
538
+ data: 385
539
+ raw_data: "* 385 EXISTS\r\n"
540
+ - !ruby/struct:Net::IMAP::UntaggedResponse
541
+ name: RECENT
542
+ data: 0
543
+ raw_data: "* 0 RECENT\r\n"
544
+ - !ruby/struct:Net::IMAP::UntaggedResponse
545
+ name: OK
546
+ data: *59
547
+ raw_data: "* OK [UIDNEXT 398] Predicted next UID.\r\n"
548
+ - !ruby/struct:Net::IMAP::UntaggedResponse
549
+ name: OK
550
+ data: *60
551
+ raw_data: "* OK [HIGHESTMODSEQ 24193]\r\n"
552
+ - !ruby/struct:Net::IMAP::TaggedResponse
553
+ tag: RUBY0005
554
+ name: OK
555
+ data: *61
556
+ raw_data: "RUBY0005 OK [READ-WRITE] [Gmail]/All Mail selected. (Success)\r\n"
557
+ - - :return
558
+ - !ruby/struct:Net::IMAP::TaggedResponse
559
+ tag: RUBY0007
560
+ name: OK
561
+ data: &68 !ruby/struct:Net::IMAP::ResponseText
562
+ code: !ruby/struct:Net::IMAP::ResponseCode
563
+ name: READ-WRITE
564
+ data:
565
+ text: " [Gmail]/All Mail selected. (Success)"
566
+ raw_data: "RUBY0007 OK [READ-WRITE] [Gmail]/All Mail selected. (Success)\r\n"
567
+ - FLAGS: &79
568
+ - &63
569
+ - :Answered
570
+ - :Flagged
571
+ - :Draft
572
+ - :Deleted
573
+ - :Seen
574
+ - "$NotPhishing"
575
+ - "$Phishing"
576
+ OK: &80
577
+ - &64 !ruby/struct:Net::IMAP::ResponseText
578
+ code: !ruby/struct:Net::IMAP::ResponseCode
579
+ name: PERMANENTFLAGS
580
+ data: &62
581
+ - :Answered
582
+ - :Flagged
583
+ - :Draft
584
+ - :Deleted
585
+ - :Seen
586
+ - "$NotPhishing"
587
+ - "$Phishing"
588
+ - :*
589
+ text: " Flags permitted."
590
+ - &65 !ruby/struct:Net::IMAP::ResponseText
591
+ code: !ruby/struct:Net::IMAP::ResponseCode
592
+ name: UIDVALIDITY
593
+ data: 11
594
+ text: " UIDs valid."
595
+ - &66 !ruby/struct:Net::IMAP::ResponseText
596
+ code: !ruby/struct:Net::IMAP::ResponseCode
597
+ name: UIDNEXT
598
+ data: 398
599
+ text: " Predicted next UID."
600
+ - &67 !ruby/struct:Net::IMAP::ResponseText
601
+ code: !ruby/struct:Net::IMAP::ResponseCode
602
+ name: HIGHESTMODSEQ
603
+ data: '24193'
604
+ text: ''
605
+ PERMANENTFLAGS: &81
606
+ - *62
607
+ UIDVALIDITY: &82
608
+ - 11
609
+ EXISTS: &83
610
+ - 385
611
+ - 384
612
+ RECENT: &84
613
+ - 0
614
+ UIDNEXT: &85
615
+ - 398
616
+ HIGHESTMODSEQ: &86
617
+ - '24193'
618
+ - - !ruby/struct:Net::IMAP::UntaggedResponse
619
+ name: FLAGS
620
+ data: *63
621
+ raw_data: "* FLAGS (\\Answered \\Flagged \\Draft \\Deleted \\Seen $NotPhishing
622
+ $Phishing)\r\n"
623
+ - !ruby/struct:Net::IMAP::UntaggedResponse
624
+ name: OK
625
+ data: *64
626
+ raw_data: "* OK [PERMANENTFLAGS (\\Answered \\Flagged \\Draft \\Deleted \\Seen
627
+ $NotPhishing $Phishing \\*)] Flags permitted.\r\n"
628
+ - !ruby/struct:Net::IMAP::UntaggedResponse
629
+ name: OK
630
+ data: *65
631
+ raw_data: "* OK [UIDVALIDITY 11] UIDs valid.\r\n"
632
+ - !ruby/struct:Net::IMAP::UntaggedResponse
633
+ name: EXISTS
634
+ data: 385
635
+ raw_data: "* 385 EXISTS\r\n"
636
+ - !ruby/struct:Net::IMAP::UntaggedResponse
637
+ name: RECENT
638
+ data: 0
639
+ raw_data: "* 0 RECENT\r\n"
640
+ - !ruby/struct:Net::IMAP::UntaggedResponse
641
+ name: OK
642
+ data: *66
643
+ raw_data: "* OK [UIDNEXT 398] Predicted next UID.\r\n"
644
+ - !ruby/struct:Net::IMAP::UntaggedResponse
645
+ name: OK
646
+ data: *67
647
+ raw_data: "* OK [HIGHESTMODSEQ 24193]\r\n"
648
+ - !ruby/struct:Net::IMAP::TaggedResponse
649
+ tag: RUBY0007
650
+ name: OK
651
+ data: *68
652
+ raw_data: "RUBY0007 OK [READ-WRITE] [Gmail]/All Mail selected. (Success)\r\n"
653
+ UID SEARCH-0010f3078427015fc193bf14c1871582:
654
+ - - :return
655
+ - !ruby/struct:Net::IMAP::TaggedResponse
656
+ tag: RUBY0006
657
+ name: OK
658
+ data: &78 !ruby/struct:Net::IMAP::ResponseText
659
+ code:
660
+ text: SEARCH completed (Success)
661
+ raw_data: "RUBY0006 OK SEARCH completed (Success)\r\n"
662
+ - FLAGS: *69
663
+ OK: *70
664
+ PERMANENTFLAGS: *71
665
+ UIDVALIDITY: *72
666
+ EXISTS: *73
667
+ RECENT: *74
668
+ UIDNEXT: *75
669
+ HIGHESTMODSEQ: *76
670
+ SEARCH:
671
+ - &77
672
+ - 4
673
+ - 5
674
+ - 11
675
+ - 12
676
+ - 13
677
+ - 14
678
+ - 15
679
+ - 16
680
+ - 17
681
+ - 18
682
+ - 19
683
+ - 20
684
+ - 21
685
+ - 22
686
+ - 23
687
+ - 24
688
+ - 25
689
+ - 26
690
+ - 27
691
+ - 28
692
+ - 29
693
+ - 30
694
+ - 31
695
+ - 32
696
+ - 33
697
+ - 34
698
+ - 35
699
+ - 36
700
+ - 37
701
+ - 38
702
+ - 39
703
+ - 40
704
+ - 41
705
+ - 42
706
+ - 43
707
+ - 44
708
+ - 45
709
+ - 46
710
+ - 47
711
+ - 48
712
+ - 49
713
+ - 50
714
+ - 51
715
+ - 52
716
+ - 53
717
+ - 54
718
+ - 55
719
+ - 56
720
+ - 57
721
+ - 58
722
+ - 59
723
+ - 60
724
+ - 61
725
+ - 62
726
+ - 63
727
+ - 64
728
+ - 65
729
+ - 66
730
+ - 67
731
+ - 68
732
+ - 69
733
+ - 70
734
+ - 71
735
+ - 72
736
+ - 73
737
+ - 74
738
+ - 75
739
+ - 76
740
+ - 77
741
+ - 78
742
+ - 79
743
+ - 80
744
+ - 81
745
+ - 82
746
+ - 83
747
+ - 84
748
+ - 85
749
+ - 86
750
+ - 87
751
+ - 88
752
+ - 89
753
+ - 90
754
+ - 91
755
+ - 92
756
+ - 93
757
+ - 94
758
+ - 95
759
+ - 96
760
+ - 97
761
+ - 98
762
+ - 99
763
+ - 100
764
+ - 101
765
+ - 102
766
+ - 103
767
+ - 104
768
+ - 105
769
+ - 106
770
+ - 107
771
+ - 108
772
+ - 109
773
+ - 110
774
+ - 111
775
+ - 112
776
+ - 113
777
+ - 114
778
+ - 115
779
+ - 116
780
+ - 117
781
+ - 118
782
+ - 119
783
+ - 120
784
+ - 121
785
+ - 122
786
+ - 123
787
+ - 124
788
+ - 125
789
+ - 126
790
+ - 127
791
+ - 128
792
+ - 129
793
+ - 130
794
+ - 131
795
+ - 132
796
+ - 133
797
+ - 134
798
+ - 135
799
+ - 136
800
+ - 137
801
+ - 138
802
+ - 139
803
+ - 140
804
+ - 141
805
+ - 142
806
+ - 143
807
+ - 144
808
+ - 145
809
+ - 157
810
+ - 158
811
+ - 159
812
+ - 160
813
+ - 161
814
+ - 162
815
+ - 166
816
+ - 167
817
+ - 168
818
+ - 169
819
+ - 170
820
+ - 171
821
+ - 172
822
+ - 173
823
+ - 174
824
+ - 175
825
+ - 176
826
+ - 177
827
+ - 178
828
+ - 179
829
+ - 180
830
+ - 181
831
+ - 182
832
+ - 183
833
+ - 184
834
+ - 185
835
+ - 190
836
+ - 191
837
+ - 192
838
+ - 193
839
+ - 194
840
+ - 195
841
+ - 196
842
+ - 197
843
+ - 198
844
+ - 199
845
+ - 200
846
+ - 201
847
+ - 202
848
+ - 203
849
+ - 204
850
+ - 205
851
+ - 206
852
+ - 207
853
+ - 208
854
+ - 209
855
+ - 210
856
+ - 211
857
+ - 212
858
+ - 213
859
+ - 214
860
+ - 215
861
+ - 216
862
+ - 217
863
+ - 218
864
+ - 219
865
+ - 220
866
+ - 221
867
+ - 222
868
+ - 223
869
+ - 224
870
+ - 225
871
+ - 226
872
+ - 227
873
+ - 228
874
+ - 229
875
+ - 230
876
+ - 231
877
+ - 232
878
+ - 233
879
+ - 234
880
+ - 235
881
+ - 236
882
+ - 237
883
+ - 238
884
+ - 239
885
+ - 240
886
+ - 241
887
+ - 242
888
+ - 243
889
+ - 244
890
+ - 245
891
+ - 247
892
+ - 284
893
+ - 285
894
+ - 286
895
+ - 287
896
+ - 288
897
+ - 289
898
+ - 290
899
+ - 291
900
+ - 292
901
+ - 293
902
+ - 294
903
+ - 295
904
+ - 296
905
+ - 297
906
+ - 298
907
+ - 299
908
+ - 300
909
+ - 301
910
+ - 302
911
+ - 303
912
+ - 304
913
+ - 305
914
+ - 306
915
+ - 307
916
+ - 308
917
+ - 309
918
+ - 310
919
+ - 311
920
+ - 312
921
+ - 313
922
+ - 314
923
+ - 315
924
+ - 316
925
+ - 317
926
+ - 318
927
+ - 319
928
+ - 320
929
+ - 321
930
+ - 322
931
+ - 323
932
+ - 324
933
+ - 325
934
+ - 326
935
+ - 327
936
+ - 328
937
+ - 329
938
+ - 330
939
+ - 331
940
+ - 332
941
+ - 333
942
+ - 334
943
+ - 335
944
+ - 336
945
+ - 337
946
+ - 338
947
+ - 339
948
+ - 340
949
+ - 341
950
+ - 342
951
+ - 343
952
+ - 345
953
+ - 346
954
+ - 347
955
+ - 348
956
+ - 349
957
+ - 351
958
+ - 352
959
+ - 353
960
+ - 354
961
+ - 355
962
+ - 358
963
+ - 359
964
+ - 360
965
+ - 361
966
+ - 362
967
+ - 366
968
+ - 367
969
+ - 368
970
+ - 369
971
+ - 370
972
+ - 372
973
+ - 373
974
+ - 374
975
+ - 375
976
+ - 376
977
+ - 377
978
+ - 378
979
+ - 379
980
+ - 380
981
+ - 381
982
+ - 382
983
+ - 383
984
+ - 384
985
+ - 385
986
+ - 386
987
+ - 387
988
+ - 388
989
+ - - !ruby/struct:Net::IMAP::UntaggedResponse
990
+ name: SEARCH
991
+ data: *77
992
+ raw_data: "* SEARCH 4 5 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
993
+ 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
994
+ 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
995
+ 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
996
+ 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
997
+ 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
998
+ 141 142 143 144 145 157 158 159 160 161 162 166 167 168 169 170 171 172 173
999
+ 174 175 176 177 178 179 180 181 182 183 184 185 190 191 192 193 194 195 196
1000
+ 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215
1001
+ 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234
1002
+ 235 236 237 238 239 240 241 242 243 244 245 247 284 285 286 287 288 289 290
1003
+ 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309
1004
+ 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328
1005
+ 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 345 346 347 348
1006
+ 349 351 352 353 354 355 358 359 360 361 362 366 367 368 369 370 372 373 374
1007
+ 375 376 377 378 379 380 381 382 383 384 385 386 387 388\r\n"
1008
+ - !ruby/struct:Net::IMAP::TaggedResponse
1009
+ tag: RUBY0006
1010
+ name: OK
1011
+ data: *78
1012
+ raw_data: "RUBY0006 OK SEARCH completed (Success)\r\n"
1013
+ UID STORE-4b543c216d48ca44adf0bda4f271defe:
1014
+ - - :return
1015
+ - !ruby/struct:Net::IMAP::TaggedResponse
1016
+ tag: RUBY0008
1017
+ name: OK
1018
+ data: &88 !ruby/struct:Net::IMAP::ResponseText
1019
+ code:
1020
+ text: Success
1021
+ raw_data: "RUBY0008 OK Success\r\n"
1022
+ - FLAGS: *79
1023
+ OK: *80
1024
+ PERMANENTFLAGS: *81
1025
+ UIDVALIDITY: *82
1026
+ EXISTS: *83
1027
+ RECENT: *84
1028
+ UIDNEXT: *85
1029
+ HIGHESTMODSEQ: *86
1030
+ FETCH:
1031
+ - &87 !ruby/struct:Net::IMAP::FetchData
1032
+ seqno: 377
1033
+ attr:
1034
+ X-GM-LABELS:
1035
+ - :Important
1036
+ - :Inbox
1037
+ - :Sent
1038
+ - :Trash
1039
+ UID: 388
1040
+ EXPUNGE:
1041
+ - 377
1042
+ - - !ruby/struct:Net::IMAP::UntaggedResponse
1043
+ name: FETCH
1044
+ data: *87
1045
+ raw_data: "* 377 FETCH (X-GM-LABELS (\"\\\\Important\" \"\\\\Inbox\" \"\\\\Sent\"
1046
+ \"\\\\Trash\") UID 388)\r\n"
1047
+ - !ruby/struct:Net::IMAP::UntaggedResponse
1048
+ name: EXPUNGE
1049
+ data: 377
1050
+ raw_data: "* 377 EXPUNGE\r\n"
1051
+ - !ruby/struct:Net::IMAP::UntaggedResponse
1052
+ name: EXISTS
1053
+ data: 384
1054
+ raw_data: "* 384 EXISTS\r\n"
1055
+ - !ruby/struct:Net::IMAP::TaggedResponse
1056
+ tag: RUBY0008
1057
+ name: OK
1058
+ data: *88
1059
+ raw_data: "RUBY0008 OK Success\r\n"
1060
+ LOGOUT-e76a09b7766d60a37ff9e1af527a143e:
1061
+ - - :return
1062
+ - !ruby/struct:Net::IMAP::TaggedResponse
1063
+ tag: RUBY0011
1064
+ name: OK
1065
+ data: !ruby/struct:Net::IMAP::ResponseText
1066
+ code:
1067
+ text: 73 good day (Success)
1068
+ raw_data: "RUBY0011 OK 73 good day (Success)\r\n"
1069
+ - FLAGS: *45
1070
+ OK: *46
1071
+ PERMANENTFLAGS: *47
1072
+ UIDVALIDITY: *48
1073
+ EXISTS: *49
1074
+ RECENT: *50
1075
+ UIDNEXT: *51
1076
+ HIGHESTMODSEQ: *52
1077
+ BYE:
1078
+ - &89 !ruby/struct:Net::IMAP::ResponseText
1079
+ code:
1080
+ text: LOGOUT Requested
1081
+ - - !ruby/struct:Net::IMAP::UntaggedResponse
1082
+ name: BYE
1083
+ data: *89
1084
+ raw_data: "* BYE LOGOUT Requested\r\n"