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,690 +1,1165 @@
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-868fce8856c91e50bebd43b4dbd8e071:
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]/All Mail selected. (Success)"
133
- raw_data: "RUBY0003 OK [READ-WRITE] [Gmail]/All Mail selected. (Success)\r\n"
134
- - FLAGS: &6
135
- - - :Answered
136
- - :Flagged
137
- - :Draft
138
- - :Deleted
139
- - :Seen
140
- - "$Phishing"
141
- - "$NotPhishing"
142
- OK: &7
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: 11
160
- text: " UIDs valid."
161
- - !ruby/struct:Net::IMAP::ResponseText
162
- code: !ruby/struct:Net::IMAP::ResponseCode
163
- name: UIDNEXT
164
- data: 190
165
- text: " Predicted next UID."
166
- - !ruby/struct:Net::IMAP::ResponseText
167
- code: !ruby/struct:Net::IMAP::ResponseCode
168
- name: HIGHESTMODSEQ
169
- data: '14699'
170
- text: ''
171
- PERMANENTFLAGS: &8
172
- - *2
173
- UIDVALIDITY: &9
174
- - 11
175
- EXISTS: &10
176
- - 181
177
- RECENT: &11
178
- - 0
179
- UIDNEXT: &12
180
- - 190
181
- HIGHESTMODSEQ: &13
182
- - '14699'
183
- - - :return
184
- - !ruby/struct:Net::IMAP::TaggedResponse
185
- tag: RUBY0005
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]/All Mail selected. (Success)"
192
- raw_data: "RUBY0005 OK [READ-WRITE] [Gmail]/All Mail selected. (Success)\r\n"
193
- - FLAGS: &14
194
- - - :Answered
195
- - :Flagged
196
- - :Draft
197
- - :Deleted
198
- - :Seen
199
- - "$Phishing"
200
- - "$NotPhishing"
201
- OK: &15
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: 11
219
- text: " UIDs valid."
220
- - !ruby/struct:Net::IMAP::ResponseText
221
- code: !ruby/struct:Net::IMAP::ResponseCode
222
- name: UIDNEXT
223
- data: 190
224
- text: " Predicted next UID."
225
- - !ruby/struct:Net::IMAP::ResponseText
226
- code: !ruby/struct:Net::IMAP::ResponseCode
227
- name: HIGHESTMODSEQ
228
- data: '14699'
229
- text: ''
230
- PERMANENTFLAGS: &16
231
- - *3
232
- UIDVALIDITY: &17
233
- - 11
234
- EXISTS: &18
235
- - 181
236
- RECENT: &19
237
- - 0
238
- UIDNEXT: &20
239
- - 190
240
- HIGHESTMODSEQ: &21
241
- - '14699'
242
- - - :return
243
- - !ruby/struct:Net::IMAP::TaggedResponse
244
- tag: RUBY0007
245
- name: OK
246
- data: !ruby/struct:Net::IMAP::ResponseText
247
- code: !ruby/struct:Net::IMAP::ResponseCode
248
- name: READ-WRITE
249
- data:
250
- text: " [Gmail]/All Mail selected. (Success)"
251
- raw_data: "RUBY0007 OK [READ-WRITE] [Gmail]/All Mail selected. (Success)\r\n"
252
- - FLAGS: &22
253
- - - :Answered
254
- - :Flagged
255
- - :Draft
256
- - :Deleted
257
- - :Seen
258
- - "$Phishing"
259
- - "$NotPhishing"
260
- OK: &23
261
- - !ruby/struct:Net::IMAP::ResponseText
262
- code: !ruby/struct:Net::IMAP::ResponseCode
263
- name: PERMANENTFLAGS
264
- data: &4
265
- - :Answered
266
- - :Flagged
267
- - :Draft
268
- - :Deleted
269
- - :Seen
270
- - "$Phishing"
271
- - "$NotPhishing"
272
- - :*
273
- text: " Flags permitted."
274
- - !ruby/struct:Net::IMAP::ResponseText
275
- code: !ruby/struct:Net::IMAP::ResponseCode
276
- name: UIDVALIDITY
277
- data: 11
278
- text: " UIDs valid."
279
- - !ruby/struct:Net::IMAP::ResponseText
280
- code: !ruby/struct:Net::IMAP::ResponseCode
281
- name: UIDNEXT
282
- data: 190
283
- text: " Predicted next UID."
284
- - !ruby/struct:Net::IMAP::ResponseText
285
- code: !ruby/struct:Net::IMAP::ResponseCode
286
- name: HIGHESTMODSEQ
287
- data: '14706'
288
- text: ''
289
- PERMANENTFLAGS: &24
290
- - *4
291
- UIDVALIDITY: &25
292
- - 11
293
- EXISTS: &26
294
- - 181
295
- RECENT: &27
296
- - 0
297
- UIDNEXT: &28
298
- - 190
299
- HIGHESTMODSEQ: &29
300
- - '14706'
301
- - - :return
302
- - !ruby/struct:Net::IMAP::TaggedResponse
303
- tag: RUBY0009
304
- name: OK
305
- data: !ruby/struct:Net::IMAP::ResponseText
306
- code: !ruby/struct:Net::IMAP::ResponseCode
307
- name: READ-WRITE
308
- data:
309
- text: " [Gmail]/All Mail selected. (Success)"
310
- raw_data: "RUBY0009 OK [READ-WRITE] [Gmail]/All Mail selected. (Success)\r\n"
311
- - FLAGS: &30
312
- - - :Answered
313
- - :Flagged
314
- - :Draft
315
- - :Deleted
316
- - :Seen
317
- - "$Phishing"
318
- - "$NotPhishing"
319
- OK: &31
320
- - !ruby/struct:Net::IMAP::ResponseText
321
- code: !ruby/struct:Net::IMAP::ResponseCode
322
- name: PERMANENTFLAGS
323
- data: &5
324
- - :Answered
325
- - :Flagged
326
- - :Draft
327
- - :Deleted
328
- - :Seen
329
- - "$Phishing"
330
- - "$NotPhishing"
331
- - :*
332
- text: " Flags permitted."
333
- - !ruby/struct:Net::IMAP::ResponseText
334
- code: !ruby/struct:Net::IMAP::ResponseCode
335
- name: UIDVALIDITY
336
- data: 11
337
- text: " UIDs valid."
338
- - !ruby/struct:Net::IMAP::ResponseText
339
- code: !ruby/struct:Net::IMAP::ResponseCode
340
- name: UIDNEXT
341
- data: 190
342
- text: " Predicted next UID."
343
- - !ruby/struct:Net::IMAP::ResponseText
344
- code: !ruby/struct:Net::IMAP::ResponseCode
345
- name: HIGHESTMODSEQ
346
- data: '14713'
347
- text: ''
348
- PERMANENTFLAGS: &32
349
- - *5
350
- UIDVALIDITY: &33
351
- - 11
352
- EXISTS: &34
353
- - 181
354
- RECENT: &35
355
- - 0
356
- UIDNEXT: &36
357
- - 190
358
- HIGHESTMODSEQ: &37
359
- - '14713'
360
- UID SEARCH-0010f3078427015fc193bf14c1871582:
361
- - - :return
362
- - !ruby/struct:Net::IMAP::TaggedResponse
363
- tag: RUBY0004
364
- name: OK
365
- data: !ruby/struct:Net::IMAP::ResponseText
366
- code:
367
- text: SEARCH completed (Success)
368
- raw_data: "RUBY0004 OK SEARCH completed (Success)\r\n"
369
- - FLAGS: *6
370
- OK: *7
371
- PERMANENTFLAGS: *8
372
- UIDVALIDITY: *9
373
- EXISTS: *10
374
- RECENT: *11
375
- UIDNEXT: *12
376
- HIGHESTMODSEQ: *13
377
- SEARCH:
378
- - - 4
379
- - 5
380
- - 11
381
- - 12
382
- - 13
383
- - 14
384
- - 15
385
- - 16
386
- - 17
387
- - 18
388
- - 19
389
- - 20
390
- - 21
391
- - 22
392
- - 23
393
- - 24
394
- - 25
395
- - 26
396
- - 27
397
- - 28
398
- - 29
399
- - 30
400
- - 31
401
- - 32
402
- - 33
403
- - 34
404
- - 35
405
- - 36
406
- - 37
407
- - 38
408
- - 39
409
- - 40
410
- - 41
411
- - 42
412
- - 43
413
- - 44
414
- - 45
415
- - 46
416
- - 47
417
- - 48
418
- - 49
419
- - 50
420
- - 51
421
- - 52
422
- - 53
423
- - 54
424
- - 55
425
- - 56
426
- - 57
427
- - 58
428
- - 59
429
- - 60
430
- - 61
431
- - 62
432
- - 63
433
- - 64
434
- - 65
435
- - 66
436
- - 67
437
- - 68
438
- - 69
439
- - 70
440
- - 71
441
- - 72
442
- - 73
443
- - 74
444
- - 75
445
- - 76
446
- - 77
447
- - 78
448
- - 79
449
- - 80
450
- - 81
451
- - 82
452
- - 83
453
- - 84
454
- - 85
455
- - 86
456
- - 87
457
- - 88
458
- - 89
459
- - 90
460
- - 91
461
- - 92
462
- - 93
463
- - 94
464
- - 95
465
- - 96
466
- - 97
467
- - 98
468
- - 99
469
- - 100
470
- - 101
471
- - 102
472
- - 103
473
- - 104
474
- - 105
475
- - 106
476
- - 107
477
- - 108
478
- - 109
479
- - 110
480
- - 111
481
- - 112
482
- - 113
483
- - 114
484
- - 115
485
- - 116
486
- - 117
487
- - 118
488
- - 119
489
- - 120
490
- - 121
491
- - 122
492
- - 123
493
- - 124
494
- - 125
495
- - 126
496
- - 127
497
- - 128
498
- - 129
499
- - 130
500
- - 131
501
- - 132
502
- - 133
503
- - 134
504
- - 135
505
- - 136
506
- - 137
507
- - 138
508
- - 139
509
- - 140
510
- - 141
511
- - 142
512
- - 143
513
- - 144
514
- - 145
515
- - 157
516
- - 158
517
- - 159
518
- - 160
519
- - 161
520
- - 162
521
- - 166
522
- - 167
523
- - 168
524
- - 169
525
- - 170
526
- - 171
527
- - 172
528
- - 173
529
- - 174
530
- - 175
531
- - 176
532
- - 177
533
- - 178
534
- - 179
535
- - 180
536
- - 181
537
- - 182
538
- - 183
539
- - 184
540
- - 185
541
- - 188
542
- - 189
543
- UID STORE-ac884ffbfb66da354d64b0f2d42a166f:
544
- - - :return
545
- - !ruby/struct:Net::IMAP::TaggedResponse
546
- tag: RUBY0006
547
- name: OK
548
- data: !ruby/struct:Net::IMAP::ResponseText
549
- code:
550
- text: Success
551
- raw_data: "RUBY0006 OK Success\r\n"
552
- - FLAGS: *14
553
- OK: *15
554
- PERMANENTFLAGS: *16
555
- UIDVALIDITY: *17
556
- EXISTS: *18
557
- RECENT: *19
558
- UIDNEXT: *20
559
- HIGHESTMODSEQ: *21
560
- FETCH:
561
- - !ruby/struct:Net::IMAP::FetchData
562
- seqno: 181
563
- attr:
564
- X-GM-LABELS:
565
- - "\\Important"
566
- - "\\Inbox"
567
- - "\\Sent"
568
- - Awesome
569
- UID: 189
570
- UID STORE-c2d6f8de722e6c9f06f0a6a1a4163f69:
571
- - - :return
572
- - !ruby/struct:Net::IMAP::TaggedResponse
573
- tag: RUBY0008
574
- name: OK
575
- data: !ruby/struct:Net::IMAP::ResponseText
576
- code:
577
- text: Success
578
- raw_data: "RUBY0008 OK Success\r\n"
579
- - FLAGS: *22
580
- OK: *23
581
- PERMANENTFLAGS: *24
582
- UIDVALIDITY: *25
583
- EXISTS: *26
584
- RECENT: *27
585
- UIDNEXT: *28
586
- HIGHESTMODSEQ: *29
587
- FETCH:
588
- - !ruby/struct:Net::IMAP::FetchData
589
- seqno: 181
590
- attr:
591
- X-GM-LABELS:
592
- - "\\Important"
593
- - "\\Inbox"
594
- - "\\Sent"
595
- - Awesome
596
- - Great
597
- UID: 189
598
- UID FETCH-c91d19726aebc8362537324efef9b96b:
599
- - - :return
600
- - !ruby/struct:Net::IMAP::TaggedResponse
601
- tag: RUBY0010
602
- name: OK
603
- data: !ruby/struct:Net::IMAP::ResponseText
604
- code:
605
- text: Success
606
- raw_data: "RUBY0010 OK Success\r\n"
607
- - FLAGS: *30
608
- OK: *31
609
- PERMANENTFLAGS: *32
610
- UIDVALIDITY: *33
611
- EXISTS: *34
612
- RECENT: *35
613
- UIDNEXT: *36
614
- HIGHESTMODSEQ: *37
615
- FETCH:
616
- - !ruby/struct:Net::IMAP::FetchData
617
- seqno: 181
618
- attr:
619
- X-GM-THRID: 1490771293684090059
620
- X-GM-MSGID: 1490771293684090059
621
- X-GM-LABELS:
622
- - "\\Important"
623
- - "\\Inbox"
624
- - "\\Sent"
625
- - Awesome
626
- - Great
627
- UID: 189
628
- FLAGS: []
629
- ENVELOPE: !ruby/struct:Net::IMAP::Envelope
630
- date: Mon, 19 Jan 2015 18:31:32 -0500
631
- subject: Hello world!
632
- from:
633
- - !ruby/struct:Net::IMAP::Address
634
- name:
635
- route:
636
- mailbox: ki0zvkyi1yzgy7xu4f4dh46nqrcecm
637
- host: gmail.com
638
- sender:
639
- - !ruby/struct:Net::IMAP::Address
640
- name:
641
- route:
642
- mailbox: ki0zvkyi1yzgy7xu4f4dh46nqrcecm
643
- host: gmail.com
644
- reply_to:
645
- - !ruby/struct:Net::IMAP::Address
646
- name:
647
- route:
648
- mailbox: ki0zvkyi1yzgy7xu4f4dh46nqrcecm
649
- host: gmail.com
650
- to:
651
- - !ruby/struct:Net::IMAP::Address
652
- name:
653
- route:
654
- mailbox: ki0zvkyi1yzgy7xu4f4dh46nqrcecm
655
- host: gmail.com
656
- cc:
657
- bcc:
658
- in_reply_to:
659
- message_id: "<54bd93d452c0f_74e73fc534c63bec5352@Jeffs-MBP.mail>"
660
- BODY[]: "Return-Path: <ki0zvkyi1yzgy7xu4f4dh46nqrcecm@gmail.com>\r\nReceived:
661
- from gmail.com (99-156-120-246.lightspeed.miamfl.sbcglobal.net. [99.156.120.246])\r\n
662
- \ by mx.google.com with ESMTPSA id a15sm890292oic.18.2015.01.19.15.31.33\r\n
663
- \ for <ki0zvkyi1yzgy7xu4f4dh46nqrcecm@gmail.com>\r\n (version=TLSv1.2
664
- cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r\n Mon, 19 Jan
665
- 2015 15:31:34 -0800 (PST)\r\nDate: Mon, 19 Jan 2015 18:31:32 -0500\r\nFrom:
666
- ki0zvkyi1yzgy7xu4f4dh46nqrcecm@gmail.com\r\nTo: ki0zvkyi1yzgy7xu4f4dh46nqrcecm@gmail.com\r\nMessage-ID:
667
- <54bd93d452c0f_74e73fc534c63bec5352@Jeffs-MBP.mail>\r\nSubject: Hello world!\r\nMime-Version:
668
- 1.0\r\nContent-Type: text/plain;\r\n charset=UTF-8\r\nContent-Transfer-Encoding:
669
- 7bit\r\n\r\nYeah, hello there!\r\n"
670
- LOGOUT-e76a09b7766d60a37ff9e1af527a143e:
671
- - - :return
672
- - !ruby/struct:Net::IMAP::TaggedResponse
673
- tag: RUBY0011
674
- name: OK
675
- data: !ruby/struct:Net::IMAP::ResponseText
676
- code:
677
- text: 73 good day (Success)
678
- raw_data: "RUBY0011 OK 73 good day (Success)\r\n"
679
- - FLAGS: *30
680
- OK: *31
681
- PERMANENTFLAGS: *32
682
- UIDVALIDITY: *33
683
- EXISTS: *34
684
- RECENT: *35
685
- UIDNEXT: *36
686
- HIGHESTMODSEQ: *37
687
- BYE:
688
- - !ruby/struct:Net::IMAP::ResponseText
689
- code:
690
- 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-868fce8856c91e50bebd43b4dbd8e071:
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]/All Mail selected. (Success)"
222
+ raw_data: "RUBY0003 OK [READ-WRITE] [Gmail]/All Mail selected. (Success)\r\n"
223
+ - FLAGS: &49
224
+ - &22
225
+ - :Answered
226
+ - :Flagged
227
+ - :Draft
228
+ - :Deleted
229
+ - :Seen
230
+ - "$NotPhishing"
231
+ - "$Phishing"
232
+ OK: &50
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: 11
250
+ text: " UIDs valid."
251
+ - &25 !ruby/struct:Net::IMAP::ResponseText
252
+ code: !ruby/struct:Net::IMAP::ResponseCode
253
+ name: UIDNEXT
254
+ data: 398
255
+ text: " Predicted next UID."
256
+ - &26 !ruby/struct:Net::IMAP::ResponseText
257
+ code: !ruby/struct:Net::IMAP::ResponseCode
258
+ name: HIGHESTMODSEQ
259
+ data: '24049'
260
+ text: ''
261
+ PERMANENTFLAGS: &51
262
+ - *21
263
+ UIDVALIDITY: &52
264
+ - 11
265
+ EXISTS: &53
266
+ - 385
267
+ RECENT: &54
268
+ - 0
269
+ UIDNEXT: &55
270
+ - 398
271
+ HIGHESTMODSEQ: &56
272
+ - '24049'
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 11] UIDs valid.\r\n"
287
+ - !ruby/struct:Net::IMAP::UntaggedResponse
288
+ name: EXISTS
289
+ data: 385
290
+ raw_data: "* 385 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 398] Predicted next UID.\r\n"
299
+ - !ruby/struct:Net::IMAP::UntaggedResponse
300
+ name: OK
301
+ data: *26
302
+ raw_data: "* OK [HIGHESTMODSEQ 24049]\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]/All Mail selected. (Success)\r\n"
308
+ - - :return
309
+ - !ruby/struct:Net::IMAP::TaggedResponse
310
+ tag: RUBY0005
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]/All Mail selected. (Success)"
317
+ raw_data: "RUBY0005 OK [READ-WRITE] [Gmail]/All Mail selected. (Success)\r\n"
318
+ - FLAGS: &59
319
+ - &29
320
+ - :Answered
321
+ - :Flagged
322
+ - :Draft
323
+ - :Deleted
324
+ - :Seen
325
+ - "$NotPhishing"
326
+ - "$Phishing"
327
+ OK: &60
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: 11
345
+ text: " UIDs valid."
346
+ - &32 !ruby/struct:Net::IMAP::ResponseText
347
+ code: !ruby/struct:Net::IMAP::ResponseCode
348
+ name: UIDNEXT
349
+ data: 398
350
+ text: " Predicted next UID."
351
+ - &33 !ruby/struct:Net::IMAP::ResponseText
352
+ code: !ruby/struct:Net::IMAP::ResponseCode
353
+ name: HIGHESTMODSEQ
354
+ data: '24049'
355
+ text: ''
356
+ PERMANENTFLAGS: &61
357
+ - *28
358
+ UIDVALIDITY: &62
359
+ - 11
360
+ EXISTS: &63
361
+ - 385
362
+ RECENT: &64
363
+ - 0
364
+ UIDNEXT: &65
365
+ - 398
366
+ HIGHESTMODSEQ: &66
367
+ - '24049'
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 11] UIDs valid.\r\n"
382
+ - !ruby/struct:Net::IMAP::UntaggedResponse
383
+ name: EXISTS
384
+ data: 385
385
+ raw_data: "* 385 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 398] Predicted next UID.\r\n"
394
+ - !ruby/struct:Net::IMAP::UntaggedResponse
395
+ name: OK
396
+ data: *33
397
+ raw_data: "* OK [HIGHESTMODSEQ 24049]\r\n"
398
+ - !ruby/struct:Net::IMAP::TaggedResponse
399
+ tag: RUBY0005
400
+ name: OK
401
+ data: *34
402
+ raw_data: "RUBY0005 OK [READ-WRITE] [Gmail]/All Mail selected. (Success)\r\n"
403
+ - - :return
404
+ - !ruby/struct:Net::IMAP::TaggedResponse
405
+ tag: RUBY0007
406
+ name: OK
407
+ data: &41 !ruby/struct:Net::IMAP::ResponseText
408
+ code: !ruby/struct:Net::IMAP::ResponseCode
409
+ name: READ-WRITE
410
+ data:
411
+ text: " [Gmail]/All Mail selected. (Success)"
412
+ raw_data: "RUBY0007 OK [READ-WRITE] [Gmail]/All Mail selected. (Success)\r\n"
413
+ - FLAGS: &70
414
+ - &36
415
+ - :Answered
416
+ - :Flagged
417
+ - :Draft
418
+ - :Deleted
419
+ - :Seen
420
+ - "$NotPhishing"
421
+ - "$Phishing"
422
+ OK: &71
423
+ - &37 !ruby/struct:Net::IMAP::ResponseText
424
+ code: !ruby/struct:Net::IMAP::ResponseCode
425
+ name: PERMANENTFLAGS
426
+ data: &35
427
+ - :Answered
428
+ - :Flagged
429
+ - :Draft
430
+ - :Deleted
431
+ - :Seen
432
+ - "$NotPhishing"
433
+ - "$Phishing"
434
+ - :*
435
+ text: " Flags permitted."
436
+ - &38 !ruby/struct:Net::IMAP::ResponseText
437
+ code: !ruby/struct:Net::IMAP::ResponseCode
438
+ name: UIDVALIDITY
439
+ data: 11
440
+ text: " UIDs valid."
441
+ - &39 !ruby/struct:Net::IMAP::ResponseText
442
+ code: !ruby/struct:Net::IMAP::ResponseCode
443
+ name: UIDNEXT
444
+ data: 398
445
+ text: " Predicted next UID."
446
+ - &40 !ruby/struct:Net::IMAP::ResponseText
447
+ code: !ruby/struct:Net::IMAP::ResponseCode
448
+ name: HIGHESTMODSEQ
449
+ data: '24056'
450
+ text: ''
451
+ PERMANENTFLAGS: &72
452
+ - *35
453
+ UIDVALIDITY: &73
454
+ - 11
455
+ EXISTS: &74
456
+ - 385
457
+ RECENT: &75
458
+ - 0
459
+ UIDNEXT: &76
460
+ - 398
461
+ HIGHESTMODSEQ: &77
462
+ - '24056'
463
+ - - !ruby/struct:Net::IMAP::UntaggedResponse
464
+ name: FLAGS
465
+ data: *36
466
+ raw_data: "* FLAGS (\\Answered \\Flagged \\Draft \\Deleted \\Seen $NotPhishing
467
+ $Phishing)\r\n"
468
+ - !ruby/struct:Net::IMAP::UntaggedResponse
469
+ name: OK
470
+ data: *37
471
+ raw_data: "* OK [PERMANENTFLAGS (\\Answered \\Flagged \\Draft \\Deleted \\Seen
472
+ $NotPhishing $Phishing \\*)] Flags permitted.\r\n"
473
+ - !ruby/struct:Net::IMAP::UntaggedResponse
474
+ name: OK
475
+ data: *38
476
+ raw_data: "* OK [UIDVALIDITY 11] UIDs valid.\r\n"
477
+ - !ruby/struct:Net::IMAP::UntaggedResponse
478
+ name: EXISTS
479
+ data: 385
480
+ raw_data: "* 385 EXISTS\r\n"
481
+ - !ruby/struct:Net::IMAP::UntaggedResponse
482
+ name: RECENT
483
+ data: 0
484
+ raw_data: "* 0 RECENT\r\n"
485
+ - !ruby/struct:Net::IMAP::UntaggedResponse
486
+ name: OK
487
+ data: *39
488
+ raw_data: "* OK [UIDNEXT 398] Predicted next UID.\r\n"
489
+ - !ruby/struct:Net::IMAP::UntaggedResponse
490
+ name: OK
491
+ data: *40
492
+ raw_data: "* OK [HIGHESTMODSEQ 24056]\r\n"
493
+ - !ruby/struct:Net::IMAP::TaggedResponse
494
+ tag: RUBY0007
495
+ name: OK
496
+ data: *41
497
+ raw_data: "RUBY0007 OK [READ-WRITE] [Gmail]/All Mail selected. (Success)\r\n"
498
+ - - :return
499
+ - !ruby/struct:Net::IMAP::TaggedResponse
500
+ tag: RUBY0009
501
+ name: OK
502
+ data: &48 !ruby/struct:Net::IMAP::ResponseText
503
+ code: !ruby/struct:Net::IMAP::ResponseCode
504
+ name: READ-WRITE
505
+ data:
506
+ text: " [Gmail]/All Mail selected. (Success)"
507
+ raw_data: "RUBY0009 OK [READ-WRITE] [Gmail]/All Mail selected. (Success)\r\n"
508
+ - FLAGS: &81
509
+ - &43
510
+ - :Answered
511
+ - :Flagged
512
+ - :Draft
513
+ - :Deleted
514
+ - :Seen
515
+ - "$NotPhishing"
516
+ - "$Phishing"
517
+ OK: &82
518
+ - &44 !ruby/struct:Net::IMAP::ResponseText
519
+ code: !ruby/struct:Net::IMAP::ResponseCode
520
+ name: PERMANENTFLAGS
521
+ data: &42
522
+ - :Answered
523
+ - :Flagged
524
+ - :Draft
525
+ - :Deleted
526
+ - :Seen
527
+ - "$NotPhishing"
528
+ - "$Phishing"
529
+ - :*
530
+ text: " Flags permitted."
531
+ - &45 !ruby/struct:Net::IMAP::ResponseText
532
+ code: !ruby/struct:Net::IMAP::ResponseCode
533
+ name: UIDVALIDITY
534
+ data: 11
535
+ text: " UIDs valid."
536
+ - &46 !ruby/struct:Net::IMAP::ResponseText
537
+ code: !ruby/struct:Net::IMAP::ResponseCode
538
+ name: UIDNEXT
539
+ data: 398
540
+ text: " Predicted next UID."
541
+ - &47 !ruby/struct:Net::IMAP::ResponseText
542
+ code: !ruby/struct:Net::IMAP::ResponseCode
543
+ name: HIGHESTMODSEQ
544
+ data: '24063'
545
+ text: ''
546
+ PERMANENTFLAGS: &83
547
+ - *42
548
+ UIDVALIDITY: &84
549
+ - 11
550
+ EXISTS: &85
551
+ - 385
552
+ RECENT: &86
553
+ - 0
554
+ UIDNEXT: &87
555
+ - 398
556
+ HIGHESTMODSEQ: &88
557
+ - '24063'
558
+ - - !ruby/struct:Net::IMAP::UntaggedResponse
559
+ name: FLAGS
560
+ data: *43
561
+ raw_data: "* FLAGS (\\Answered \\Flagged \\Draft \\Deleted \\Seen $NotPhishing
562
+ $Phishing)\r\n"
563
+ - !ruby/struct:Net::IMAP::UntaggedResponse
564
+ name: OK
565
+ data: *44
566
+ raw_data: "* OK [PERMANENTFLAGS (\\Answered \\Flagged \\Draft \\Deleted \\Seen
567
+ $NotPhishing $Phishing \\*)] Flags permitted.\r\n"
568
+ - !ruby/struct:Net::IMAP::UntaggedResponse
569
+ name: OK
570
+ data: *45
571
+ raw_data: "* OK [UIDVALIDITY 11] UIDs valid.\r\n"
572
+ - !ruby/struct:Net::IMAP::UntaggedResponse
573
+ name: EXISTS
574
+ data: 385
575
+ raw_data: "* 385 EXISTS\r\n"
576
+ - !ruby/struct:Net::IMAP::UntaggedResponse
577
+ name: RECENT
578
+ data: 0
579
+ raw_data: "* 0 RECENT\r\n"
580
+ - !ruby/struct:Net::IMAP::UntaggedResponse
581
+ name: OK
582
+ data: *46
583
+ raw_data: "* OK [UIDNEXT 398] Predicted next UID.\r\n"
584
+ - !ruby/struct:Net::IMAP::UntaggedResponse
585
+ name: OK
586
+ data: *47
587
+ raw_data: "* OK [HIGHESTMODSEQ 24063]\r\n"
588
+ - !ruby/struct:Net::IMAP::TaggedResponse
589
+ tag: RUBY0009
590
+ name: OK
591
+ data: *48
592
+ raw_data: "RUBY0009 OK [READ-WRITE] [Gmail]/All Mail selected. (Success)\r\n"
593
+ UID SEARCH-0010f3078427015fc193bf14c1871582:
594
+ - - :return
595
+ - !ruby/struct:Net::IMAP::TaggedResponse
596
+ tag: RUBY0004
597
+ name: OK
598
+ data: &58 !ruby/struct:Net::IMAP::ResponseText
599
+ code:
600
+ text: SEARCH completed (Success)
601
+ raw_data: "RUBY0004 OK SEARCH completed (Success)\r\n"
602
+ - FLAGS: *49
603
+ OK: *50
604
+ PERMANENTFLAGS: *51
605
+ UIDVALIDITY: *52
606
+ EXISTS: *53
607
+ RECENT: *54
608
+ UIDNEXT: *55
609
+ HIGHESTMODSEQ: *56
610
+ SEARCH:
611
+ - &57
612
+ - 4
613
+ - 5
614
+ - 11
615
+ - 12
616
+ - 13
617
+ - 14
618
+ - 15
619
+ - 16
620
+ - 17
621
+ - 18
622
+ - 19
623
+ - 20
624
+ - 21
625
+ - 22
626
+ - 23
627
+ - 24
628
+ - 25
629
+ - 26
630
+ - 27
631
+ - 28
632
+ - 29
633
+ - 30
634
+ - 31
635
+ - 32
636
+ - 33
637
+ - 34
638
+ - 35
639
+ - 36
640
+ - 37
641
+ - 38
642
+ - 39
643
+ - 40
644
+ - 41
645
+ - 42
646
+ - 43
647
+ - 44
648
+ - 45
649
+ - 46
650
+ - 47
651
+ - 48
652
+ - 49
653
+ - 50
654
+ - 51
655
+ - 52
656
+ - 53
657
+ - 54
658
+ - 55
659
+ - 56
660
+ - 57
661
+ - 58
662
+ - 59
663
+ - 60
664
+ - 61
665
+ - 62
666
+ - 63
667
+ - 64
668
+ - 65
669
+ - 66
670
+ - 67
671
+ - 68
672
+ - 69
673
+ - 70
674
+ - 71
675
+ - 72
676
+ - 73
677
+ - 74
678
+ - 75
679
+ - 76
680
+ - 77
681
+ - 78
682
+ - 79
683
+ - 80
684
+ - 81
685
+ - 82
686
+ - 83
687
+ - 84
688
+ - 85
689
+ - 86
690
+ - 87
691
+ - 88
692
+ - 89
693
+ - 90
694
+ - 91
695
+ - 92
696
+ - 93
697
+ - 94
698
+ - 95
699
+ - 96
700
+ - 97
701
+ - 98
702
+ - 99
703
+ - 100
704
+ - 101
705
+ - 102
706
+ - 103
707
+ - 104
708
+ - 105
709
+ - 106
710
+ - 107
711
+ - 108
712
+ - 109
713
+ - 110
714
+ - 111
715
+ - 112
716
+ - 113
717
+ - 114
718
+ - 115
719
+ - 116
720
+ - 117
721
+ - 118
722
+ - 119
723
+ - 120
724
+ - 121
725
+ - 122
726
+ - 123
727
+ - 124
728
+ - 125
729
+ - 126
730
+ - 127
731
+ - 128
732
+ - 129
733
+ - 130
734
+ - 131
735
+ - 132
736
+ - 133
737
+ - 134
738
+ - 135
739
+ - 136
740
+ - 137
741
+ - 138
742
+ - 139
743
+ - 140
744
+ - 141
745
+ - 142
746
+ - 143
747
+ - 144
748
+ - 145
749
+ - 157
750
+ - 158
751
+ - 159
752
+ - 160
753
+ - 161
754
+ - 162
755
+ - 166
756
+ - 167
757
+ - 168
758
+ - 169
759
+ - 170
760
+ - 171
761
+ - 172
762
+ - 173
763
+ - 174
764
+ - 175
765
+ - 176
766
+ - 177
767
+ - 178
768
+ - 179
769
+ - 180
770
+ - 181
771
+ - 182
772
+ - 183
773
+ - 184
774
+ - 185
775
+ - 190
776
+ - 191
777
+ - 192
778
+ - 193
779
+ - 194
780
+ - 195
781
+ - 196
782
+ - 197
783
+ - 198
784
+ - 199
785
+ - 200
786
+ - 201
787
+ - 202
788
+ - 203
789
+ - 204
790
+ - 205
791
+ - 206
792
+ - 207
793
+ - 208
794
+ - 209
795
+ - 210
796
+ - 211
797
+ - 212
798
+ - 213
799
+ - 214
800
+ - 215
801
+ - 216
802
+ - 217
803
+ - 218
804
+ - 219
805
+ - 220
806
+ - 221
807
+ - 222
808
+ - 223
809
+ - 224
810
+ - 225
811
+ - 226
812
+ - 227
813
+ - 228
814
+ - 229
815
+ - 230
816
+ - 231
817
+ - 232
818
+ - 233
819
+ - 234
820
+ - 235
821
+ - 236
822
+ - 237
823
+ - 238
824
+ - 239
825
+ - 240
826
+ - 241
827
+ - 242
828
+ - 243
829
+ - 244
830
+ - 245
831
+ - 247
832
+ - 284
833
+ - 285
834
+ - 286
835
+ - 287
836
+ - 288
837
+ - 289
838
+ - 290
839
+ - 291
840
+ - 292
841
+ - 293
842
+ - 294
843
+ - 295
844
+ - 296
845
+ - 297
846
+ - 298
847
+ - 299
848
+ - 300
849
+ - 301
850
+ - 302
851
+ - 303
852
+ - 304
853
+ - 305
854
+ - 306
855
+ - 307
856
+ - 308
857
+ - 309
858
+ - 310
859
+ - 311
860
+ - 312
861
+ - 313
862
+ - 314
863
+ - 315
864
+ - 316
865
+ - 317
866
+ - 318
867
+ - 319
868
+ - 320
869
+ - 321
870
+ - 322
871
+ - 323
872
+ - 324
873
+ - 325
874
+ - 326
875
+ - 327
876
+ - 328
877
+ - 329
878
+ - 330
879
+ - 331
880
+ - 332
881
+ - 333
882
+ - 334
883
+ - 335
884
+ - 336
885
+ - 337
886
+ - 338
887
+ - 339
888
+ - 340
889
+ - 341
890
+ - 342
891
+ - 343
892
+ - 345
893
+ - 346
894
+ - 347
895
+ - 348
896
+ - 349
897
+ - 351
898
+ - 352
899
+ - 353
900
+ - 354
901
+ - 355
902
+ - 358
903
+ - 359
904
+ - 360
905
+ - 361
906
+ - 362
907
+ - 366
908
+ - 367
909
+ - 368
910
+ - 369
911
+ - 370
912
+ - 372
913
+ - 373
914
+ - 374
915
+ - 375
916
+ - 376
917
+ - 377
918
+ - 378
919
+ - 379
920
+ - 380
921
+ - 381
922
+ - 382
923
+ - 383
924
+ - 384
925
+ - 385
926
+ - 386
927
+ - 387
928
+ - 388
929
+ - 389
930
+ - - !ruby/struct:Net::IMAP::UntaggedResponse
931
+ name: SEARCH
932
+ data: *57
933
+ raw_data: "* SEARCH 4 5 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
934
+ 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
935
+ 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
936
+ 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
937
+ 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
938
+ 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
939
+ 141 142 143 144 145 157 158 159 160 161 162 166 167 168 169 170 171 172 173
940
+ 174 175 176 177 178 179 180 181 182 183 184 185 190 191 192 193 194 195 196
941
+ 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215
942
+ 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234
943
+ 235 236 237 238 239 240 241 242 243 244 245 247 284 285 286 287 288 289 290
944
+ 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309
945
+ 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328
946
+ 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 345 346 347 348
947
+ 349 351 352 353 354 355 358 359 360 361 362 366 367 368 369 370 372 373 374
948
+ 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389\r\n"
949
+ - !ruby/struct:Net::IMAP::TaggedResponse
950
+ tag: RUBY0004
951
+ name: OK
952
+ data: *58
953
+ raw_data: "RUBY0004 OK SEARCH completed (Success)\r\n"
954
+ UID STORE-88fe1d9d45d4c8dee83862d0e39b8c2e:
955
+ - - :return
956
+ - !ruby/struct:Net::IMAP::TaggedResponse
957
+ tag: RUBY0006
958
+ name: OK
959
+ data: &69 !ruby/struct:Net::IMAP::ResponseText
960
+ code:
961
+ text: Success
962
+ raw_data: "RUBY0006 OK Success\r\n"
963
+ - FLAGS: *59
964
+ OK: *60
965
+ PERMANENTFLAGS: *61
966
+ UIDVALIDITY: *62
967
+ EXISTS: *63
968
+ RECENT: *64
969
+ UIDNEXT: *65
970
+ HIGHESTMODSEQ: *66
971
+ FETCH:
972
+ - &67 !ruby/struct:Net::IMAP::FetchData
973
+ seqno: 378
974
+ attr:
975
+ X-GM-LABELS:
976
+ - :Important
977
+ - :Inbox
978
+ - :Sent
979
+ - Awesome
980
+ UID: 389
981
+ - &68 !ruby/struct:Net::IMAP::FetchData
982
+ seqno: 378
983
+ attr:
984
+ UID: 389
985
+ FLAGS: []
986
+ - - !ruby/struct:Net::IMAP::UntaggedResponse
987
+ name: FETCH
988
+ data: *67
989
+ raw_data: "* 378 FETCH (X-GM-LABELS (\"\\\\Important\" \"\\\\Inbox\" \"\\\\Sent\"
990
+ Awesome) UID 389)\r\n"
991
+ - !ruby/struct:Net::IMAP::UntaggedResponse
992
+ name: FETCH
993
+ data: *68
994
+ raw_data: "* 378 FETCH (UID 389 FLAGS ())\r\n"
995
+ - !ruby/struct:Net::IMAP::TaggedResponse
996
+ tag: RUBY0006
997
+ name: OK
998
+ data: *69
999
+ raw_data: "RUBY0006 OK Success\r\n"
1000
+ UID STORE-4548e69275486d9ac1ee7f7adaac573d:
1001
+ - - :return
1002
+ - !ruby/struct:Net::IMAP::TaggedResponse
1003
+ tag: RUBY0008
1004
+ name: OK
1005
+ data: &80 !ruby/struct:Net::IMAP::ResponseText
1006
+ code:
1007
+ text: Success
1008
+ raw_data: "RUBY0008 OK Success\r\n"
1009
+ - FLAGS: *70
1010
+ OK: *71
1011
+ PERMANENTFLAGS: *72
1012
+ UIDVALIDITY: *73
1013
+ EXISTS: *74
1014
+ RECENT: *75
1015
+ UIDNEXT: *76
1016
+ HIGHESTMODSEQ: *77
1017
+ FETCH:
1018
+ - &78 !ruby/struct:Net::IMAP::FetchData
1019
+ seqno: 378
1020
+ attr:
1021
+ X-GM-LABELS:
1022
+ - :Important
1023
+ - :Inbox
1024
+ - :Sent
1025
+ - Awesome
1026
+ - Great
1027
+ UID: 389
1028
+ - &79 !ruby/struct:Net::IMAP::FetchData
1029
+ seqno: 378
1030
+ attr:
1031
+ UID: 389
1032
+ FLAGS: []
1033
+ - - !ruby/struct:Net::IMAP::UntaggedResponse
1034
+ name: FETCH
1035
+ data: *78
1036
+ raw_data: "* 378 FETCH (X-GM-LABELS (\"\\\\Important\" \"\\\\Inbox\" \"\\\\Sent\"
1037
+ Awesome Great) UID 389)\r\n"
1038
+ - !ruby/struct:Net::IMAP::UntaggedResponse
1039
+ name: FETCH
1040
+ data: *79
1041
+ raw_data: "* 378 FETCH (UID 389 FLAGS ())\r\n"
1042
+ - !ruby/struct:Net::IMAP::TaggedResponse
1043
+ tag: RUBY0008
1044
+ name: OK
1045
+ data: *80
1046
+ raw_data: "RUBY0008 OK Success\r\n"
1047
+ UID FETCH-ca88bb8099c141a1a108f56df2e80d19:
1048
+ - - :return
1049
+ - !ruby/struct:Net::IMAP::TaggedResponse
1050
+ tag: RUBY0010
1051
+ name: OK
1052
+ data: &90 !ruby/struct:Net::IMAP::ResponseText
1053
+ code:
1054
+ text: Success
1055
+ raw_data: "RUBY0010 OK Success\r\n"
1056
+ - FLAGS: *81
1057
+ OK: *82
1058
+ PERMANENTFLAGS: *83
1059
+ UIDVALIDITY: *84
1060
+ EXISTS: *85
1061
+ RECENT: *86
1062
+ UIDNEXT: *87
1063
+ HIGHESTMODSEQ: *88
1064
+ FETCH:
1065
+ - &89 !ruby/struct:Net::IMAP::FetchData
1066
+ seqno: 378
1067
+ attr:
1068
+ X-GM-THRID: 1505981211390055669
1069
+ X-GM-MSGID: 1505981211390055669
1070
+ X-GM-LABELS:
1071
+ - :Important
1072
+ - :Inbox
1073
+ - :Sent
1074
+ - Awesome
1075
+ - Great
1076
+ UID: 389
1077
+ FLAGS: []
1078
+ ENVELOPE: !ruby/struct:Net::IMAP::Envelope
1079
+ date: Mon, 06 Jul 2015 20:46:41 +0000
1080
+ subject: Hello world!
1081
+ from:
1082
+ - !ruby/struct:Net::IMAP::Address
1083
+ name:
1084
+ route:
1085
+ mailbox: ki0zvkyi1yzgy7xu4f4dh46nqrcecm
1086
+ host: gmail.com
1087
+ sender:
1088
+ - !ruby/struct:Net::IMAP::Address
1089
+ name:
1090
+ route:
1091
+ mailbox: ki0zvkyi1yzgy7xu4f4dh46nqrcecm
1092
+ host: gmail.com
1093
+ reply_to:
1094
+ - !ruby/struct:Net::IMAP::Address
1095
+ name:
1096
+ route:
1097
+ mailbox: ki0zvkyi1yzgy7xu4f4dh46nqrcecm
1098
+ host: gmail.com
1099
+ to:
1100
+ - !ruby/struct:Net::IMAP::Address
1101
+ name:
1102
+ route:
1103
+ mailbox: ki0zvkyi1yzgy7xu4f4dh46nqrcecm
1104
+ host: gmail.com
1105
+ cc:
1106
+ bcc:
1107
+ in_reply_to:
1108
+ message_id: "<559ae931b0285_7c3b93e94963f0@testing-worker-linux-docker-b5c1735c-3193-linux-3.mail>"
1109
+ BODY[]: "Return-Path: <ki0zvkyi1yzgy7xu4f4dh46nqrcecm@gmail.com>\r\nReceived:
1110
+ from gmail.com (ec2-52-0-240-122.compute-1.amazonaws.com. [52.0.240.122])\r\n
1111
+ \ by mx.google.com with ESMTPSA id a72sm9998623qgf.17.2015.07.06.13.46.41\r\n
1112
+ \ for <ki0zvkyi1yzgy7xu4f4dh46nqrcecm@gmail.com>\r\n (version=TLSv1.1
1113
+ cipher=ECDHE-RSA-RC4-SHA bits=128/128);\r\n Mon, 06 Jul 2015 13:46:42
1114
+ -0700 (PDT)\r\nDate: Mon, 06 Jul 2015 20:46:41 +0000\r\nFrom: ki0zvkyi1yzgy7xu4f4dh46nqrcecm@gmail.com\r\nTo:
1115
+ ki0zvkyi1yzgy7xu4f4dh46nqrcecm@gmail.com\r\nMessage-ID: <559ae931b0285_7c3b93e94963f0@testing-worker-linux-docker-b5c1735c-3193-linux-3.mail>\r\nSubject:
1116
+ Hello world!\r\nMime-Version: 1.0\r\nContent-Type: text/plain;\r\n charset=UTF-8\r\nContent-Transfer-Encoding:
1117
+ 7bit\r\n\r\nYeah, hello there!\r\n"
1118
+ - - !ruby/struct:Net::IMAP::UntaggedResponse
1119
+ name: FETCH
1120
+ data: *89
1121
+ raw_data: "* 378 FETCH (X-GM-THRID 1505981211390055669 X-GM-MSGID 1505981211390055669
1122
+ X-GM-LABELS (\"\\\\Important\" \"\\\\Inbox\" \"\\\\Sent\" Awesome Great) UID
1123
+ 389 FLAGS () ENVELOPE (\"Mon, 06 Jul 2015 20:46:41 +0000\" \"Hello world!\"
1124
+ ((NIL NIL \"ki0zvkyi1yzgy7xu4f4dh46nqrcecm\" \"gmail.com\")) ((NIL NIL \"ki0zvkyi1yzgy7xu4f4dh46nqrcecm\"
1125
+ \"gmail.com\")) ((NIL NIL \"ki0zvkyi1yzgy7xu4f4dh46nqrcecm\" \"gmail.com\"))
1126
+ ((NIL NIL \"ki0zvkyi1yzgy7xu4f4dh46nqrcecm\" \"gmail.com\")) NIL NIL NIL \"<559ae931b0285_7c3b93e94963f0@testing-worker-linux-docker-b5c1735c-3193-linux-3.mail>\")
1127
+ BODY[] {764}\r\nReturn-Path: <ki0zvkyi1yzgy7xu4f4dh46nqrcecm@gmail.com>\r\nReceived:
1128
+ from gmail.com (ec2-52-0-240-122.compute-1.amazonaws.com. [52.0.240.122])\r\n
1129
+ \ by mx.google.com with ESMTPSA id a72sm9998623qgf.17.2015.07.06.13.46.41\r\n
1130
+ \ for <ki0zvkyi1yzgy7xu4f4dh46nqrcecm@gmail.com>\r\n (version=TLSv1.1
1131
+ cipher=ECDHE-RSA-RC4-SHA bits=128/128);\r\n Mon, 06 Jul 2015 13:46:42
1132
+ -0700 (PDT)\r\nDate: Mon, 06 Jul 2015 20:46:41 +0000\r\nFrom: ki0zvkyi1yzgy7xu4f4dh46nqrcecm@gmail.com\r\nTo:
1133
+ ki0zvkyi1yzgy7xu4f4dh46nqrcecm@gmail.com\r\nMessage-ID: <559ae931b0285_7c3b93e94963f0@testing-worker-linux-docker-b5c1735c-3193-linux-3.mail>\r\nSubject:
1134
+ Hello world!\r\nMime-Version: 1.0\r\nContent-Type: text/plain;\r\n charset=UTF-8\r\nContent-Transfer-Encoding:
1135
+ 7bit\r\n\r\nYeah, hello there!\r\n)\r\n"
1136
+ - !ruby/struct:Net::IMAP::TaggedResponse
1137
+ tag: RUBY0010
1138
+ name: OK
1139
+ data: *90
1140
+ raw_data: "RUBY0010 OK Success\r\n"
1141
+ LOGOUT-e76a09b7766d60a37ff9e1af527a143e:
1142
+ - - :return
1143
+ - !ruby/struct:Net::IMAP::TaggedResponse
1144
+ tag: RUBY0011
1145
+ name: OK
1146
+ data: !ruby/struct:Net::IMAP::ResponseText
1147
+ code:
1148
+ text: 73 good day (Success)
1149
+ raw_data: "RUBY0011 OK 73 good day (Success)\r\n"
1150
+ - FLAGS: *81
1151
+ OK: *82
1152
+ PERMANENTFLAGS: *83
1153
+ UIDVALIDITY: *84
1154
+ EXISTS: *85
1155
+ RECENT: *86
1156
+ UIDNEXT: *87
1157
+ HIGHESTMODSEQ: *88
1158
+ BYE:
1159
+ - &91 !ruby/struct:Net::IMAP::ResponseText
1160
+ code:
1161
+ text: LOGOUT Requested
1162
+ - - !ruby/struct:Net::IMAP::UntaggedResponse
1163
+ name: BYE
1164
+ data: *91
1165
+ raw_data: "* BYE LOGOUT Requested\r\n"