{"action":"created","issue":{"url":"https://api.github.com/repos/mscdex/node-imap/issues/624","repository_url":"https://api.github.com/repos/mscdex/node-imap","labels_url":"https://api.github.com/repos/mscdex/node-imap/issues/624/labels{/name}","comments_url":"https://api.github.com/repos/mscdex/node-imap/issues/624/comments","events_url":"https://api.github.com/repos/mscdex/node-imap/issues/624/events","html_url":"https://github.com/mscdex/node-imap/issues/624","id":241560766,"number":624,"title":"Don't download attachments","user":{"login":"johnbaird4085","id":27793518,"avatar_url":"https://avatars1.githubusercontent.com/u/27793518?v=3","gravatar_id":"","url":"https://api.github.com/users/johnbaird4085","html_url":"https://github.com/johnbaird4085","followers_url":"https://api.github.com/users/johnbaird4085/followers","following_url":"https://api.github.com/users/johnbaird4085/following{/other_user}","gists_url":"https://api.github.com/users/johnbaird4085/gists{/gist_id}","starred_url":"https://api.github.com/users/johnbaird4085/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnbaird4085/subscriptions","organizations_url":"https://api.github.com/users/johnbaird4085/orgs","repos_url":"https://api.github.com/users/johnbaird4085/repos","events_url":"https://api.github.com/users/johnbaird4085/events{/privacy}","received_events_url":"https://api.github.com/users/johnbaird4085/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-07-09T21:37:09Z","updated_at":"2017-07-09T21:45:07Z","closed_at":null,"body":"**What I want?**\r\n\r\n> Download the email but no attachments.\r\n\r\nMeaning images IN an email are fine, but attached files are not downloaded. If you use TEXT or '', it downloads the attachments which can take forever if its a 20MB attachment on a slow mail server.\r\n\r\n**My Solution**\r\n\r\n> Download headers(with struct), parse the struct and append the boundaries with placeholders for the parts to the raw header. Fetch the non-attachment parts+mime and insert into the string in the correct boundaries. The result is the raw email minus any attachments parts.\r\n\r\n**My Question**\r\n`I feel like this is more complicated than it needs to be. Am I missing a feature or IMAP query to solve this? Are there any problems with my solution? Reading the specs for IMAP there doesn't seem to be a filter just for non-attachment even though wouldn't it greatly reduce the load on IMAP servers?`"},"comment":{"url":"https://api.github.com/repos/mscdex/node-imap/issues/comments/313967529","html_url":"https://github.com/mscdex/node-imap/issues/624#issuecomment-313967529","issue_url":"https://api.github.com/repos/mscdex/node-imap/issues/624","id":313967529,"user":{"login":"johnbaird4085","id":27793518,"avatar_url":"https://avatars1.githubusercontent.com/u/27793518?v=3","gravatar_id":"","url":"https://api.github.com/users/johnbaird4085","html_url":"https://github.com/johnbaird4085","followers_url":"https://api.github.com/users/johnbaird4085/followers","following_url":"https://api.github.com/users/johnbaird4085/following{/other_user}","gists_url":"https://api.github.com/users/johnbaird4085/gists{/gist_id}","starred_url":"https://api.github.com/users/johnbaird4085/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnbaird4085/subscriptions","organizations_url":"https://api.github.com/users/johnbaird4085/orgs","repos_url":"https://api.github.com/users/johnbaird4085/repos","events_url":"https://api.github.com/users/johnbaird4085/events{/privacy}","received_events_url":"https://api.github.com/users/johnbaird4085/received_events","type":"User","site_admin":false},"created_at":"2017-07-09T21:45:07Z","updated_at":"2017-07-09T21:45:07Z","body":"Oh, I am using mailparser for the html. I didn't want to manually code parsing the parts for inline images, etc. It handles all that but can't do a single part. It needs the raw email basically. "}}
{"actor":{"display_login":"johnbaird4085"}}