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,116 +1,229 @@
|
|
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
|
-
|
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
|
-
|
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
|
+
LOGOUT-e76a09b7766d60a37ff9e1af527a143e:
|
213
|
+
- - :return
|
214
|
+
- !ruby/struct:Net::IMAP::TaggedResponse
|
215
|
+
tag: RUBY0003
|
216
|
+
name: OK
|
217
|
+
data: !ruby/struct:Net::IMAP::ResponseText
|
218
|
+
code:
|
219
|
+
text: 73 good day (Success)
|
220
|
+
raw_data: "RUBY0003 OK 73 good day (Success)\r\n"
|
221
|
+
- CAPABILITY: *3
|
222
|
+
BYE:
|
223
|
+
- &21 !ruby/struct:Net::IMAP::ResponseText
|
224
|
+
code:
|
225
|
+
text: LOGOUT Requested
|
226
|
+
- - !ruby/struct:Net::IMAP::UntaggedResponse
|
227
|
+
name: BYE
|
228
|
+
data: *21
|
229
|
+
raw_data: "* BYE LOGOUT Requested\r\n"
|
@@ -1,116 +1,229 @@
|
|
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
|
-
|
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
|
-
|
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
|
+
LOGOUT-e76a09b7766d60a37ff9e1af527a143e:
|
213
|
+
- - :return
|
214
|
+
- !ruby/struct:Net::IMAP::TaggedResponse
|
215
|
+
tag: RUBY0003
|
216
|
+
name: OK
|
217
|
+
data: !ruby/struct:Net::IMAP::ResponseText
|
218
|
+
code:
|
219
|
+
text: 73 good day (Success)
|
220
|
+
raw_data: "RUBY0003 OK 73 good day (Success)\r\n"
|
221
|
+
- CAPABILITY: *3
|
222
|
+
BYE:
|
223
|
+
- &21 !ruby/struct:Net::IMAP::ResponseText
|
224
|
+
code:
|
225
|
+
text: LOGOUT Requested
|
226
|
+
- - !ruby/struct:Net::IMAP::UntaggedResponse
|
227
|
+
name: BYE
|
228
|
+
data: *21
|
229
|
+
raw_data: "* BYE LOGOUT Requested\r\n"
|