gmail 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +27 -27
- data/.rspec +1 -1
- data/.rubocop.yml +13 -13
- data/.rubocop_todo.yml +239 -239
- data/.travis.yml +19 -19
- data/CHANGELOG.md +145 -139
- data/Gemfile +3 -3
- data/LICENSE +21 -21
- data/README.md +355 -354
- data/Rakefile +46 -46
- data/gmail.gemspec +34 -34
- data/lib/gmail.rb +78 -78
- data/lib/gmail/client.rb +34 -34
- data/lib/gmail/client/base.rb +229 -229
- data/lib/gmail/client/plain.rb +24 -24
- data/lib/gmail/client/xoauth.rb +68 -68
- data/lib/gmail/client/xoauth2.rb +39 -39
- data/lib/gmail/imap_extensions.rb +159 -150
- data/lib/gmail/labels.rb +79 -79
- data/lib/gmail/mailbox.rb +175 -135
- data/lib/gmail/message.rb +207 -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 -168
- 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 -12
- data/spec/gmail/labels_spec.rb +27 -18
- data/spec/gmail/mailbox_spec.rb +84 -47
- data/spec/gmail/message_spec.rb +181 -181
- data/spec/gmail_spec.rb +39 -39
- data/spec/recordings/gmail/_new_connects_with_client_and_give_it_context_when_block_given.yml +28 -28
- data/spec/recordings/gmail/_new_connects_with_gmail_service_and_return_valid_connection_object.yml +28 -28
- data/spec/recordings/gmail/_new_does_not_raise_error_when_couldn_t_connect_with_given_account.yml +13 -13
- data/spec/recordings/gmail/_new_raises_error_when_couldn_t_connect_with_given_account.yml +13 -13
- data/spec/recordings/gmail_client_plain/instance/_connection_automatically_logs_in_to_gmail_account_when_it_s_called.yml +42 -42
- data/spec/recordings/gmail_client_plain/instance/delivers_inline_composed_email.yml +42 -42
- data/spec/recordings/gmail_client_plain/instance/does_not_log_in_when_given_gmail_account_is_invalid.yml +13 -13
- data/spec/recordings/gmail_client_plain/instance/does_not_raise_error_even_though_gmail_account_is_invalid.yml +13 -13
- data/spec/recordings/gmail_client_plain/instance/labels/checks_if_there_is_given_label_defined.yml +196 -196
- data/spec/recordings/gmail_client_plain/instance/labels/creates_given_label.yml +151 -151
- data/spec/recordings/gmail_client_plain/instance/labels/removes_existing_label.yml +146 -146
- data/spec/recordings/gmail_client_plain/instance/labels/returns_list_of_all_available_labels.yml +113 -113
- data/spec/recordings/gmail_client_plain/instance/properly_logs_in_to_valid_gmail_account.yml +42 -42
- data/spec/recordings/gmail_client_plain/instance/properly_logs_out_from_gmail.yml +42 -42
- data/spec/recordings/gmail_client_plain/instance/properly_switches_to_given_mailbox.yml +109 -109
- data/spec/recordings/gmail_client_plain/instance/properly_switches_to_given_mailbox_using_block_style.yml +109 -109
- data/spec/recordings/gmail_client_plain/instance/raises_error_when_given_gmail_account_is_invalid_and_errors_enabled.yml +13 -13
- data/spec/recordings/gmail_client_xo_auth2/instance/does_not_log_in_when_given_gmail_account_is_invalid.yml +13 -13
- data/spec/recordings/gmail_client_xo_auth2/instance/labels/checks_if_there_is_given_label_defined.yml +27 -27
- data/spec/recordings/gmail_client_xo_auth2/instance/labels/creates_given_label.yml +39 -39
- data/spec/recordings/gmail_client_xo_auth2/instance/labels/removes_existing_label.yml +39 -39
- data/spec/recordings/gmail_client_xo_auth2/instance/labels/returns_list_of_all_available_labels.yml +27 -27
- data/spec/recordings/gmail_client_xo_auth2/instance/properly_logs_in_to_valid_gmail_account.yml +15 -15
- data/spec/recordings/gmail_client_xo_auth2/instance/properly_logs_out_from_gmail.yml +15 -15
- data/spec/recordings/gmail_client_xo_auth2/instance/properly_switches_to_given_mailbox.yml +40 -40
- data/spec/recordings/gmail_client_xo_auth2/instance/properly_switches_to_given_mailbox_using_block_style.yml +40 -40
- data/spec/recordings/gmail_client_xo_auth2/instance/raises_error_when_given_gmail_account_is_invalid_and_errors_enabled.yml +13 -13
- data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/all/localizes_into_the_appropriate_label.yml +116 -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 +110 -0
- data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/drafts/localizes_into_the_appropriate_label.yml +116 -116
- data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/flagged/localizes_into_the_appropriate_label.yml +116 -116
- data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/important/localizes_into_the_appropriate_label.yml +116 -116
- data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/inbox/localizes_into_the_appropriate_label.yml +42 -42
- data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/junk/localizes_into_the_appropriate_label.yml +116 -116
- data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/sent/localizes_into_the_appropriate_label.yml +116 -116
- data/spec/recordings/gmail_labels/localize/when_given_the_xl_is_tflag/trash/localizes_into_the_appropriate_label.yml +116 -116
- data/spec/recordings/gmail_mailbox/instance/counts_all_emails.yml +277 -277
- data/spec/recordings/gmail_mailbox/instance/finds_messages.yml +586 -586
- data/spec/recordings/gmail_mailbox/instance/waits_once.yml +136 -0
- data/spec/recordings/gmail_mailbox/instance/waits_repeatedly.yml +141 -0
- data/spec/recordings/gmail_mailbox/instance/waits_with_29-minute_re-issue.yml +136 -0
- data/spec/recordings/gmail_mailbox/instance/waits_with_an_unblocked_connection.yml +207 -0
- data/spec/recordings/gmail_mailbox/on_initialize/sets_client_and_name.yml +42 -42
- data/spec/recordings/gmail_mailbox/on_initialize/works_in_inbox_by_default.yml +42 -42
- data/spec/recordings/gmail_message/initialize/sets_prefetch_attrs.yml +578 -578
- data/spec/recordings/gmail_message/initialize/sets_uid_and_mailbox.yml +580 -580
- data/spec/recordings/gmail_message/instance_methods/deletes_itself.yml +637 -637
- data/spec/recordings/gmail_message/instance_methods/marks_itself_read.yml +682 -682
- data/spec/recordings/gmail_message/instance_methods/marks_itself_unread.yml +686 -686
- data/spec/recordings/gmail_message/instance_methods/moves_from_one_tag_to_other.yml +862 -862
- data/spec/recordings/gmail_message/instance_methods/removes_a_given_label.yml +776 -776
- data/spec/recordings/gmail_message/instance_methods/removes_a_given_label_with_old_method.yml +776 -776
- data/spec/recordings/gmail_message/instance_methods/sets_given_label.yml +690 -690
- data/spec/recordings/gmail_message/instance_methods/sets_given_label_with_old_method.yml +691 -691
- data/spec/spec_helper.rb +53 -53
- data/spec/support/imap_mock.rb +181 -129
- data/spec/support/obfuscation.rb +52 -52
- metadata +78 -5
data/spec/recordings/gmail_client_plain/instance/properly_logs_in_to_valid_gmail_account.yml
CHANGED
@@ -1,42 +1,42 @@
|
|
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
|
-
LOGOUT-e76a09b7766d60a37ff9e1af527a143e:
|
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: 73 good day (Success)
|
37
|
-
raw_data: "RUBY0002 OK 73 good day (Success)\r\n"
|
38
|
-
- CAPABILITY: *1
|
39
|
-
BYE:
|
40
|
-
- !ruby/struct:Net::IMAP::ResponseText
|
41
|
-
code:
|
42
|
-
text: LOGOUT Requested
|
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
|
+
LOGOUT-e76a09b7766d60a37ff9e1af527a143e:
|
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: 73 good day (Success)
|
37
|
+
raw_data: "RUBY0002 OK 73 good day (Success)\r\n"
|
38
|
+
- CAPABILITY: *1
|
39
|
+
BYE:
|
40
|
+
- !ruby/struct:Net::IMAP::ResponseText
|
41
|
+
code:
|
42
|
+
text: LOGOUT Requested
|
@@ -1,42 +1,42 @@
|
|
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
|
-
LOGOUT-e76a09b7766d60a37ff9e1af527a143e:
|
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: 73 good day (Success)
|
37
|
-
raw_data: "RUBY0002 OK 73 good day (Success)\r\n"
|
38
|
-
- CAPABILITY: *1
|
39
|
-
BYE:
|
40
|
-
- !ruby/struct:Net::IMAP::ResponseText
|
41
|
-
code:
|
42
|
-
text: LOGOUT Requested
|
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
|
+
LOGOUT-e76a09b7766d60a37ff9e1af527a143e:
|
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: 73 good day (Success)
|
37
|
+
raw_data: "RUBY0002 OK 73 good day (Success)\r\n"
|
38
|
+
- CAPABILITY: *1
|
39
|
+
BYE:
|
40
|
+
- !ruby/struct:Net::IMAP::ResponseText
|
41
|
+
code:
|
42
|
+
text: LOGOUT Requested
|
@@ -1,109 +1,109 @@
|
|
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
|
-
- - 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
|
-
SELECT-505f013d922af4caf157dc91d6b45a60:
|
30
|
-
- - :return
|
31
|
-
- !ruby/struct:Net::IMAP::TaggedResponse
|
32
|
-
tag: RUBY0002
|
33
|
-
name: OK
|
34
|
-
data: !ruby/struct:Net::IMAP::ResponseText
|
35
|
-
code: !ruby/struct:Net::IMAP::ResponseCode
|
36
|
-
name: READ-WRITE
|
37
|
-
data:
|
38
|
-
text: " INBOX selected. (Success)"
|
39
|
-
raw_data: "RUBY0002 OK [READ-WRITE] INBOX selected. (Success)\r\n"
|
40
|
-
- FLAGS: &2
|
41
|
-
- - :Answered
|
42
|
-
- :Flagged
|
43
|
-
- :Draft
|
44
|
-
- :Deleted
|
45
|
-
- :Seen
|
46
|
-
- "$Phishing"
|
47
|
-
- "$NotPhishing"
|
48
|
-
OK: &3
|
49
|
-
- !ruby/struct:Net::IMAP::ResponseText
|
50
|
-
code: !ruby/struct:Net::IMAP::ResponseCode
|
51
|
-
name: PERMANENTFLAGS
|
52
|
-
data: &1
|
53
|
-
- :Answered
|
54
|
-
- :Flagged
|
55
|
-
- :Draft
|
56
|
-
- :Deleted
|
57
|
-
- :Seen
|
58
|
-
- "$Phishing"
|
59
|
-
- "$NotPhishing"
|
60
|
-
- :*
|
61
|
-
text: " Flags permitted."
|
62
|
-
- !ruby/struct:Net::IMAP::ResponseText
|
63
|
-
code: !ruby/struct:Net::IMAP::ResponseCode
|
64
|
-
name: UIDVALIDITY
|
65
|
-
data: 1
|
66
|
-
text: " UIDs valid."
|
67
|
-
- !ruby/struct:Net::IMAP::ResponseText
|
68
|
-
code: !ruby/struct:Net::IMAP::ResponseCode
|
69
|
-
name: UIDNEXT
|
70
|
-
data: 83
|
71
|
-
text: " Predicted next UID."
|
72
|
-
- !ruby/struct:Net::IMAP::ResponseText
|
73
|
-
code: !ruby/struct:Net::IMAP::ResponseCode
|
74
|
-
name: HIGHESTMODSEQ
|
75
|
-
data: '8244'
|
76
|
-
text: ''
|
77
|
-
PERMANENTFLAGS: &4
|
78
|
-
- *1
|
79
|
-
UIDVALIDITY: &5
|
80
|
-
- 1
|
81
|
-
EXISTS: &6
|
82
|
-
- 82
|
83
|
-
RECENT: &7
|
84
|
-
- 0
|
85
|
-
UIDNEXT: &8
|
86
|
-
- 83
|
87
|
-
HIGHESTMODSEQ: &9
|
88
|
-
- '8244'
|
89
|
-
LOGOUT-e76a09b7766d60a37ff9e1af527a143e:
|
90
|
-
- - :return
|
91
|
-
- !ruby/struct:Net::IMAP::TaggedResponse
|
92
|
-
tag: RUBY0003
|
93
|
-
name: OK
|
94
|
-
data: !ruby/struct:Net::IMAP::ResponseText
|
95
|
-
code:
|
96
|
-
text: 73 good day (Success)
|
97
|
-
raw_data: "RUBY0003 OK 73 good day (Success)\r\n"
|
98
|
-
- FLAGS: *2
|
99
|
-
OK: *3
|
100
|
-
PERMANENTFLAGS: *4
|
101
|
-
UIDVALIDITY: *5
|
102
|
-
EXISTS: *6
|
103
|
-
RECENT: *7
|
104
|
-
UIDNEXT: *8
|
105
|
-
HIGHESTMODSEQ: *9
|
106
|
-
BYE:
|
107
|
-
- !ruby/struct:Net::IMAP::ResponseText
|
108
|
-
code:
|
109
|
-
text: LOGOUT Requested
|
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
|
+
- - 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
|
+
SELECT-505f013d922af4caf157dc91d6b45a60:
|
30
|
+
- - :return
|
31
|
+
- !ruby/struct:Net::IMAP::TaggedResponse
|
32
|
+
tag: RUBY0002
|
33
|
+
name: OK
|
34
|
+
data: !ruby/struct:Net::IMAP::ResponseText
|
35
|
+
code: !ruby/struct:Net::IMAP::ResponseCode
|
36
|
+
name: READ-WRITE
|
37
|
+
data:
|
38
|
+
text: " INBOX selected. (Success)"
|
39
|
+
raw_data: "RUBY0002 OK [READ-WRITE] INBOX selected. (Success)\r\n"
|
40
|
+
- FLAGS: &2
|
41
|
+
- - :Answered
|
42
|
+
- :Flagged
|
43
|
+
- :Draft
|
44
|
+
- :Deleted
|
45
|
+
- :Seen
|
46
|
+
- "$Phishing"
|
47
|
+
- "$NotPhishing"
|
48
|
+
OK: &3
|
49
|
+
- !ruby/struct:Net::IMAP::ResponseText
|
50
|
+
code: !ruby/struct:Net::IMAP::ResponseCode
|
51
|
+
name: PERMANENTFLAGS
|
52
|
+
data: &1
|
53
|
+
- :Answered
|
54
|
+
- :Flagged
|
55
|
+
- :Draft
|
56
|
+
- :Deleted
|
57
|
+
- :Seen
|
58
|
+
- "$Phishing"
|
59
|
+
- "$NotPhishing"
|
60
|
+
- :*
|
61
|
+
text: " Flags permitted."
|
62
|
+
- !ruby/struct:Net::IMAP::ResponseText
|
63
|
+
code: !ruby/struct:Net::IMAP::ResponseCode
|
64
|
+
name: UIDVALIDITY
|
65
|
+
data: 1
|
66
|
+
text: " UIDs valid."
|
67
|
+
- !ruby/struct:Net::IMAP::ResponseText
|
68
|
+
code: !ruby/struct:Net::IMAP::ResponseCode
|
69
|
+
name: UIDNEXT
|
70
|
+
data: 83
|
71
|
+
text: " Predicted next UID."
|
72
|
+
- !ruby/struct:Net::IMAP::ResponseText
|
73
|
+
code: !ruby/struct:Net::IMAP::ResponseCode
|
74
|
+
name: HIGHESTMODSEQ
|
75
|
+
data: '8244'
|
76
|
+
text: ''
|
77
|
+
PERMANENTFLAGS: &4
|
78
|
+
- *1
|
79
|
+
UIDVALIDITY: &5
|
80
|
+
- 1
|
81
|
+
EXISTS: &6
|
82
|
+
- 82
|
83
|
+
RECENT: &7
|
84
|
+
- 0
|
85
|
+
UIDNEXT: &8
|
86
|
+
- 83
|
87
|
+
HIGHESTMODSEQ: &9
|
88
|
+
- '8244'
|
89
|
+
LOGOUT-e76a09b7766d60a37ff9e1af527a143e:
|
90
|
+
- - :return
|
91
|
+
- !ruby/struct:Net::IMAP::TaggedResponse
|
92
|
+
tag: RUBY0003
|
93
|
+
name: OK
|
94
|
+
data: !ruby/struct:Net::IMAP::ResponseText
|
95
|
+
code:
|
96
|
+
text: 73 good day (Success)
|
97
|
+
raw_data: "RUBY0003 OK 73 good day (Success)\r\n"
|
98
|
+
- FLAGS: *2
|
99
|
+
OK: *3
|
100
|
+
PERMANENTFLAGS: *4
|
101
|
+
UIDVALIDITY: *5
|
102
|
+
EXISTS: *6
|
103
|
+
RECENT: *7
|
104
|
+
UIDNEXT: *8
|
105
|
+
HIGHESTMODSEQ: *9
|
106
|
+
BYE:
|
107
|
+
- !ruby/struct:Net::IMAP::ResponseText
|
108
|
+
code:
|
109
|
+
text: LOGOUT Requested
|
@@ -1,109 +1,109 @@
|
|
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
|
-
- - 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
|
-
SELECT-505f013d922af4caf157dc91d6b45a60:
|
30
|
-
- - :return
|
31
|
-
- !ruby/struct:Net::IMAP::TaggedResponse
|
32
|
-
tag: RUBY0002
|
33
|
-
name: OK
|
34
|
-
data: !ruby/struct:Net::IMAP::ResponseText
|
35
|
-
code: !ruby/struct:Net::IMAP::ResponseCode
|
36
|
-
name: READ-WRITE
|
37
|
-
data:
|
38
|
-
text: " INBOX selected. (Success)"
|
39
|
-
raw_data: "RUBY0002 OK [READ-WRITE] INBOX selected. (Success)\r\n"
|
40
|
-
- FLAGS: &2
|
41
|
-
- - :Answered
|
42
|
-
- :Flagged
|
43
|
-
- :Draft
|
44
|
-
- :Deleted
|
45
|
-
- :Seen
|
46
|
-
- "$Phishing"
|
47
|
-
- "$NotPhishing"
|
48
|
-
OK: &3
|
49
|
-
- !ruby/struct:Net::IMAP::ResponseText
|
50
|
-
code: !ruby/struct:Net::IMAP::ResponseCode
|
51
|
-
name: PERMANENTFLAGS
|
52
|
-
data: &1
|
53
|
-
- :Answered
|
54
|
-
- :Flagged
|
55
|
-
- :Draft
|
56
|
-
- :Deleted
|
57
|
-
- :Seen
|
58
|
-
- "$Phishing"
|
59
|
-
- "$NotPhishing"
|
60
|
-
- :*
|
61
|
-
text: " Flags permitted."
|
62
|
-
- !ruby/struct:Net::IMAP::ResponseText
|
63
|
-
code: !ruby/struct:Net::IMAP::ResponseCode
|
64
|
-
name: UIDVALIDITY
|
65
|
-
data: 1
|
66
|
-
text: " UIDs valid."
|
67
|
-
- !ruby/struct:Net::IMAP::ResponseText
|
68
|
-
code: !ruby/struct:Net::IMAP::ResponseCode
|
69
|
-
name: UIDNEXT
|
70
|
-
data: 83
|
71
|
-
text: " Predicted next UID."
|
72
|
-
- !ruby/struct:Net::IMAP::ResponseText
|
73
|
-
code: !ruby/struct:Net::IMAP::ResponseCode
|
74
|
-
name: HIGHESTMODSEQ
|
75
|
-
data: '8244'
|
76
|
-
text: ''
|
77
|
-
PERMANENTFLAGS: &4
|
78
|
-
- *1
|
79
|
-
UIDVALIDITY: &5
|
80
|
-
- 1
|
81
|
-
EXISTS: &6
|
82
|
-
- 82
|
83
|
-
RECENT: &7
|
84
|
-
- 0
|
85
|
-
UIDNEXT: &8
|
86
|
-
- 83
|
87
|
-
HIGHESTMODSEQ: &9
|
88
|
-
- '8244'
|
89
|
-
LOGOUT-e76a09b7766d60a37ff9e1af527a143e:
|
90
|
-
- - :return
|
91
|
-
- !ruby/struct:Net::IMAP::TaggedResponse
|
92
|
-
tag: RUBY0003
|
93
|
-
name: OK
|
94
|
-
data: !ruby/struct:Net::IMAP::ResponseText
|
95
|
-
code:
|
96
|
-
text: 73 good day (Success)
|
97
|
-
raw_data: "RUBY0003 OK 73 good day (Success)\r\n"
|
98
|
-
- FLAGS: *2
|
99
|
-
OK: *3
|
100
|
-
PERMANENTFLAGS: *4
|
101
|
-
UIDVALIDITY: *5
|
102
|
-
EXISTS: *6
|
103
|
-
RECENT: *7
|
104
|
-
UIDNEXT: *8
|
105
|
-
HIGHESTMODSEQ: *9
|
106
|
-
BYE:
|
107
|
-
- !ruby/struct:Net::IMAP::ResponseText
|
108
|
-
code:
|
109
|
-
text: LOGOUT Requested
|
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
|
+
- - 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
|
+
SELECT-505f013d922af4caf157dc91d6b45a60:
|
30
|
+
- - :return
|
31
|
+
- !ruby/struct:Net::IMAP::TaggedResponse
|
32
|
+
tag: RUBY0002
|
33
|
+
name: OK
|
34
|
+
data: !ruby/struct:Net::IMAP::ResponseText
|
35
|
+
code: !ruby/struct:Net::IMAP::ResponseCode
|
36
|
+
name: READ-WRITE
|
37
|
+
data:
|
38
|
+
text: " INBOX selected. (Success)"
|
39
|
+
raw_data: "RUBY0002 OK [READ-WRITE] INBOX selected. (Success)\r\n"
|
40
|
+
- FLAGS: &2
|
41
|
+
- - :Answered
|
42
|
+
- :Flagged
|
43
|
+
- :Draft
|
44
|
+
- :Deleted
|
45
|
+
- :Seen
|
46
|
+
- "$Phishing"
|
47
|
+
- "$NotPhishing"
|
48
|
+
OK: &3
|
49
|
+
- !ruby/struct:Net::IMAP::ResponseText
|
50
|
+
code: !ruby/struct:Net::IMAP::ResponseCode
|
51
|
+
name: PERMANENTFLAGS
|
52
|
+
data: &1
|
53
|
+
- :Answered
|
54
|
+
- :Flagged
|
55
|
+
- :Draft
|
56
|
+
- :Deleted
|
57
|
+
- :Seen
|
58
|
+
- "$Phishing"
|
59
|
+
- "$NotPhishing"
|
60
|
+
- :*
|
61
|
+
text: " Flags permitted."
|
62
|
+
- !ruby/struct:Net::IMAP::ResponseText
|
63
|
+
code: !ruby/struct:Net::IMAP::ResponseCode
|
64
|
+
name: UIDVALIDITY
|
65
|
+
data: 1
|
66
|
+
text: " UIDs valid."
|
67
|
+
- !ruby/struct:Net::IMAP::ResponseText
|
68
|
+
code: !ruby/struct:Net::IMAP::ResponseCode
|
69
|
+
name: UIDNEXT
|
70
|
+
data: 83
|
71
|
+
text: " Predicted next UID."
|
72
|
+
- !ruby/struct:Net::IMAP::ResponseText
|
73
|
+
code: !ruby/struct:Net::IMAP::ResponseCode
|
74
|
+
name: HIGHESTMODSEQ
|
75
|
+
data: '8244'
|
76
|
+
text: ''
|
77
|
+
PERMANENTFLAGS: &4
|
78
|
+
- *1
|
79
|
+
UIDVALIDITY: &5
|
80
|
+
- 1
|
81
|
+
EXISTS: &6
|
82
|
+
- 82
|
83
|
+
RECENT: &7
|
84
|
+
- 0
|
85
|
+
UIDNEXT: &8
|
86
|
+
- 83
|
87
|
+
HIGHESTMODSEQ: &9
|
88
|
+
- '8244'
|
89
|
+
LOGOUT-e76a09b7766d60a37ff9e1af527a143e:
|
90
|
+
- - :return
|
91
|
+
- !ruby/struct:Net::IMAP::TaggedResponse
|
92
|
+
tag: RUBY0003
|
93
|
+
name: OK
|
94
|
+
data: !ruby/struct:Net::IMAP::ResponseText
|
95
|
+
code:
|
96
|
+
text: 73 good day (Success)
|
97
|
+
raw_data: "RUBY0003 OK 73 good day (Success)\r\n"
|
98
|
+
- FLAGS: *2
|
99
|
+
OK: *3
|
100
|
+
PERMANENTFLAGS: *4
|
101
|
+
UIDVALIDITY: *5
|
102
|
+
EXISTS: *6
|
103
|
+
RECENT: *7
|
104
|
+
UIDNEXT: *8
|
105
|
+
HIGHESTMODSEQ: *9
|
106
|
+
BYE:
|
107
|
+
- !ruby/struct:Net::IMAP::ResponseText
|
108
|
+
code:
|
109
|
+
text: LOGOUT Requested
|