File tree 2 files changed +15
-1
lines changed
test/net/imap/fixtures/response_parser
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -1339,7 +1339,8 @@ def header_fld_name
1339
1339
assert_no_lookahead
1340
1340
start = @pos
1341
1341
astring
1342
- @str [ start ...@pos - 1 ]
1342
+ end_pos = @token ? @pos - 1 : @pos
1343
+ @str [ start ...end_pos ]
1343
1344
end
1344
1345
1345
1346
# mailbox-data = "FLAGS" SP flag-list / "LIST" SP mailbox-list /
Original file line number Diff line number Diff line change 61
61
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\r\n\r\n "
62
62
raw_data : *test_fetch_msg_att_HEADER_FIELDS
63
63
64
+ test_fetch_msg_att_HEADER.FIELDS_quoted :
65
+ :response : &test_fetch_msg_att_HEADER_FIELDS_quoted
66
+ " * 10 FETCH (BODY[HEADER.FIELDS (\" Content-Type\" )] {95}\r\n Content-Type: multipart/alternative;\r\n
67
+ boundary=\" --==_mimepart_66cfb08b4f249_34306b61811e5\"\r\n\r\n )\r\n "
68
+ :expected : !ruby/struct:Net::IMAP::UntaggedResponse
69
+ name : FETCH
70
+ data : !ruby/struct:Net::IMAP::FetchData
71
+ seqno : 10
72
+ attr :
73
+ " BODY[HEADER.FIELDS (\" Content-Type\" )]" : "Content-Type: multipart/alternative;\r\n
74
+ boundary=\"--==_mimepart_66cfb08b4f249_34306b61811e5\"\r\n\r\n"
75
+ raw_data : *test_fetch_msg_att_HEADER_FIELDS_quoted
76
+
64
77
test_fetch_msg_att_HEADER.FIELDS.NOT :
65
78
:response : &test_fetch_msg_att_HEADER_FIELDS_NOT
66
79
" * 20368 FETCH (BODY[HEADER.FIELDS.NOT (Received DKIM-Signature List-Unsubscribe
You can’t perform that action at this time.
0 commit comments