{"action":"created","issue":{"url":"https://api.github.com/repos/nojb/ocaml-imap/issues/19","labels_url":"https://api.github.com/repos/nojb/ocaml-imap/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/nojb/ocaml-imap/issues/19/comments","events_url":"https://api.github.com/repos/nojb/ocaml-imap/issues/19/events","html_url":"https://github.com/nojb/ocaml-imap/issues/19","id":90295993,"number":19,"title":"Error when trying to fetch specific header.","user":{"login":"rgrinberg","id":139003,"avatar_url":"https://avatars.githubusercontent.com/u/139003?v=3","gravatar_id":"","url":"https://api.github.com/users/rgrinberg","html_url":"https://github.com/rgrinberg","followers_url":"https://api.github.com/users/rgrinberg/followers","following_url":"https://api.github.com/users/rgrinberg/following{/other_user}","gists_url":"https://api.github.com/users/rgrinberg/gists{/gist_id}","starred_url":"https://api.github.com/users/rgrinberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgrinberg/subscriptions","organizations_url":"https://api.github.com/users/rgrinberg/orgs","repos_url":"https://api.github.com/users/rgrinberg/repos","events_url":"https://api.github.com/users/rgrinberg/events{/privacy}","received_events_url":"https://api.github.com/users/rgrinberg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-06-23T05:56:05Z","updated_at":"2015-06-24T03:55:05Z","closed_at":"2015-06-24T03:43:41Z","body":"The relevant snippet from my code looks something like this:\r\n\r\n```ocaml\r\nlet fields = `Header_fields [\"Content-type\"] in\r\nlet header = `Body_section (`Peek, fields, None) in\r\nrun conn (`Cmd (Imap.fetch eset [`Rfc822_text; header]))\r\n```\r\n\r\nWhich ends up giving me the following error:\r\n\r\n```\r\nDecode error: Unexpected string \"BODY[HEADER.FIELDS\"\r\n```\r\n\r\nAm I using this incorrectly?\r\n\r\nI'm able to reproduce this on pretty much every gmail message I've tested it against but if you need a concrete example I can do that as well."},"comment":{"url":"https://api.github.com/repos/nojb/ocaml-imap/issues/comments/114720959","html_url":"https://github.com/nojb/ocaml-imap/issues/19#issuecomment-114720959","issue_url":"https://api.github.com/repos/nojb/ocaml-imap/issues/19","id":114720959,"user":{"login":"nojb","id":113560,"avatar_url":"https://avatars.githubusercontent.com/u/113560?v=3","gravatar_id":"","url":"https://api.github.com/users/nojb","html_url":"https://github.com/nojb","followers_url":"https://api.github.com/users/nojb/followers","following_url":"https://api.github.com/users/nojb/following{/other_user}","gists_url":"https://api.github.com/users/nojb/gists{/gist_id}","starred_url":"https://api.github.com/users/nojb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nojb/subscriptions","organizations_url":"https://api.github.com/users/nojb/orgs","repos_url":"https://api.github.com/users/nojb/repos","events_url":"https://api.github.com/users/nojb/events{/privacy}","received_events_url":"https://api.github.com/users/nojb/received_events","type":"User","site_admin":false},"created_at":"2015-06-24T03:55:05Z","updated_at":"2015-06-24T03:55:05Z","body":"`imap.1.1.1` should be available in `opam` shortly.  Thanks!"}}