diff --git a/CHANGELOG.md b/CHANGELOG.md index 29d72d6..311f611 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## [Unreleased] - Add Email Logs API (list and get email sending logs with filters and cursor pagination) +- Add `list_each` to Sandbox Messages API for automatic pagination over all messages ## [2.9.0] - 2026-03-13 diff --git a/lib/mailtrap/email_logs_api.rb b/lib/mailtrap/email_logs_api.rb index 5bac679..9321db4 100644 --- a/lib/mailtrap/email_logs_api.rb +++ b/lib/mailtrap/email_logs_api.rb @@ -40,16 +40,19 @@ def list(filters: nil, search_after: nil) # @return [Enumerator] if no block given; otherwise the result of the block # @!macro api_errors def list_each(filters: nil, &block) - return to_enum(__method__, filters: filters) unless block - - search_after = nil - loop do - response = list(filters: filters, search_after: search_after) - response.messages.each { |message| block.call(message) } - break if response.next_page_cursor.nil? - - search_after = response.next_page_cursor + first_page = nil + fetch_first_page = -> { first_page ||= list(filters: filters) } + enum = Enumerator.new(-> { fetch_first_page.call.total_count }) do |yielder| + response = fetch_first_page.call + loop do + response.messages.each { |message| yielder << message } + break if response.next_page_cursor.nil? + + response = list(filters: filters, search_after: response.next_page_cursor) + end end + + block ? enum.each(&block) : enum end # Fetches a single email log message by ID. diff --git a/lib/mailtrap/sandbox_messages_api.rb b/lib/mailtrap/sandbox_messages_api.rb index 0eb12f5..210619f 100644 --- a/lib/mailtrap/sandbox_messages_api.rb +++ b/lib/mailtrap/sandbox_messages_api.rb @@ -51,6 +51,26 @@ def mark_as_read(message_id, is_read: true) base_update(message_id, { is_read: is_read }) end + # Iterates over all sandbox messages, automatically fetching each page + # using cursor-based pagination. Use this when you want to process messages + # without manually handling pagination. + # @param search [String] Search query string. Matches subject, to_email, and to_name. + # @yield [SandboxMessage] Gives each message from every page when a block is given. + # @return [Enumerator] if no block given; otherwise the result of the block + # @!macro api_errors + def list_each(search: nil, &block) + return to_enum(__method__, search: search) unless block + + last_id = nil + loop do + messages = list(search: search, last_id: last_id) + break if messages.empty? + + messages.each { |message| block.call(message) } + last_id = messages.last.id + end + end + # Lists all sandbox messages for the account, limited up to 30 at once # @param search [String] Search query string. Matches subject, to_email, and to_name. # @param last_id [Integer] If specified, a page of records before last_id is returned. diff --git a/spec/fixtures/vcr_cassettes/Mailtrap_SandboxMessagesAPI/_list_each/iterates_over_all_messages.yml b/spec/fixtures/vcr_cassettes/Mailtrap_SandboxMessagesAPI/_list_each/iterates_over_all_messages.yml new file mode 100644 index 0000000..fe28880 --- /dev/null +++ b/spec/fixtures/vcr_cassettes/Mailtrap_SandboxMessagesAPI/_list_each/iterates_over_all_messages.yml @@ -0,0 +1,440 @@ +--- +http_interactions: +- request: + method: get + uri: https://mailtrap.io/api/accounts/1111111/inboxes/4288340/messages + body: + encoding: US-ASCII + string: '' + headers: + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - mailtrap-ruby (https://github.com/mailtrap/mailtrap-ruby) + Host: + - mailtrap.io + Authorization: + - Bearer + Content-Type: + - application/json + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 17 Mar 2026 16:01:38 GMT + Content-Type: + - application/json; charset=utf-8 + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Server: + - cloudflare + Vary: + - Accept + - Accept-Encoding + X-Frame-Options: + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Permitted-Cross-Domain-Policies: + - none + Referrer-Policy: + - strict-origin-when-cross-origin + X-Mailtrap-Version: + - v2 + X-Ratelimit-Limit: + - '150' + X-Ratelimit-Remaining: + - '149' + Etag: + - W/"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa01" + Cache-Control: + - max-age=0, private, must-revalidate + X-Runtime: + - '0.022313' + Strict-Transport-Security: + - max-age=2592000; includeSubDomains; preload + Cf-Cache-Status: + - DYNAMIC + Alt-Svc: + - h3=":443"; ma=86400 + body: + encoding: ASCII-8BIT + string: '[{"id":5186534330,"inbox_id":4288340,"subject":"You are awesome!","sent_at":"2025-11-11T12:28:57.073Z","from_email":"from@example.com","from_name":"Magic + Elves","to_email":"to@example.com","to_name":"Mailtrap Sandbox","email_size":1704,"is_read":true,"created_at":"2025-11-11T12:28:57.074Z","updated_at":"2025-11-11T12:29:02.573Z","template_id":null,"template_variables":null,"html_body_size":938,"text_body_size":222,"human_size":"1.7 + KB","html_path":"/api/testing_message_parts/dummy_token_001/body.html","txt_path":"/api/testing_message_parts/dummy_token_001/body.txt","raw_path":"/api/testing_message_parts/dummy_token_001/body.raw","download_path":"/api/testing_message_parts/dummy_token_001/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_001/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.1","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":5186530485,"inbox_id":4288340,"subject":"You + are awesome!","sent_at":"2025-11-11T12:25:30.400Z","from_email":"from@example.com","from_name":"Magic + Elves","to_email":"to@example.com","to_name":"Mailtrap Sandbox","email_size":1646,"is_read":true,"created_at":"2025-11-11T12:25:30.400Z","updated_at":"2025-11-11T12:26:42.765Z","template_id":null,"template_variables":null,"html_body_size":938,"text_body_size":222,"human_size":"1.6 + KB","html_path":"/api/testing_message_parts/dummy_token_002/body.html","txt_path":"/api/testing_message_parts/dummy_token_002/body.txt","raw_path":"/api/testing_message_parts/dummy_token_002/body.raw","download_path":"/api/testing_message_parts/dummy_token_002/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_002/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.4","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":5184559966,"inbox_id":4288340,"subject":"Your + contacts have been imported","sent_at":"2025-11-10T12:19:59.678Z","from_email":"notifications@example.com","from_name":"Mailtrap","to_email":"user1@example.com","to_name":"","email_size":12210,"is_read":true,"created_at":"2025-11-10T12:19:59.682Z","updated_at":"2025-11-10T12:20:04.334Z","template_id":0,"template_variables":null,"html_body_size":10756,"text_body_size":345,"human_size":"12 + KB","html_path":"/api/testing_message_parts/dummy_token_003/body.html","txt_path":"/api/testing_message_parts/dummy_token_003/body.txt","raw_path":"/api/testing_message_parts/dummy_token_003/body.raw","download_path":"/api/testing_message_parts/dummy_token_003/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_003/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.6","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":5184534418,"inbox_id":4288340,"subject":"Batch + sending test","sent_at":"2025-11-10T12:01:36.834Z","from_email":"sender@example.com","from_name":"Mailtrap + Test","to_email":"user8@example.com","to_name":"User Eight","email_size":11961,"is_read":true,"created_at":"2025-11-10T12:01:36.878Z","updated_at":"2025-11-10T12:02:21.469Z","template_id":43496,"template_variables":{"user_name":"David + Doe"},"html_body_size":10426,"text_body_size":5,"human_size":"12 KB","html_path":"/api/testing_message_parts/dummy_token_004/body.html","txt_path":"/api/testing_message_parts/dummy_token_004/body.txt","raw_path":"/api/testing_message_parts/dummy_token_004/body.raw","download_path":"/api/testing_message_parts/dummy_token_004/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_004/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.11","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":5184534417,"inbox_id":4288340,"subject":"Batch + sending test","sent_at":"2025-11-10T12:01:36.819Z","from_email":"sender@example.com","from_name":"Mailtrap + Test","to_email":"user10@example.com","to_name":"User Ten","email_size":11958,"is_read":true,"created_at":"2025-11-10T12:01:36.838Z","updated_at":"2025-11-10T12:02:21.461Z","template_id":43496,"template_variables":{"user_name":"John + Doe"},"html_body_size":10425,"text_body_size":5,"human_size":"12 KB","html_path":"/api/testing_message_parts/dummy_token_005/body.html","txt_path":"/api/testing_message_parts/dummy_token_005/body.txt","raw_path":"/api/testing_message_parts/dummy_token_005/body.raw","download_path":"/api/testing_message_parts/dummy_token_005/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_005/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.11","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":5184534416,"inbox_id":4288340,"subject":"Batch + sending test","sent_at":"2025-11-10T12:01:36.825Z","from_email":"sender@example.com","from_name":"Mailtrap + Test","to_email":"user9@example.com","to_name":"User Nine","email_size":11958,"is_read":true,"created_at":"2025-11-10T12:01:36.837Z","updated_at":"2025-11-10T12:02:21.457Z","template_id":43496,"template_variables":{"user_name":"Jane + Doe"},"html_body_size":10425,"text_body_size":5,"human_size":"12 KB","html_path":"/api/testing_message_parts/dummy_token_006/body.html","txt_path":"/api/testing_message_parts/dummy_token_006/body.txt","raw_path":"/api/testing_message_parts/dummy_token_006/body.raw","download_path":"/api/testing_message_parts/dummy_token_006/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_006/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.7","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":5184528865,"inbox_id":4288340,"subject":"You + are awesome!","sent_at":"2025-11-10T12:00:12.710Z","from_email":"mailtrap@example.com","from_name":"Mailtrap + Test","to_email":"user11@example.com","to_name":"Test User","email_size":299,"is_read":true,"created_at":"2025-11-10T12:00:12.712Z","updated_at":"2025-11-10T12:00:37.185Z","template_id":0,"template_variables":null,"html_body_size":0,"text_body_size":46,"human_size":"299 + Bytes","html_path":"/api/testing_message_parts/dummy_token_007/body.html","txt_path":"/api/testing_message_parts/dummy_token_007/body.txt","raw_path":"/api/testing_message_parts/dummy_token_007/body.raw","download_path":"/api/testing_message_parts/dummy_token_007/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_007/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.3","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":5184453034,"inbox_id":4288340,"subject":"Your + contacts have been imported","sent_at":"2025-11-10T10:45:57.045Z","from_email":"notifications@example.com","from_name":"Mailtrap","to_email":"user1@example.com","to_name":"","email_size":12210,"is_read":true,"created_at":"2025-11-10T10:45:57.049Z","updated_at":"2025-11-10T12:00:27.126Z","template_id":0,"template_variables":null,"html_body_size":10756,"text_body_size":345,"human_size":"12 + KB","html_path":"/api/testing_message_parts/dummy_token_008/body.html","txt_path":"/api/testing_message_parts/dummy_token_008/body.txt","raw_path":"/api/testing_message_parts/dummy_token_008/body.raw","download_path":"/api/testing_message_parts/dummy_token_008/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_008/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.6","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":5184451987,"inbox_id":4288340,"subject":"Your + contacts have been imported","sent_at":"2025-11-10T10:44:31.029Z","from_email":"notifications@example.com","from_name":"Mailtrap","to_email":"user1@example.com","to_name":"","email_size":12210,"is_read":true,"created_at":"2025-11-10T10:44:31.032Z","updated_at":"2025-11-10T12:00:27.126Z","template_id":0,"template_variables":null,"html_body_size":10756,"text_body_size":345,"human_size":"12 + KB","html_path":"/api/testing_message_parts/dummy_token_009/body.html","txt_path":"/api/testing_message_parts/dummy_token_009/body.txt","raw_path":"/api/testing_message_parts/dummy_token_009/body.raw","download_path":"/api/testing_message_parts/dummy_token_009/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_009/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.10","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":5174405202,"inbox_id":4288340,"subject":"You + are awesome!","sent_at":"2025-11-03T17:07:20.090Z","from_email":"hello@example.com","from_name":"Mailtrap + Test","to_email":"to@example.com","to_name":"","email_size":282,"is_read":true,"created_at":"2025-11-03T17:07:20.092Z","updated_at":"2025-11-03T17:07:25.479Z","template_id":0,"template_variables":null,"html_body_size":0,"text_body_size":46,"human_size":"282 + Bytes","html_path":"/api/testing_message_parts/dummy_token_010/body.html","txt_path":"/api/testing_message_parts/dummy_token_010/body.txt","raw_path":"/api/testing_message_parts/dummy_token_010/body.raw","download_path":"/api/testing_message_parts/dummy_token_010/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_010/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.4","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":5174399702,"inbox_id":4288340,"subject":"You + are awesome!","sent_at":"2025-11-03T17:04:48.020Z","from_email":"hello@example.com","from_name":"Mailtrap + Test","to_email":"user3@example.com","to_name":"","email_size":296,"is_read":true,"created_at":"2025-11-03T17:04:48.022Z","updated_at":"2025-11-03T17:07:26.303Z","template_id":0,"template_variables":null,"html_body_size":0,"text_body_size":46,"human_size":"296 + Bytes","html_path":"/api/testing_message_parts/dummy_token_011/body.html","txt_path":"/api/testing_message_parts/dummy_token_011/body.txt","raw_path":"/api/testing_message_parts/dummy_token_011/body.raw","download_path":"/api/testing_message_parts/dummy_token_011/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_011/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.5","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":5174364181,"inbox_id":4288340,"subject":"You + are awesome!","sent_at":"2025-11-03T16:48:18.245Z","from_email":"from@example.com","from_name":"Magic + Elves","to_email":"to@example.com","to_name":"Mailtrap Sandbox","email_size":1563,"is_read":true,"created_at":"2025-11-03T16:48:18.244Z","updated_at":"2025-11-03T16:48:24.025Z","template_id":null,"template_variables":null,"html_body_size":856,"text_body_size":222,"human_size":"1.5 + KB","html_path":"/api/testing_message_parts/dummy_token_012/body.html","txt_path":"/api/testing_message_parts/dummy_token_012/body.txt","raw_path":"/api/testing_message_parts/dummy_token_012/body.raw","download_path":"/api/testing_message_parts/dummy_token_012/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_012/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.4","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":5068031393,"inbox_id":4288340,"subject":"You + are awesome!","sent_at":"2025-08-28T13:38:53.458Z","from_email":"from@example.com","from_name":"Magic + Elves","to_email":"to@example.com","to_name":"Mailtrap Sandbox","email_size":1646,"is_read":true,"created_at":"2025-08-28T13:38:53.458Z","updated_at":"2025-08-28T13:39:03.336Z","template_id":null,"template_variables":null,"html_body_size":938,"text_body_size":222,"human_size":"1.6 + KB","html_path":"/api/testing_message_parts/dummy_token_013/body.html","txt_path":"/api/testing_message_parts/dummy_token_013/body.txt","raw_path":"/api/testing_message_parts/dummy_token_013/body.raw","download_path":"/api/testing_message_parts/dummy_token_013/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_013/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.5","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":5068030739,"inbox_id":4288340,"subject":"You + are awesome!","sent_at":"2025-08-28T13:38:34.598Z","from_email":"from@example.com","from_name":"Magic + Elves","to_email":"to@example.com","to_name":"Mailtrap Sandbox","email_size":1646,"is_read":true,"created_at":"2025-08-28T13:38:34.597Z","updated_at":"2025-08-28T13:39:02.711Z","template_id":null,"template_variables":null,"html_body_size":938,"text_body_size":222,"human_size":"1.6 + KB","html_path":"/api/testing_message_parts/dummy_token_014/body.html","txt_path":"/api/testing_message_parts/dummy_token_014/body.txt","raw_path":"/api/testing_message_parts/dummy_token_014/body.raw","download_path":"/api/testing_message_parts/dummy_token_014/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_014/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.2","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":5055837657,"inbox_id":4288340,"subject":"Bar","sent_at":"2025-08-22T13:37:47.599Z","from_email":"account@example.com","from_name":"Mailtrap","to_email":"user5@example.com","to_name":"","email_size":11013,"is_read":true,"created_at":"2025-08-22T13:37:47.600Z","updated_at":"2025-08-22T13:38:02.632Z","template_id":0,"template_variables":null,"html_body_size":9566,"text_body_size":178,"human_size":"11 + KB","html_path":"/api/testing_message_parts/dummy_token_015/body.html","txt_path":"/api/testing_message_parts/dummy_token_015/body.txt","raw_path":"/api/testing_message_parts/dummy_token_015/body.raw","download_path":"/api/testing_message_parts/dummy_token_015/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_015/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.10","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":5055829904,"inbox_id":4288340,"subject":"Batch + sending test","sent_at":"2025-08-22T13:34:47.700Z","from_email":"account@example.com","from_name":"Mailtrap","to_email":"user5@example.com","to_name":"","email_size":12026,"is_read":true,"created_at":"2025-08-22T13:34:47.700Z","updated_at":"2025-08-22T13:35:24.770Z","template_id":43496,"template_variables":{"user_name":"John + Doe"},"html_body_size":10425,"text_body_size":5,"human_size":"12 KB","html_path":"/api/testing_message_parts/dummy_token_016/body.html","txt_path":"/api/testing_message_parts/dummy_token_016/body.txt","raw_path":"/api/testing_message_parts/dummy_token_016/body.raw","download_path":"/api/testing_message_parts/dummy_token_016/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_016/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.10","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":5050306309,"inbox_id":4288340,"subject":"Batch + sending test","sent_at":"2025-08-20T09:44:53.442Z","from_email":"account@example.com","from_name":"Mailtrap","to_email":"user5@example.com","to_name":"","email_size":12026,"is_read":true,"created_at":"2025-08-20T09:44:53.444Z","updated_at":"2025-08-20T09:45:04.741Z","template_id":43496,"template_variables":{"user_name":"John + Doe"},"html_body_size":10425,"text_body_size":5,"human_size":"12 KB","html_path":"/api/testing_message_parts/dummy_token_017/body.html","txt_path":"/api/testing_message_parts/dummy_token_017/body.txt","raw_path":"/api/testing_message_parts/dummy_token_017/body.raw","download_path":"/api/testing_message_parts/dummy_token_017/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_017/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.10","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":5050295553,"inbox_id":4288340,"subject":"Batch + sending test","sent_at":"2025-08-20T09:39:43.365Z","from_email":"account@example.com","from_name":"Mailtrap","to_email":"user4@example.com","to_name":"","email_size":12030,"is_read":true,"created_at":"2025-08-20T09:39:43.367Z","updated_at":"2025-08-20T09:39:54.141Z","template_id":43496,"template_variables":{"user_name":"John + Doe"},"html_body_size":10425,"text_body_size":5,"human_size":"12 KB","html_path":"/api/testing_message_parts/dummy_token_018/body.html","txt_path":"/api/testing_message_parts/dummy_token_018/body.txt","raw_path":"/api/testing_message_parts/dummy_token_018/body.raw","download_path":"/api/testing_message_parts/dummy_token_018/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_018/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.10","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":5027375525,"inbox_id":4288340,"subject":"Reset + password instructions for Mailtrap account","sent_at":"2025-08-06T13:41:35.199Z","from_email":"account@example.com","from_name":"Mailtrap","to_email":"user1@example.com","to_name":"","email_size":2034337,"is_read":true,"created_at":"2025-08-06T13:41:35.199Z","updated_at":"2025-08-06T13:42:49.817Z","template_id":0,"template_variables":null,"html_body_size":12450,"text_body_size":575,"human_size":"1.9 + MB","html_path":"/api/testing_message_parts/dummy_token_019/body.html","txt_path":"/api/testing_message_parts/dummy_token_019/body.txt","raw_path":"/api/testing_message_parts/dummy_token_019/body.raw","download_path":"/api/testing_message_parts/dummy_token_019/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_019/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.6","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":5027373486,"inbox_id":4288340,"subject":"Reset + password instructions for Mailtrap account","sent_at":"2025-08-06T13:40:21.848Z","from_email":"account@example.com","from_name":"Mailtrap","to_email":"user1@example.com","to_name":"","email_size":2034337,"is_read":true,"created_at":"2025-08-06T13:40:21.847Z","updated_at":"2025-08-06T13:40:30.090Z","template_id":0,"template_variables":null,"html_body_size":12450,"text_body_size":575,"human_size":"1.9 + MB","html_path":"/api/testing_message_parts/dummy_token_020/body.html","txt_path":"/api/testing_message_parts/dummy_token_020/body.txt","raw_path":"/api/testing_message_parts/dummy_token_020/body.raw","download_path":"/api/testing_message_parts/dummy_token_020/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_020/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.6","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":5027362557,"inbox_id":4288340,"subject":"Reset + password instructions for Mailtrap account","sent_at":"2025-08-06T13:34:44.586Z","from_email":"account@example.com","from_name":"Mailtrap","to_email":"user1@example.com","to_name":"","email_size":14264,"is_read":true,"created_at":"2025-08-06T13:34:44.586Z","updated_at":"2025-08-06T13:34:52.543Z","template_id":0,"template_variables":null,"html_body_size":12450,"text_body_size":575,"human_size":"14 + KB","html_path":"/api/testing_message_parts/dummy_token_021/body.html","txt_path":"/api/testing_message_parts/dummy_token_021/body.txt","raw_path":"/api/testing_message_parts/dummy_token_021/body.raw","download_path":"/api/testing_message_parts/dummy_token_021/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_021/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.6","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":5027359551,"inbox_id":4288340,"subject":"Verify + your identity to proceed with the login","sent_at":"2025-08-06T13:32:25.526Z","from_email":"notifications@example.com","from_name":"Mailtrap","to_email":"user2@example.com","to_name":"","email_size":11855,"is_read":true,"created_at":"2025-08-06T13:32:25.525Z","updated_at":"2025-08-06T13:32:55.175Z","template_id":0,"template_variables":null,"html_body_size":10128,"text_body_size":354,"human_size":"12 + KB","html_path":"/api/testing_message_parts/dummy_token_022/body.html","txt_path":"/api/testing_message_parts/dummy_token_022/body.txt","raw_path":"/api/testing_message_parts/dummy_token_022/body.raw","download_path":"/api/testing_message_parts/dummy_token_022/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_022/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.6","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":5027359549,"inbox_id":4288340,"subject":"Verify + your identity to proceed with the login","sent_at":"2025-08-06T13:32:25.412Z","from_email":"notifications@example.com","from_name":"Mailtrap","to_email":"user2@example.com","to_name":"","email_size":11855,"is_read":true,"created_at":"2025-08-06T13:32:25.411Z","updated_at":"2025-08-06T13:32:53.789Z","template_id":0,"template_variables":null,"html_body_size":10128,"text_body_size":354,"human_size":"12 + KB","html_path":"/api/testing_message_parts/dummy_token_023/body.html","txt_path":"/api/testing_message_parts/dummy_token_023/body.txt","raw_path":"/api/testing_message_parts/dummy_token_023/body.raw","download_path":"/api/testing_message_parts/dummy_token_023/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_023/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.10","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":5027359548,"inbox_id":4288340,"subject":"Verify + your identity to proceed with the login","sent_at":"2025-08-06T13:32:25.401Z","from_email":"notifications@example.com","from_name":"Mailtrap","to_email":"user1@example.com","to_name":"","email_size":11842,"is_read":true,"created_at":"2025-08-06T13:32:25.400Z","updated_at":"2025-08-06T13:32:52.533Z","template_id":0,"template_variables":null,"html_body_size":10125,"text_body_size":351,"human_size":"12 + KB","html_path":"/api/testing_message_parts/dummy_token_024/body.html","txt_path":"/api/testing_message_parts/dummy_token_024/body.txt","raw_path":"/api/testing_message_parts/dummy_token_024/body.raw","download_path":"/api/testing_message_parts/dummy_token_024/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_024/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.6","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":5027359546,"inbox_id":4288340,"subject":"Verify + your identity to proceed with the login","sent_at":"2025-08-06T13:32:25.316Z","from_email":"notifications@example.com","from_name":"Mailtrap","to_email":"user1@example.com","to_name":"","email_size":11842,"is_read":true,"created_at":"2025-08-06T13:32:25.315Z","updated_at":"2025-08-06T13:32:51.397Z","template_id":0,"template_variables":null,"html_body_size":10125,"text_body_size":351,"human_size":"12 + KB","html_path":"/api/testing_message_parts/dummy_token_025/body.html","txt_path":"/api/testing_message_parts/dummy_token_025/body.txt","raw_path":"/api/testing_message_parts/dummy_token_025/body.raw","download_path":"/api/testing_message_parts/dummy_token_025/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_025/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.10","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":5027359538,"inbox_id":4288340,"subject":"Verify + your identity to proceed with the login","sent_at":"2025-08-06T13:32:24.889Z","from_email":"notifications@example.com","from_name":"Mailtrap","to_email":"user2@example.com","to_name":"","email_size":11855,"is_read":true,"created_at":"2025-08-06T13:32:24.888Z","updated_at":"2025-08-06T13:32:48.359Z","template_id":0,"template_variables":null,"html_body_size":10128,"text_body_size":354,"human_size":"12 + KB","html_path":"/api/testing_message_parts/dummy_token_026/body.html","txt_path":"/api/testing_message_parts/dummy_token_026/body.txt","raw_path":"/api/testing_message_parts/dummy_token_026/body.raw","download_path":"/api/testing_message_parts/dummy_token_026/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_026/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.10","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":5012721783,"inbox_id":4288340,"subject":"Batch + sending test","sent_at":"2025-07-29T10:34:45.160Z","from_email":"sender@example.com","from_name":"Mailtrap + Test","to_email":"user8@example.com","to_name":"User Eight","email_size":11542,"is_read":true,"created_at":"2025-07-29T10:34:45.234Z","updated_at":"2025-07-29T10:34:52.942Z","template_id":43496,"template_variables":{"user_name":"David + Doe"},"html_body_size":10413,"text_body_size":0,"human_size":"11 KB","html_path":"/api/testing_message_parts/dummy_token_027/body.html","txt_path":"/api/testing_message_parts/dummy_token_027/body.txt","raw_path":"/api/testing_message_parts/dummy_token_027/body.raw","download_path":"/api/testing_message_parts/dummy_token_027/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_027/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.11","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":5012721781,"inbox_id":4288340,"subject":"Batch + sending test","sent_at":"2025-07-29T10:34:45.153Z","from_email":"sender@example.com","from_name":"Mailtrap + Test","to_email":"user10@example.com","to_name":"User Ten","email_size":11539,"is_read":true,"created_at":"2025-07-29T10:34:45.159Z","updated_at":"2025-07-29T10:34:51.834Z","template_id":43496,"template_variables":{"user_name":"John + Doe"},"html_body_size":10412,"text_body_size":0,"human_size":"11 KB","html_path":"/api/testing_message_parts/dummy_token_028/body.html","txt_path":"/api/testing_message_parts/dummy_token_028/body.txt","raw_path":"/api/testing_message_parts/dummy_token_028/body.raw","download_path":"/api/testing_message_parts/dummy_token_028/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_028/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.7","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":5012721780,"inbox_id":4288340,"subject":"Batch + sending test","sent_at":"2025-07-29T10:34:45.156Z","from_email":"sender@example.com","from_name":"Mailtrap + Test","to_email":"user9@example.com","to_name":"User Nine","email_size":11539,"is_read":true,"created_at":"2025-07-29T10:34:45.159Z","updated_at":"2025-07-29T10:34:49.454Z","template_id":43496,"template_variables":{"user_name":"Jane + Doe"},"html_body_size":10412,"text_body_size":0,"human_size":"11 KB","html_path":"/api/testing_message_parts/dummy_token_029/body.html","txt_path":"/api/testing_message_parts/dummy_token_029/body.txt","raw_path":"/api/testing_message_parts/dummy_token_029/body.raw","download_path":"/api/testing_message_parts/dummy_token_029/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_029/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.7","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":5012720802,"inbox_id":4288340,"subject":"Batch + sending test","sent_at":"2025-07-29T10:33:51.459Z","from_email":"sender@example.com","from_name":"Mailtrap + Test","to_email":"user8@example.com","to_name":"User Eight","email_size":11542,"is_read":true,"created_at":"2025-07-29T10:33:51.521Z","updated_at":"2025-07-29T10:34:08.240Z","template_id":43496,"template_variables":{"user_name":"David + Doe"},"html_body_size":10413,"text_body_size":0,"human_size":"11 KB","html_path":"/api/testing_message_parts/dummy_token_030/body.html","txt_path":"/api/testing_message_parts/dummy_token_030/body.txt","raw_path":"/api/testing_message_parts/dummy_token_030/body.raw","download_path":"/api/testing_message_parts/dummy_token_030/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_030/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.11","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}}]' + recorded_at: Tue, 17 Mar 2026 16:01:38 GMT +- request: + method: get + uri: https://mailtrap.io/api/accounts/1111111/inboxes/4288340/messages?last_id=5012720802 + body: + encoding: US-ASCII + string: '' + headers: + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - mailtrap-ruby (https://github.com/mailtrap/mailtrap-ruby) + Host: + - mailtrap.io + Authorization: + - Bearer + Content-Type: + - application/json + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 17 Mar 2026 16:01:38 GMT + Content-Type: + - application/json; charset=utf-8 + Transfer-Encoding: + - chunked + Connection: + - keep-alive + Server: + - cloudflare + Vary: + - Accept + - Accept-Encoding + X-Frame-Options: + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Permitted-Cross-Domain-Policies: + - none + Referrer-Policy: + - strict-origin-when-cross-origin + X-Mailtrap-Version: + - v2 + X-Ratelimit-Limit: + - '150' + X-Ratelimit-Remaining: + - '148' + Etag: + - W/"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa02" + Cache-Control: + - max-age=0, private, must-revalidate + X-Runtime: + - '0.022212' + Strict-Transport-Security: + - max-age=2592000; includeSubDomains; preload + Cf-Cache-Status: + - DYNAMIC + Alt-Svc: + - h3=":443"; ma=86400 + body: + encoding: ASCII-8BIT + string: '[{"id":5012720801,"inbox_id":4288340,"subject":"Batch sending test","sent_at":"2025-07-29T10:33:51.455Z","from_email":"sender@example.com","from_name":"Mailtrap + Test","to_email":"user9@example.com","to_name":"User Nine","email_size":11539,"is_read":true,"created_at":"2025-07-29T10:33:51.459Z","updated_at":"2025-07-29T10:34:06.841Z","template_id":43496,"template_variables":{"user_name":"Jane + Doe"},"html_body_size":10412,"text_body_size":0,"human_size":"11 KB","html_path":"/api/testing_message_parts/dummy_token_031/body.html","txt_path":"/api/testing_message_parts/dummy_token_031/body.txt","raw_path":"/api/testing_message_parts/dummy_token_031/body.raw","download_path":"/api/testing_message_parts/dummy_token_031/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_031/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.11","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":5012720800,"inbox_id":4288340,"subject":"Batch + sending test","sent_at":"2025-07-29T10:33:51.450Z","from_email":"sender@example.com","from_name":"Mailtrap + Test","to_email":"user10@example.com","to_name":"User Ten","email_size":11539,"is_read":true,"created_at":"2025-07-29T10:33:51.458Z","updated_at":"2025-07-29T10:34:04.304Z","template_id":43496,"template_variables":{"user_name":"John + Doe"},"html_body_size":10412,"text_body_size":0,"human_size":"11 KB","html_path":"/api/testing_message_parts/dummy_token_032/body.html","txt_path":"/api/testing_message_parts/dummy_token_032/body.txt","raw_path":"/api/testing_message_parts/dummy_token_032/body.raw","download_path":"/api/testing_message_parts/dummy_token_032/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_032/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.7","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":5012715766,"inbox_id":4288340,"subject":"You + are awesome!","sent_at":"2025-07-29T10:30:15.059Z","from_email":"sender@example.com","from_name":"Mailtrap + Test","to_email":"user8@example.com","to_name":"User Eight","email_size":1215,"is_read":true,"created_at":"2025-07-29T10:30:15.123Z","updated_at":"2025-07-29T10:30:55.143Z","template_id":0,"template_variables":null,"html_body_size":53,"text_body_size":46,"human_size":"1.2 + KB","html_path":"/api/testing_message_parts/dummy_token_033/body.html","txt_path":"/api/testing_message_parts/dummy_token_033/body.txt","raw_path":"/api/testing_message_parts/dummy_token_033/body.raw","download_path":"/api/testing_message_parts/dummy_token_033/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_033/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.7","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":5012715760,"inbox_id":4288340,"subject":"You + are awesome!","sent_at":"2025-07-29T10:30:15.059Z","from_email":"sender@example.com","from_name":"Mailtrap + Test","to_email":"user10@example.com","to_name":"User Ten","email_size":1213,"is_read":true,"created_at":"2025-07-29T10:30:15.058Z","updated_at":"2025-07-29T10:30:50.048Z","template_id":0,"template_variables":null,"html_body_size":53,"text_body_size":46,"human_size":"1.2 + KB","html_path":"/api/testing_message_parts/dummy_token_034/body.html","txt_path":"/api/testing_message_parts/dummy_token_034/body.txt","raw_path":"/api/testing_message_parts/dummy_token_034/body.raw","download_path":"/api/testing_message_parts/dummy_token_034/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_034/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.11","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":5012715759,"inbox_id":4288340,"subject":"You + are awesome!","sent_at":"2025-07-29T10:30:15.059Z","from_email":"sender@example.com","from_name":"Mailtrap + Test","to_email":"user9@example.com","to_name":"User Nine","email_size":1213,"is_read":true,"created_at":"2025-07-29T10:30:15.058Z","updated_at":"2025-07-29T10:30:25.325Z","template_id":0,"template_variables":null,"html_body_size":53,"text_body_size":46,"human_size":"1.2 + KB","html_path":"/api/testing_message_parts/dummy_token_035/body.html","txt_path":"/api/testing_message_parts/dummy_token_035/body.txt","raw_path":"/api/testing_message_parts/dummy_token_035/body.raw","download_path":"/api/testing_message_parts/dummy_token_035/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_035/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.7","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":4691904655,"inbox_id":4288340,"subject":"You + are awesome!","sent_at":"2025-01-31T17:41:16.218Z","from_email":"hello@example.com","from_name":"Mailtrap + Test","to_email":"user3@example.com","to_name":"","email_size":296,"is_read":true,"created_at":"2025-01-31T17:41:16.216Z","updated_at":"2025-06-19T13:20:44.817Z","template_id":0,"template_variables":null,"html_body_size":0,"text_body_size":46,"human_size":"296 + Bytes","html_path":"/api/testing_message_parts/dummy_token_036/body.html","txt_path":"/api/testing_message_parts/dummy_token_036/body.txt","raw_path":"/api/testing_message_parts/dummy_token_036/body.raw","download_path":"/api/testing_message_parts/dummy_token_036/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_036/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.1","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":4606930077,"inbox_id":4288340,"subject":"Your + first Mailtrap email - Quick start","sent_at":"2024-12-12T09:48:15.000Z","from_email":"invalid + sender2@example.com","from_name":"","to_email":"user4@example.com","to_name":"","email_size":18182,"is_read":true,"created_at":"2024-12-12T09:48:15.807Z","updated_at":"2025-02-18T14:32:27.316Z","template_id":null,"template_variables":null,"html_body_size":16359,"text_body_size":1136,"human_size":"18 + KB","html_path":"/api/testing_message_parts/dummy_token_037/body.html","txt_path":"/api/testing_message_parts/dummy_token_037/body.txt","raw_path":"/api/testing_message_parts/dummy_token_037/body.raw","download_path":"/api/testing_message_parts/dummy_token_037/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_037/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.9","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":4605885256,"inbox_id":4288340,"subject":"Confirm + your Mailtrap account transfer","sent_at":"2024-12-11T16:33:59.188Z","from_email":"account@example.com","from_name":"Mailtrap","to_email":"user6@example.com","to_name":"","email_size":17426,"is_read":true,"created_at":"2024-12-11T16:33:59.189Z","updated_at":"2025-02-18T14:32:27.316Z","template_id":0,"template_variables":null,"html_body_size":14900,"text_body_size":903,"human_size":"17 + KB","html_path":"/api/testing_message_parts/dummy_token_038/body.html","txt_path":"/api/testing_message_parts/dummy_token_038/body.txt","raw_path":"/api/testing_message_parts/dummy_token_038/body.raw","download_path":"/api/testing_message_parts/dummy_token_038/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_038/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.8","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":4605884455,"inbox_id":4288340,"subject":"Invitation + to join Mailtrap account ''user6@example.com''","sent_at":"2024-12-11T16:33:17.485Z","from_email":"account@example.com","from_name":"Mailtrap","to_email":"user7@example.com","to_name":"","email_size":17025,"is_read":true,"created_at":"2024-12-11T16:33:17.486Z","updated_at":"2025-02-18T14:32:27.316Z","template_id":0,"template_variables":null,"html_body_size":14788,"text_body_size":616,"human_size":"17 + KB","html_path":"/api/testing_message_parts/dummy_token_039/body.html","txt_path":"/api/testing_message_parts/dummy_token_039/body.txt","raw_path":"/api/testing_message_parts/dummy_token_039/body.raw","download_path":"/api/testing_message_parts/dummy_token_039/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_039/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.8","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":4605880718,"inbox_id":4288340,"subject":"Confirmation + instructions for Mailtrap account","sent_at":"2024-12-11T16:30:39.333Z","from_email":"account@example.com","from_name":"Mailtrap","to_email":"user7@example.com","to_name":"","email_size":17165,"is_read":true,"created_at":"2024-12-11T16:30:39.334Z","updated_at":"2025-02-18T14:32:27.316Z","template_id":0,"template_variables":null,"html_body_size":14957,"text_body_size":580,"human_size":"17 + KB","html_path":"/api/testing_message_parts/dummy_token_040/body.html","txt_path":"/api/testing_message_parts/dummy_token_040/body.txt","raw_path":"/api/testing_message_parts/dummy_token_040/body.raw","download_path":"/api/testing_message_parts/dummy_token_040/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_040/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.12","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":4605810792,"inbox_id":4288340,"subject":"Your + first Mailtrap email - Quick start","sent_at":"2024-12-11T15:35:30.221Z","from_email":"notifications@example.com","from_name":"Mailtrap","to_email":"user6@example.com","to_name":"","email_size":19276,"is_read":true,"created_at":"2024-12-11T15:35:30.221Z","updated_at":"2025-02-18T14:32:27.316Z","template_id":0,"template_variables":null,"html_body_size":16359,"text_body_size":1136,"human_size":"19 + KB","html_path":"/api/testing_message_parts/dummy_token_041/body.html","txt_path":"/api/testing_message_parts/dummy_token_041/body.txt","raw_path":"/api/testing_message_parts/dummy_token_041/body.raw","download_path":"/api/testing_message_parts/dummy_token_041/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_041/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.8","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":4605808012,"inbox_id":4288340,"subject":"Verify + your identity to proceed with the login","sent_at":"2024-12-11T15:33:37.318Z","from_email":"notifications@example.com","from_name":"Mailtrap","to_email":"user6@example.com","to_name":"","email_size":13895,"is_read":true,"created_at":"2024-12-11T15:33:37.319Z","updated_at":"2025-02-18T14:32:27.316Z","template_id":0,"template_variables":null,"html_body_size":12118,"text_body_size":342,"human_size":"14 + KB","html_path":"/api/testing_message_parts/dummy_token_042/body.html","txt_path":"/api/testing_message_parts/dummy_token_042/body.txt","raw_path":"/api/testing_message_parts/dummy_token_042/body.raw","download_path":"/api/testing_message_parts/dummy_token_042/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_042/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.12","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":4605807460,"inbox_id":4288340,"subject":"Confirmation + instructions for Mailtrap account","sent_at":"2024-12-11T15:33:15.805Z","from_email":"account@example.com","from_name":"Mailtrap","to_email":"user6@example.com","to_name":"","email_size":17165,"is_read":true,"created_at":"2024-12-11T15:33:15.805Z","updated_at":"2025-02-18T14:32:27.316Z","template_id":0,"template_variables":null,"html_body_size":14957,"text_body_size":580,"human_size":"17 + KB","html_path":"/api/testing_message_parts/dummy_token_043/body.html","txt_path":"/api/testing_message_parts/dummy_token_043/body.txt","raw_path":"/api/testing_message_parts/dummy_token_043/body.raw","download_path":"/api/testing_message_parts/dummy_token_043/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_043/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.12","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":4519525230,"inbox_id":4288340,"subject":"Confirmation + instructions for Mailtrap account","sent_at":"2024-10-21T12:56:52.781Z","from_email":"account@example.com","from_name":"Mailtrap","to_email":"user1@example.com","to_name":"","email_size":17097,"is_read":true,"created_at":"2024-10-21T12:56:52.781Z","updated_at":"2025-02-18T14:32:27.316Z","template_id":0,"template_variables":null,"html_body_size":14900,"text_body_size":573,"human_size":"17 + KB","html_path":"/api/testing_message_parts/dummy_token_044/body.html","txt_path":"/api/testing_message_parts/dummy_token_044/body.txt","raw_path":"/api/testing_message_parts/dummy_token_044/body.raw","download_path":"/api/testing_message_parts/dummy_token_044/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_044/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.12","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":4063286091,"inbox_id":4288340,"subject":"You + are awesome!","sent_at":"2024-02-28T22:08:45.383Z","from_email":"from@example.com","from_name":"Magic + Elves","to_email":"to@example.com","to_name":"Mailtrap Inbox","email_size":1640,"is_read":true,"created_at":"2024-02-28T22:08:45.383Z","updated_at":"2025-02-18T14:32:27.316Z","template_id":null,"template_variables":null,"html_body_size":936,"text_body_size":220,"human_size":"1.6 + KB","html_path":"/api/testing_message_parts/dummy_token_045/body.html","txt_path":"/api/testing_message_parts/dummy_token_045/body.txt","raw_path":"/api/testing_message_parts/dummy_token_045/body.raw","download_path":"/api/testing_message_parts/dummy_token_045/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_045/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.13","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":4060704068,"inbox_id":4288340,"subject":"You + are awesome!","sent_at":"2024-02-27T22:00:04.852Z","from_email":"from@example.com","from_name":"Magic + Elves","to_email":"to@example.com","to_name":"Mailtrap Inbox","email_size":1640,"is_read":true,"created_at":"2024-02-27T22:00:04.852Z","updated_at":"2025-02-18T14:32:27.316Z","template_id":null,"template_variables":null,"html_body_size":936,"text_body_size":220,"human_size":"1.6 + KB","html_path":"/api/testing_message_parts/dummy_token_046/body.html","txt_path":"/api/testing_message_parts/dummy_token_046/body.txt","raw_path":"/api/testing_message_parts/dummy_token_046/body.raw","download_path":"/api/testing_message_parts/dummy_token_046/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_046/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.13","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":4043886054,"inbox_id":4288340,"subject":"You + are awesome!","sent_at":"2024-02-19T13:57:02.956Z","from_email":"from@example.com","from_name":"Magic + Elves","to_email":"to@example.com","to_name":"Mailtrap Inbox","email_size":1640,"is_read":true,"created_at":"2024-02-19T13:57:02.957Z","updated_at":"2025-02-18T14:32:27.316Z","template_id":null,"template_variables":null,"html_body_size":936,"text_body_size":220,"human_size":"1.6 + KB","html_path":"/api/testing_message_parts/dummy_token_047/body.html","txt_path":"/api/testing_message_parts/dummy_token_047/body.txt","raw_path":"/api/testing_message_parts/dummy_token_047/body.raw","download_path":"/api/testing_message_parts/dummy_token_047/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_047/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.13","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":3902223253,"inbox_id":4288340,"subject":"You + are awesome!","sent_at":"2023-12-11T09:41:25.205Z","from_email":"from@example.com","from_name":"Magic + Elves","to_email":"user3@example.com","to_name":"Mailtrap Inbox","email_size":1654,"is_read":true,"created_at":"2023-12-11T09:41:25.206Z","updated_at":"2025-02-18T14:32:27.316Z","template_id":null,"template_variables":null,"html_body_size":936,"text_body_size":220,"human_size":"1.6 + KB","html_path":"/api/testing_message_parts/dummy_token_048/body.html","txt_path":"/api/testing_message_parts/dummy_token_048/body.txt","raw_path":"/api/testing_message_parts/dummy_token_048/body.raw","download_path":"/api/testing_message_parts/dummy_token_048/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_048/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.13","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":3587307403,"inbox_id":4288340,"subject":"You + are awesome!","sent_at":"2023-07-14T07:09:16.814Z","from_email":"from@example.com","from_name":"Magic + Elves","to_email":"to@example.com","to_name":"Mailtrap Inbox","email_size":1608,"is_read":true,"created_at":"2023-07-14T07:09:16.816Z","updated_at":"2025-02-18T14:32:27.316Z","template_id":null,"template_variables":null,"html_body_size":936,"text_body_size":220,"human_size":"1.6 + KB","html_path":"/api/testing_message_parts/dummy_token_049/body.html","txt_path":"/api/testing_message_parts/dummy_token_049/body.txt","raw_path":"/api/testing_message_parts/dummy_token_049/body.raw","download_path":"/api/testing_message_parts/dummy_token_049/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_049/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.13","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}},{"id":3499169101,"inbox_id":4288340,"subject":"You + are awesome!","sent_at":"2023-06-02T15:24:47.993Z","from_email":"from@example.com","from_name":"Magic + Elves","to_email":"to@example.com","to_name":"Mailtrap Inbox","email_size":1669,"is_read":true,"created_at":"2023-06-02T15:24:47.992Z","updated_at":"2025-02-18T14:32:27.316Z","template_id":null,"template_variables":null,"html_body_size":989,"text_body_size":228,"human_size":"1.6 + KB","html_path":"/api/testing_message_parts/dummy_token_050/body.html","txt_path":"/api/testing_message_parts/dummy_token_050/body.txt","raw_path":"/api/testing_message_parts/dummy_token_050/body.raw","download_path":"/api/testing_message_parts/dummy_token_050/body.eml","html_source_path":"/api/testing_message_parts/dummy_token_050/body.htmlsource","blacklists_report_info":{"result":"success","domain":"example.com","ip":"198.51.100.13","report":[{"name":"BACKSCATTERER","url":"http://www.backscatterer.org/index.php","in_black_list":false},{"name":"BARRACUDA","url":"http://barracudacentral.org/rbl","in_black_list":false},{"name":"Spamrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"Wormrbl + IMP-SPAM","url":"http://antispam.imp.ch/?lng=1","in_black_list":false},{"name":"LASHBACK","url":"http://blacklist.lashback.com/","in_black_list":false},{"name":"NIXSPAM","url":"https://www.heise.de/ix/NiX-Spam-DNSBL-and-blacklist-for-download-499637.html","in_black_list":false},{"name":"PSBL","url":"https://psbl.org/","in_black_list":false},{"name":"SORBS-SPAM","url":"http://www.sorbs.net/lookup.shtml","in_black_list":false},{"name":"SPAMCOP","url":"http://spamcop.net/bl.shtml","in_black_list":false},{"name":"TRUNCATE","url":"http://www.gbudb.com/truncate/index.jsp","in_black_list":false}]},"smtp_information":{"ok":false}}]' + recorded_at: Tue, 17 Mar 2026 16:01:38 GMT +- request: + method: get + uri: https://mailtrap.io/api/accounts/1111111/inboxes/4288340/messages?last_id=3499169101 + body: + encoding: US-ASCII + string: '' + headers: + Accept-Encoding: + - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 + Accept: + - "*/*" + User-Agent: + - mailtrap-ruby (https://github.com/mailtrap/mailtrap-ruby) + Host: + - mailtrap.io + Authorization: + - Bearer + Content-Type: + - application/json + response: + status: + code: 200 + message: OK + headers: + Date: + - Tue, 17 Mar 2026 16:01:39 GMT + Content-Type: + - application/json; charset=utf-8 + Content-Length: + - '2' + Connection: + - keep-alive + Server: + - cloudflare + X-Frame-Options: + - SAMEORIGIN + X-Xss-Protection: + - 1; mode=block + X-Content-Type-Options: + - nosniff + X-Download-Options: + - noopen + X-Permitted-Cross-Domain-Policies: + - none + Referrer-Policy: + - strict-origin-when-cross-origin + Vary: + - Accept + X-Mailtrap-Version: + - v2 + X-Ratelimit-Limit: + - '150' + X-Ratelimit-Remaining: + - '147' + Etag: + - W/"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa03" + Cache-Control: + - max-age=0, private, must-revalidate + X-Runtime: + - '0.020153' + Strict-Transport-Security: + - max-age=2592000; includeSubDomains; preload + Cf-Cache-Status: + - DYNAMIC + Alt-Svc: + - h3=":443"; ma=86400 + body: + encoding: UTF-8 + string: "[]" + recorded_at: Tue, 17 Mar 2026 16:01:39 GMT +recorded_with: VCR 6.4.0 diff --git a/spec/mailtrap/email_logs_api_spec.rb b/spec/mailtrap/email_logs_api_spec.rb index 9e701cc..bf5624b 100644 --- a/spec/mailtrap/email_logs_api_spec.rb +++ b/spec/mailtrap/email_logs_api_spec.rb @@ -122,11 +122,20 @@ expect(messages).to eq([first_page_message, second_page_message]) # rubocop:disable RSpec/SubjectStub - expect(email_logs).to have_received(:list).with(filters: filters, search_after: nil) + expect(email_logs).to have_received(:list).with(filters: filters) expect(email_logs).to have_received(:list).with(filters: filters, search_after: 'page1-msg') # rubocop:enable RSpec/SubjectStub end + it 'computes enumerator size lazily without an extra API call' do + enum = email_logs.list_each(filters: filters) + enum.next + expect(enum.size).to eq(2) + # rubocop:disable RSpec/SubjectStub + expect(email_logs).to have_received(:list).with(filters: filters).once + # rubocop:enable RSpec/SubjectStub + end + it 'yields each message from all pages when block given' do expect { |probe| email_logs.list_each(filters: filters, &probe) }.to yield_successive_args( first_page_message, @@ -134,7 +143,7 @@ ) # rubocop:disable RSpec/SubjectStub - expect(email_logs).to have_received(:list).with(filters: filters, search_after: nil) + expect(email_logs).to have_received(:list).with(filters: filters) expect(email_logs).to have_received(:list).with(filters: filters, search_after: 'page1-msg') # rubocop:enable RSpec/SubjectStub end diff --git a/spec/mailtrap/sandbox_messages_api_spec.rb b/spec/mailtrap/sandbox_messages_api_spec.rb index bd29f3b..c128ecb 100644 --- a/spec/mailtrap/sandbox_messages_api_spec.rb +++ b/spec/mailtrap/sandbox_messages_api_spec.rb @@ -135,6 +135,30 @@ end end + describe '#list_each' do + it 'returns enumerator without block' do + enum = sandbox_messages_api.list_each + expect(enum).to be_an(Enumerator) + end + + it 'iterates over all messages across multiple pages', + vcr: { cassette_name: 'Mailtrap_SandboxMessagesAPI/_list_each/iterates_over_all_messages' } do + messages = sandbox_messages_api.list_each.to_a + + expect(messages).to all(be_a(Mailtrap::SandboxMessage)) + expect(messages.size).to be >= 50 + end + + it 'yields each message when block given', + vcr: { cassette_name: 'Mailtrap_SandboxMessagesAPI/_list_each/iterates_over_all_messages' } do + messages = [] + sandbox_messages_api.list_each { |msg| messages << msg } + + expect(messages).to all(be_a(Mailtrap::SandboxMessage)) + expect(messages.size).to be >= 50 + end + end + describe '#forward_message' do subject(:forward_message) do sandbox_messages_api.forward_message(sandbox_message_id, email: 'example@railsware.com')