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,13 +1,21 @@
1
- ---
2
- LOGIN-f0cde728d1c78eb72490f79825821b1c:
3
- - - :raise
4
- - !ruby/exception:Net::IMAP::NoResponseError
5
- message: Invalid credentials xx2mb12249277obc
6
- response: !ruby/struct:Net::IMAP::TaggedResponse
7
- tag: RUBY0001
8
- name: 'NO'
9
- data: !ruby/struct:Net::IMAP::ResponseText
10
- code:
11
- text: Invalid credentials xx2mb12249277obc
12
- raw_data: "RUBY0001 NO Invalid credentials xx2mb12249277obc\r\n"
13
- - {}
1
+ ---
2
+ LOGIN-f0cde728d1c78eb72490f79825821b1c:
3
+ - - :raise
4
+ - !ruby/exception:Net::IMAP::NoResponseError
5
+ message: Lookup failed h63mb60133304iof
6
+ response: &1 !ruby/struct:Net::IMAP::TaggedResponse
7
+ tag: RUBY0001
8
+ name: 'NO'
9
+ data: !ruby/struct:Net::IMAP::ResponseText
10
+ code:
11
+ text: Lookup failed h63mb60133304iof
12
+ raw_data: "RUBY0001 NO Lookup failed h63mb60133304iof\r\n"
13
+ - BYE:
14
+ - &2 !ruby/struct:Net::IMAP::ResponseText
15
+ code:
16
+ text: System Error h63mb60133304iof
17
+ - - *1
18
+ - !ruby/struct:Net::IMAP::UntaggedResponse
19
+ name: BYE
20
+ data: *2
21
+ raw_data: "* BYE System Error h63mb60133304iof\r\n"
@@ -1,196 +1,409 @@
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-e0583fa6130ee374cef031c01d8cc486:
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
- - :Noselect
58
- - :Haschildren
59
- delim: "/"
60
- name: "[Gmail]"
61
- - - :return
62
- - !ruby/struct:Net::IMAP::TaggedResponse
63
- tag: RUBY0004
64
- name: OK
65
- data: !ruby/struct:Net::IMAP::ResponseText
66
- code:
67
- text: Success
68
- raw_data: "RUBY0004 OK Success\r\n"
69
- - CAPABILITY: *1
70
- LIST:
71
- - !ruby/struct:Net::IMAP::MailboxList
72
- attr:
73
- - :Hasnochildren
74
- delim: "/"
75
- name: Awesome
76
- - !ruby/struct:Net::IMAP::MailboxList
77
- attr:
78
- - :Hasnochildren
79
- delim: "/"
80
- name: Great
81
- - !ruby/struct:Net::IMAP::MailboxList
82
- attr:
83
- - :Hasnochildren
84
- delim: "/"
85
- name: INBOX
86
- - !ruby/struct:Net::IMAP::MailboxList
87
- attr:
88
- - :Noselect
89
- - :Haschildren
90
- delim: "/"
91
- name: "[Gmail]"
92
- LIST-94cc1ce946087e61b81baed886d31dbc:
93
- - - :return
94
- - !ruby/struct:Net::IMAP::TaggedResponse
95
- tag: RUBY0003
96
- name: OK
97
- data: !ruby/struct:Net::IMAP::ResponseText
98
- code:
99
- text: Success
100
- raw_data: "RUBY0003 OK Success\r\n"
101
- - CAPABILITY: *1
102
- LIST:
103
- - !ruby/struct:Net::IMAP::MailboxList
104
- attr:
105
- - :Hasnochildren
106
- - :All
107
- delim: "/"
108
- name: "[Gmail]/All Mail"
109
- - !ruby/struct:Net::IMAP::MailboxList
110
- attr:
111
- - :Hasnochildren
112
- - :Drafts
113
- delim: "/"
114
- name: "[Gmail]/Drafts"
115
- - !ruby/struct:Net::IMAP::MailboxList
116
- attr:
117
- - :Hasnochildren
118
- - :Important
119
- delim: "/"
120
- name: "[Gmail]/Important"
121
- - !ruby/struct:Net::IMAP::MailboxList
122
- attr:
123
- - :Sent
124
- - :Hasnochildren
125
- delim: "/"
126
- name: "[Gmail]/Sent Mail"
127
- - !ruby/struct:Net::IMAP::MailboxList
128
- attr:
129
- - :Hasnochildren
130
- - :Junk
131
- delim: "/"
132
- name: "[Gmail]/Spam"
133
- - !ruby/struct:Net::IMAP::MailboxList
134
- attr:
135
- - :Hasnochildren
136
- - :Flagged
137
- delim: "/"
138
- name: "[Gmail]/Starred"
139
- - !ruby/struct:Net::IMAP::MailboxList
140
- attr:
141
- - :Trash
142
- - :Hasnochildren
143
- delim: "/"
144
- name: "[Gmail]/Trash"
145
- - - :return
146
- - !ruby/struct:Net::IMAP::TaggedResponse
147
- tag: RUBY0005
148
- name: OK
149
- data: !ruby/struct:Net::IMAP::ResponseText
150
- code:
151
- text: Success
152
- raw_data: "RUBY0005 OK Success\r\n"
153
- - CAPABILITY: *1
154
- LIST:
155
- - !ruby/struct:Net::IMAP::MailboxList
156
- attr:
157
- - :Hasnochildren
158
- - :All
159
- delim: "/"
160
- name: "[Gmail]/All Mail"
161
- - !ruby/struct:Net::IMAP::MailboxList
162
- attr:
163
- - :Hasnochildren
164
- - :Drafts
165
- delim: "/"
166
- name: "[Gmail]/Drafts"
167
- - !ruby/struct:Net::IMAP::MailboxList
168
- attr:
169
- - :Hasnochildren
170
- - :Important
171
- delim: "/"
172
- name: "[Gmail]/Important"
173
- - !ruby/struct:Net::IMAP::MailboxList
174
- attr:
175
- - :Sent
176
- - :Hasnochildren
177
- delim: "/"
178
- name: "[Gmail]/Sent Mail"
179
- - !ruby/struct:Net::IMAP::MailboxList
180
- attr:
181
- - :Hasnochildren
182
- - :Junk
183
- delim: "/"
184
- name: "[Gmail]/Spam"
185
- - !ruby/struct:Net::IMAP::MailboxList
186
- attr:
187
- - :Hasnochildren
188
- - :Flagged
189
- delim: "/"
190
- name: "[Gmail]/Starred"
191
- - !ruby/struct:Net::IMAP::MailboxList
192
- attr:
193
- - :Trash
194
- - :Hasnochildren
195
- delim: "/"
196
- name: "[Gmail]/Trash"
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-e0583fa6130ee374cef031c01d8cc486:
45
+ - - :return
46
+ - !ruby/struct:Net::IMAP::TaggedResponse
47
+ tag: RUBY0002
48
+ name: OK
49
+ data: &13 !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
+ - :Hasnochildren
84
+ delim: "/"
85
+ name: "\\Junk"
86
+ - &10 !ruby/struct:Net::IMAP::MailboxList
87
+ attr:
88
+ - :Hasnochildren
89
+ delim: "/"
90
+ name: one's and two's
91
+ - &11 !ruby/struct:Net::IMAP::MailboxList
92
+ attr:
93
+ - :Hasnochildren
94
+ delim: "/"
95
+ name: some new label
96
+ - &12 !ruby/struct:Net::IMAP::MailboxList
97
+ attr:
98
+ - :Hasnochildren
99
+ delim: "/"
100
+ name: some other label
101
+ - - !ruby/struct:Net::IMAP::UntaggedResponse
102
+ name: LIST
103
+ data: *4
104
+ raw_data: "* LIST (\\HasNoChildren) \"/\" \"Awesome\"\r\n"
105
+ - !ruby/struct:Net::IMAP::UntaggedResponse
106
+ name: LIST
107
+ data: *5
108
+ raw_data: "* LIST (\\HasNoChildren) \"/\" \"Great\"\r\n"
109
+ - !ruby/struct:Net::IMAP::UntaggedResponse
110
+ name: LIST
111
+ data: *6
112
+ raw_data: "* LIST (\\HasNoChildren) \"/\" \"INBOX\"\r\n"
113
+ - !ruby/struct:Net::IMAP::UntaggedResponse
114
+ name: LIST
115
+ data: *7
116
+ raw_data: "* LIST (\\HasNoChildren) \"/\" \"Ni&APE-os\"\r\n"
117
+ - !ruby/struct:Net::IMAP::UntaggedResponse
118
+ name: LIST
119
+ data: *8
120
+ raw_data: "* LIST (\\HasChildren \\Noselect) \"/\" \"[Gmail]\"\r\n"
121
+ - !ruby/struct:Net::IMAP::UntaggedResponse
122
+ name: LIST
123
+ data: *9
124
+ raw_data: "* LIST (\\HasNoChildren) \"/\" \"\\\\Junk\"\r\n"
125
+ - !ruby/struct:Net::IMAP::UntaggedResponse
126
+ name: LIST
127
+ data: *10
128
+ raw_data: "* LIST (\\HasNoChildren) \"/\" \"one's and two's\"\r\n"
129
+ - !ruby/struct:Net::IMAP::UntaggedResponse
130
+ name: LIST
131
+ data: *11
132
+ raw_data: "* LIST (\\HasNoChildren) \"/\" \"some new label\"\r\n"
133
+ - !ruby/struct:Net::IMAP::UntaggedResponse
134
+ name: LIST
135
+ data: *12
136
+ raw_data: "* LIST (\\HasNoChildren) \"/\" \"some other label\"\r\n"
137
+ - !ruby/struct:Net::IMAP::TaggedResponse
138
+ tag: RUBY0002
139
+ name: OK
140
+ data: *13
141
+ raw_data: "RUBY0002 OK Success\r\n"
142
+ - - :return
143
+ - !ruby/struct:Net::IMAP::TaggedResponse
144
+ tag: RUBY0004
145
+ name: OK
146
+ data: &23 !ruby/struct:Net::IMAP::ResponseText
147
+ code:
148
+ text: Success
149
+ raw_data: "RUBY0004 OK Success\r\n"
150
+ - CAPABILITY: *3
151
+ LIST:
152
+ - &14 !ruby/struct:Net::IMAP::MailboxList
153
+ attr:
154
+ - :Hasnochildren
155
+ delim: "/"
156
+ name: Awesome
157
+ - &15 !ruby/struct:Net::IMAP::MailboxList
158
+ attr:
159
+ - :Hasnochildren
160
+ delim: "/"
161
+ name: Great
162
+ - &16 !ruby/struct:Net::IMAP::MailboxList
163
+ attr:
164
+ - :Hasnochildren
165
+ delim: "/"
166
+ name: INBOX
167
+ - &17 !ruby/struct:Net::IMAP::MailboxList
168
+ attr:
169
+ - :Hasnochildren
170
+ delim: "/"
171
+ name: Ni&APE-os
172
+ - &18 !ruby/struct:Net::IMAP::MailboxList
173
+ attr:
174
+ - :Haschildren
175
+ - :Noselect
176
+ delim: "/"
177
+ name: "[Gmail]"
178
+ - &19 !ruby/struct:Net::IMAP::MailboxList
179
+ attr:
180
+ - :Hasnochildren
181
+ delim: "/"
182
+ name: "\\Junk"
183
+ - &20 !ruby/struct:Net::IMAP::MailboxList
184
+ attr:
185
+ - :Hasnochildren
186
+ delim: "/"
187
+ name: one's and two's
188
+ - &21 !ruby/struct:Net::IMAP::MailboxList
189
+ attr:
190
+ - :Hasnochildren
191
+ delim: "/"
192
+ name: some new label
193
+ - &22 !ruby/struct:Net::IMAP::MailboxList
194
+ attr:
195
+ - :Hasnochildren
196
+ delim: "/"
197
+ name: some other label
198
+ - - !ruby/struct:Net::IMAP::UntaggedResponse
199
+ name: LIST
200
+ data: *14
201
+ raw_data: "* LIST (\\HasNoChildren) \"/\" \"Awesome\"\r\n"
202
+ - !ruby/struct:Net::IMAP::UntaggedResponse
203
+ name: LIST
204
+ data: *15
205
+ raw_data: "* LIST (\\HasNoChildren) \"/\" \"Great\"\r\n"
206
+ - !ruby/struct:Net::IMAP::UntaggedResponse
207
+ name: LIST
208
+ data: *16
209
+ raw_data: "* LIST (\\HasNoChildren) \"/\" \"INBOX\"\r\n"
210
+ - !ruby/struct:Net::IMAP::UntaggedResponse
211
+ name: LIST
212
+ data: *17
213
+ raw_data: "* LIST (\\HasNoChildren) \"/\" \"Ni&APE-os\"\r\n"
214
+ - !ruby/struct:Net::IMAP::UntaggedResponse
215
+ name: LIST
216
+ data: *18
217
+ raw_data: "* LIST (\\HasChildren \\Noselect) \"/\" \"[Gmail]\"\r\n"
218
+ - !ruby/struct:Net::IMAP::UntaggedResponse
219
+ name: LIST
220
+ data: *19
221
+ raw_data: "* LIST (\\HasNoChildren) \"/\" \"\\\\Junk\"\r\n"
222
+ - !ruby/struct:Net::IMAP::UntaggedResponse
223
+ name: LIST
224
+ data: *20
225
+ raw_data: "* LIST (\\HasNoChildren) \"/\" \"one's and two's\"\r\n"
226
+ - !ruby/struct:Net::IMAP::UntaggedResponse
227
+ name: LIST
228
+ data: *21
229
+ raw_data: "* LIST (\\HasNoChildren) \"/\" \"some new label\"\r\n"
230
+ - !ruby/struct:Net::IMAP::UntaggedResponse
231
+ name: LIST
232
+ data: *22
233
+ raw_data: "* LIST (\\HasNoChildren) \"/\" \"some other label\"\r\n"
234
+ - !ruby/struct:Net::IMAP::TaggedResponse
235
+ tag: RUBY0004
236
+ name: OK
237
+ data: *23
238
+ raw_data: "RUBY0004 OK Success\r\n"
239
+ LIST-94cc1ce946087e61b81baed886d31dbc:
240
+ - - :return
241
+ - !ruby/struct:Net::IMAP::TaggedResponse
242
+ tag: RUBY0003
243
+ name: OK
244
+ data: &31 !ruby/struct:Net::IMAP::ResponseText
245
+ code:
246
+ text: Success
247
+ raw_data: "RUBY0003 OK Success\r\n"
248
+ - CAPABILITY: *3
249
+ LIST:
250
+ - &24 !ruby/struct:Net::IMAP::MailboxList
251
+ attr:
252
+ - :All
253
+ - :Hasnochildren
254
+ delim: "/"
255
+ name: "[Gmail]/All Mail"
256
+ - &25 !ruby/struct:Net::IMAP::MailboxList
257
+ attr:
258
+ - :Drafts
259
+ - :Hasnochildren
260
+ delim: "/"
261
+ name: "[Gmail]/Drafts"
262
+ - &26 !ruby/struct:Net::IMAP::MailboxList
263
+ attr:
264
+ - :Hasnochildren
265
+ - :Important
266
+ delim: "/"
267
+ name: "[Gmail]/Important"
268
+ - &27 !ruby/struct:Net::IMAP::MailboxList
269
+ attr:
270
+ - :Hasnochildren
271
+ - :Sent
272
+ delim: "/"
273
+ name: "[Gmail]/Sent Mail"
274
+ - &28 !ruby/struct:Net::IMAP::MailboxList
275
+ attr:
276
+ - :Hasnochildren
277
+ - :Junk
278
+ delim: "/"
279
+ name: "[Gmail]/Spam"
280
+ - &29 !ruby/struct:Net::IMAP::MailboxList
281
+ attr:
282
+ - :Flagged
283
+ - :Hasnochildren
284
+ delim: "/"
285
+ name: "[Gmail]/Starred"
286
+ - &30 !ruby/struct:Net::IMAP::MailboxList
287
+ attr:
288
+ - :Hasnochildren
289
+ - :Trash
290
+ delim: "/"
291
+ name: "[Gmail]/Trash"
292
+ - - !ruby/struct:Net::IMAP::UntaggedResponse
293
+ name: LIST
294
+ data: *24
295
+ raw_data: "* LIST (\\All \\HasNoChildren) \"/\" \"[Gmail]/All Mail\"\r\n"
296
+ - !ruby/struct:Net::IMAP::UntaggedResponse
297
+ name: LIST
298
+ data: *25
299
+ raw_data: "* LIST (\\Drafts \\HasNoChildren) \"/\" \"[Gmail]/Drafts\"\r\n"
300
+ - !ruby/struct:Net::IMAP::UntaggedResponse
301
+ name: LIST
302
+ data: *26
303
+ raw_data: "* LIST (\\HasNoChildren \\Important) \"/\" \"[Gmail]/Important\"\r\n"
304
+ - !ruby/struct:Net::IMAP::UntaggedResponse
305
+ name: LIST
306
+ data: *27
307
+ raw_data: "* LIST (\\HasNoChildren \\Sent) \"/\" \"[Gmail]/Sent Mail\"\r\n"
308
+ - !ruby/struct:Net::IMAP::UntaggedResponse
309
+ name: LIST
310
+ data: *28
311
+ raw_data: "* LIST (\\HasNoChildren \\Junk) \"/\" \"[Gmail]/Spam\"\r\n"
312
+ - !ruby/struct:Net::IMAP::UntaggedResponse
313
+ name: LIST
314
+ data: *29
315
+ raw_data: "* LIST (\\Flagged \\HasNoChildren) \"/\" \"[Gmail]/Starred\"\r\n"
316
+ - !ruby/struct:Net::IMAP::UntaggedResponse
317
+ name: LIST
318
+ data: *30
319
+ raw_data: "* LIST (\\HasNoChildren \\Trash) \"/\" \"[Gmail]/Trash\"\r\n"
320
+ - !ruby/struct:Net::IMAP::TaggedResponse
321
+ tag: RUBY0003
322
+ name: OK
323
+ data: *31
324
+ raw_data: "RUBY0003 OK Success\r\n"
325
+ - - :return
326
+ - !ruby/struct:Net::IMAP::TaggedResponse
327
+ tag: RUBY0005
328
+ name: OK
329
+ data: &39 !ruby/struct:Net::IMAP::ResponseText
330
+ code:
331
+ text: Success
332
+ raw_data: "RUBY0005 OK Success\r\n"
333
+ - CAPABILITY: *3
334
+ LIST:
335
+ - &32 !ruby/struct:Net::IMAP::MailboxList
336
+ attr:
337
+ - :All
338
+ - :Hasnochildren
339
+ delim: "/"
340
+ name: "[Gmail]/All Mail"
341
+ - &33 !ruby/struct:Net::IMAP::MailboxList
342
+ attr:
343
+ - :Drafts
344
+ - :Hasnochildren
345
+ delim: "/"
346
+ name: "[Gmail]/Drafts"
347
+ - &34 !ruby/struct:Net::IMAP::MailboxList
348
+ attr:
349
+ - :Hasnochildren
350
+ - :Important
351
+ delim: "/"
352
+ name: "[Gmail]/Important"
353
+ - &35 !ruby/struct:Net::IMAP::MailboxList
354
+ attr:
355
+ - :Hasnochildren
356
+ - :Sent
357
+ delim: "/"
358
+ name: "[Gmail]/Sent Mail"
359
+ - &36 !ruby/struct:Net::IMAP::MailboxList
360
+ attr:
361
+ - :Hasnochildren
362
+ - :Junk
363
+ delim: "/"
364
+ name: "[Gmail]/Spam"
365
+ - &37 !ruby/struct:Net::IMAP::MailboxList
366
+ attr:
367
+ - :Flagged
368
+ - :Hasnochildren
369
+ delim: "/"
370
+ name: "[Gmail]/Starred"
371
+ - &38 !ruby/struct:Net::IMAP::MailboxList
372
+ attr:
373
+ - :Hasnochildren
374
+ - :Trash
375
+ delim: "/"
376
+ name: "[Gmail]/Trash"
377
+ - - !ruby/struct:Net::IMAP::UntaggedResponse
378
+ name: LIST
379
+ data: *32
380
+ raw_data: "* LIST (\\All \\HasNoChildren) \"/\" \"[Gmail]/All Mail\"\r\n"
381
+ - !ruby/struct:Net::IMAP::UntaggedResponse
382
+ name: LIST
383
+ data: *33
384
+ raw_data: "* LIST (\\Drafts \\HasNoChildren) \"/\" \"[Gmail]/Drafts\"\r\n"
385
+ - !ruby/struct:Net::IMAP::UntaggedResponse
386
+ name: LIST
387
+ data: *34
388
+ raw_data: "* LIST (\\HasNoChildren \\Important) \"/\" \"[Gmail]/Important\"\r\n"
389
+ - !ruby/struct:Net::IMAP::UntaggedResponse
390
+ name: LIST
391
+ data: *35
392
+ raw_data: "* LIST (\\HasNoChildren \\Sent) \"/\" \"[Gmail]/Sent Mail\"\r\n"
393
+ - !ruby/struct:Net::IMAP::UntaggedResponse
394
+ name: LIST
395
+ data: *36
396
+ raw_data: "* LIST (\\HasNoChildren \\Junk) \"/\" \"[Gmail]/Spam\"\r\n"
397
+ - !ruby/struct:Net::IMAP::UntaggedResponse
398
+ name: LIST
399
+ data: *37
400
+ raw_data: "* LIST (\\Flagged \\HasNoChildren) \"/\" \"[Gmail]/Starred\"\r\n"
401
+ - !ruby/struct:Net::IMAP::UntaggedResponse
402
+ name: LIST
403
+ data: *38
404
+ raw_data: "* LIST (\\HasNoChildren \\Trash) \"/\" \"[Gmail]/Trash\"\r\n"
405
+ - !ruby/struct:Net::IMAP::TaggedResponse
406
+ tag: RUBY0005
407
+ name: OK
408
+ data: *39
409
+ raw_data: "RUBY0005 OK Success\r\n"