{"action":"created","issue":{"url":"https://api.github.com/repos/gmailgem/gmail/issues/3","labels_url":"https://api.github.com/repos/gmailgem/gmail/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/gmailgem/gmail/issues/3/comments","events_url":"https://api.github.com/repos/gmailgem/gmail/issues/3/events","html_url":"https://github.com/gmailgem/gmail/issues/3","id":54668756,"number":3,"title":"Envelope (only header)","user":{"login":"bootstraponline","id":1173057,"avatar_url":"https://avatars.githubusercontent.com/u/1173057?v=3","gravatar_id":"","url":"https://api.github.com/users/bootstraponline","html_url":"https://github.com/bootstraponline","followers_url":"https://api.github.com/users/bootstraponline/followers","following_url":"https://api.github.com/users/bootstraponline/following{/other_user}","gists_url":"https://api.github.com/users/bootstraponline/gists{/gist_id}","starred_url":"https://api.github.com/users/bootstraponline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bootstraponline/subscriptions","organizations_url":"https://api.github.com/users/bootstraponline/orgs","repos_url":"https://api.github.com/users/bootstraponline/repos","events_url":"https://api.github.com/users/bootstraponline/events{/privacy}","received_events_url":"https://api.github.com/users/bootstraponline/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-17T17:41:24Z","updated_at":"2015-01-17T17:41:24Z","closed_at":null,"body":"_From @rkumar on October 27, 2010 13:37_\n\nI am writing an ncurses client using gmail gem. Some issues:\r\n1. When i fetch :all or :unread, the unread status in gmail is changed to read. How  to avoid this, since i have only displayed subject to user.\r\n\r\nAfter searching I found that fetching ENVELOPE lets me see headers without resetting UNREAD status. Also, this is fast, compared to normal method. But gmail gem does not support ENVELOPE.\r\n \r\n    imap.fetch(message_id, \"ENVELOPE\")[0].attr[\"ENVELOPE\"] \r\n\r\nI would like fetch body only when user clicks on mail, and only then should mail be changed to READ on gmail.\r\n\r\nLook forward to your comments.\r\n\r\n2. If i retrieve :all, is there any flag to check for UNREAD. Currently i have to retrieve them in 2 loops, so i can show user which are UNSEEN.\n\n_Copied from original issue: nu7hatch/gmail#3_"},"comment":{"url":"https://api.github.com/repos/gmailgem/gmail/issues/comments/70376017","html_url":"https://github.com/gmailgem/gmail/issues/3#issuecomment-70376017","issue_url":"https://api.github.com/repos/gmailgem/gmail/issues/3","id":70376017,"user":{"login":"bootstraponline","id":1173057,"avatar_url":"https://avatars.githubusercontent.com/u/1173057?v=3","gravatar_id":"","url":"https://api.github.com/users/bootstraponline","html_url":"https://github.com/bootstraponline","followers_url":"https://api.github.com/users/bootstraponline/followers","following_url":"https://api.github.com/users/bootstraponline/following{/other_user}","gists_url":"https://api.github.com/users/bootstraponline/gists{/gist_id}","starred_url":"https://api.github.com/users/bootstraponline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bootstraponline/subscriptions","organizations_url":"https://api.github.com/users/bootstraponline/orgs","repos_url":"https://api.github.com/users/bootstraponline/repos","events_url":"https://api.github.com/users/bootstraponline/events{/privacy}","received_events_url":"https://api.github.com/users/bootstraponline/received_events","type":"User","site_admin":false},"created_at":"2015-01-17T17:41:24Z","updated_at":"2015-01-17T17:41:24Z","body":"_From @nu7hatch on October 27, 2010 23:21_\n\nHi, i've just released 0.3.2 version. Now emails are showing properties from envelope first (eg. subject, date, from, to...), and later from mail/message instance (eg. body). In sum:\r\n\r\n    email.subject\r\n    email.date\r\n    email.from\r\n    # stilll marked as unread...\r\n    email.body\r\n    # now it is marked as read\r\n\r\nAbout UNREAD/UNSEEN... i've tried to add an alias for it, but it doesn't work. I'll try to figure out something else for that.  \r\n\r\nCheers and thanks for help. "}}