{"version":"1.0","type":"rich","title":"Sample script for the mail gem.","description":"This Ruby script demonstrates how to retrieve and display email metadata from a Gmail IMAP server. It uses the `mail` gem with the `Mail.defaults` retriever method, configuring IMAP options like server address, port, and SSL. The `Mail.find` API fetches the last 11 emails in descending order, then prints each message’s subject and sender. Command-line parsing via `optparse` allows the user to specify server, username, and password. The output is plain text, showing a simple list of email subjects and addresses.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-1132540?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}