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,13 +1,21 @@
|
|
1
|
-
---
|
2
|
-
LOGIN-f0cde728d1c78eb72490f79825821b1c:
|
3
|
-
- - :raise
|
4
|
-
- !ruby/exception:Net::IMAP::NoResponseError
|
5
|
-
message:
|
6
|
-
response: !ruby/struct:Net::IMAP::TaggedResponse
|
7
|
-
tag: RUBY0001
|
8
|
-
name: 'NO'
|
9
|
-
data: !ruby/struct:Net::IMAP::ResponseText
|
10
|
-
code:
|
11
|
-
text:
|
12
|
-
raw_data: "RUBY0001 NO
|
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"
|
data/spec/recordings/gmail_client_plain/instance/labels/checks_if_there_is_given_label_defined.yml
CHANGED
@@ -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: &
|
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
|
-
- :
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
- :
|
79
|
-
delim: "/"
|
80
|
-
name:
|
81
|
-
- !ruby/struct:Net::IMAP::MailboxList
|
82
|
-
attr:
|
83
|
-
- :Hasnochildren
|
84
|
-
delim: "/"
|
85
|
-
name:
|
86
|
-
- !ruby/struct:Net::IMAP::MailboxList
|
87
|
-
attr:
|
88
|
-
- :
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
- !ruby/struct:Net::IMAP::
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
name:
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
- !ruby/struct:Net::IMAP::
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
name:
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
- !ruby/struct:Net::IMAP::
|
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
|
-
delim: "/"
|
166
|
-
name:
|
167
|
-
- !ruby/struct:Net::IMAP::MailboxList
|
168
|
-
attr:
|
169
|
-
- :Hasnochildren
|
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
|
-
|
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"
|