gmail 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.coveralls.yml +1 -0
- data/.gitignore +27 -27
- data/.rspec +1 -1
- data/.rubocop.yml +53 -13
- data/.rubocop_todo.yml +299 -239
- data/.travis.yml +19 -19
- data/CHANGELOG.md +152 -145
- data/Gemfile +5 -3
- data/LICENSE +21 -21
- data/README.md +380 -355
- data/Rakefile +44 -46
- data/gmail.gemspec +32 -34
- data/lib/gmail.rb +72 -78
- data/lib/gmail/client.rb +35 -34
- data/lib/gmail/client/base.rb +244 -229
- data/lib/gmail/client/plain.rb +24 -24
- data/lib/gmail/client/xoauth.rb +67 -68
- data/lib/gmail/client/xoauth2.rb +39 -39
- data/lib/gmail/imap_extensions.rb +156 -159
- data/lib/gmail/labels.rb +80 -79
- data/lib/gmail/mailbox.rb +178 -175
- data/lib/gmail/message.rb +212 -207
- data/lib/gmail/version.rb +3 -3
- data/spec/account.yml.example +1 -1
- data/spec/account.yml.obfus +2 -2
- data/spec/gmail/client/base_spec.rb +5 -5
- data/spec/gmail/client/plain_spec.rb +169 -169
- data/spec/gmail/client/xoauth2_spec.rb +186 -186
- data/spec/gmail/client/xoauth_spec.rb +5 -5
- data/spec/gmail/client_spec.rb +5 -5
- data/spec/gmail/imap_extensions_spec.rb +47 -47
- data/spec/gmail/labels_spec.rb +27 -27
- data/spec/gmail/mailbox_spec.rb +84 -84
- data/spec/gmail/message_spec.rb +181 -181
- data/spec/gmail_spec.rb +40 -39
- data/spec/recordings/gmail/_new_connects_with_client_and_give_it_context_when_block_given.yml +61 -28
- data/spec/recordings/gmail/_new_connects_with_gmail_service_and_return_valid_connection_object.yml +43 -28
- data/spec/recordings/gmail/_new_does_not_raise_error_when_couldn_t_connect_with_given_account.yml +21 -13
- data/spec/recordings/gmail/_new_raises_error_when_couldn_t_connect_with_given_account.yml +21 -13
- data/spec/recordings/gmail_client_plain/instance/delivers_inline_composed_email.yml +61 -42
- data/spec/recordings/gmail_client_plain/instance/does_not_log_in_when_given_gmail_account_is_invalid.yml +21 -13
- data/spec/recordings/gmail_client_plain/instance/does_not_raise_error_even_though_gmail_account_is_invalid.yml +21 -13
- data/spec/recordings/gmail_client_plain/instance/labels/checks_if_there_is_given_label_defined.yml +409 -196
- data/spec/recordings/gmail_client_plain/instance/labels/creates_given_label.yml +280 -151
- data/spec/recordings/gmail_client_plain/instance/labels/removes_existing_label.yml +271 -146
- data/spec/recordings/gmail_client_plain/instance/labels/returns_list_of_all_available_labels.yml +227 -113
- data/spec/recordings/gmail_client_plain/instance/properly_logs_in_to_valid_gmail_account.yml +61 -42
- data/spec/recordings/gmail_client_plain/instance/properly_logs_out_from_gmail.yml +61 -42
- data/spec/recordings/gmail_client_plain/instance/properly_switches_to_given_mailbox.yml +164 -109
- data/spec/recordings/gmail_client_plain/instance/properly_switches_to_given_mailbox_using_block_style.yml +164 -109
- data/spec/recordings/gmail_client_plain/instance/raises_error_when_given_gmail_account_is_invalid_and_errors_enabled.yml +21 -13
- data/spec/recordings/gmail_client_xo_auth2/instance/does_not_log_in_when_given_gmail_account_is_invalid.yml +24 -13
- data/spec/recordings/gmail_client_xo_auth2/instance/labels/checks_if_there_is_given_label_defined.yml +39 -27
- data/spec/recordings/gmail_client_xo_auth2/instance/labels/creates_given_label.yml +52 -39
- data/spec/recordings/gmail_client_xo_auth2/instance/labels/removes_existing_label.yml +52 -39
- data/spec/recordings/gmail_client_xo_auth2/instance/labels/returns_list_of_all_available_labels.yml +39 -27
- data/spec/recordings/gmail_client_xo_auth2/instance/properly_logs_in_to_valid_gmail_account.yml +26 -15
- data/spec/recordings/gmail_client_xo_auth2/instance/properly_logs_out_from_gmail.yml +26 -15
- data/spec/recordings/gmail_client_xo_auth2/instance/properly_switches_to_given_mailbox.yml +63 -40
- data/spec/recordings/gmail_client_xo_auth2/instance/properly_switches_to_given_mailbox_using_block_style.yml +63 -40
- data/spec/recordings/gmail_client_xo_auth2/instance/raises_error_when_given_gmail_account_is_invalid_and_errors_enabled.yml +24 -13
- data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/all/localizes_into_the_appropriate_label.yml +229 -116
- 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
- data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/drafts/localizes_into_the_appropriate_label.yml +229 -116
- data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/flagged/localizes_into_the_appropriate_label.yml +229 -116
- data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/important/localizes_into_the_appropriate_label.yml +229 -116
- data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/inbox/localizes_into_the_appropriate_label.yml +61 -42
- data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/junk/localizes_into_the_appropriate_label.yml +229 -116
- data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/sent/localizes_into_the_appropriate_label.yml +229 -116
- data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/trash/localizes_into_the_appropriate_label.yml +229 -116
- data/spec/recordings/gmail_mailbox/instance/counts_all_emails.yml +595 -277
- data/spec/recordings/gmail_mailbox/instance/finds_messages.yml +1049 -586
- data/spec/recordings/gmail_mailbox/instance/waits_once.yml +191 -136
- data/spec/recordings/gmail_mailbox/instance/waits_repeatedly.yml +217 -141
- data/spec/recordings/gmail_mailbox/instance/waits_with_29-minute_re-issue.yml +188 -136
- data/spec/recordings/gmail_mailbox/instance/waits_with_an_unblocked_connection.yml +644 -207
- data/spec/recordings/gmail_mailbox/on_initialize/sets_client_and_name.yml +61 -42
- data/spec/recordings/gmail_mailbox/on_initialize/works_in_inbox_by_default.yml +61 -42
- data/spec/recordings/gmail_message/initialize/sets_prefetch_attrs.yml +1068 -578
- data/spec/recordings/gmail_message/initialize/sets_uid_and_mailbox.yml +1068 -580
- data/spec/recordings/gmail_message/instance_methods/deletes_itself.yml +1084 -637
- data/spec/recordings/gmail_message/instance_methods/marks_itself_read.yml +1137 -682
- data/spec/recordings/gmail_message/instance_methods/marks_itself_unread.yml +1153 -686
- data/spec/recordings/gmail_message/instance_methods/moves_from_one_tag_to_other.yml +1447 -862
- data/spec/recordings/gmail_message/instance_methods/removes_a_given_label.yml +1288 -776
- data/spec/recordings/gmail_message/instance_methods/removes_a_given_label_with_old_method.yml +1288 -776
- data/spec/recordings/gmail_message/instance_methods/sets_given_label.yml +1165 -690
- data/spec/recordings/gmail_message/instance_methods/sets_given_label_with_old_method.yml +1157 -691
- data/spec/spec_helper.rb +56 -53
- data/spec/support/imap_mock.rb +181 -181
- data/spec/support/obfuscation.rb +49 -52
- metadata +21 -90
- 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: &
|
13
|
-
-
|
14
|
-
-
|
15
|
-
-
|
16
|
-
-
|
17
|
-
-
|
18
|
-
-
|
19
|
-
-
|
20
|
-
-
|
21
|
-
-
|
22
|
-
-
|
23
|
-
-
|
24
|
-
-
|
25
|
-
-
|
26
|
-
-
|
27
|
-
-
|
28
|
-
-
|
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
|
-
|
54
|
-
|
55
|
-
- !ruby/struct:Net::IMAP::MailboxList
|
56
|
-
attr:
|
57
|
-
- :Hasnochildren
|
58
|
-
delim: "/"
|
59
|
-
name:
|
60
|
-
- !ruby/struct:Net::IMAP::MailboxList
|
61
|
-
attr:
|
62
|
-
- :
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
- :
|
121
|
-
delim: "/"
|
122
|
-
name:
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
- !ruby/struct:Net::IMAP::
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
-
|
451
|
-
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
-
|
475
|
-
-
|
476
|
-
-
|
477
|
-
-
|
478
|
-
-
|
479
|
-
-
|
480
|
-
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
-
|
570
|
-
-
|
571
|
-
-
|
572
|
-
-
|
573
|
-
-
|
574
|
-
-
|
575
|
-
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
- - :
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
636
|
-
|
637
|
-
|
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"
|