{"id":17736672,"url":"https://github.com/parro-it/imap-parsed-stream","last_synced_at":"2025-06-10T16:09:18.382Z","repository":{"id":36144723,"uuid":"40448731","full_name":"parro-it/imap-parsed-stream","owner":"parro-it","description":null,"archived":false,"fork":false,"pushed_at":"2015-08-11T17:16:54.000Z","size":124,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-05T07:48:01.431Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/parro-it.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-09T20:01:28.000Z","updated_at":"2019-07-09T11:52:16.000Z","dependencies_parsed_at":"2022-09-05T18:30:14.005Z","dependency_job_id":null,"html_url":"https://github.com/parro-it/imap-parsed-stream","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fimap-parsed-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fimap-parsed-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fimap-parsed-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fimap-parsed-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parro-it","download_url":"https://codeload.github.com/parro-it/imap-parsed-stream/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fimap-parsed-stream/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259106634,"owners_count":22805936,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-26T00:23:59.008Z","updated_at":"2025-06-10T16:09:18.354Z","avatar_url":"https://github.com/parro-it.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# imap-parsed-stream\n\nA simple objectMode through stream that parse rfc822\nformatted emails to objects, using [mailparser](https://github.com/andris9/mailparser)\n\n## Installation\n\n```bash\nnpm install --save imap-parsed-stream\n```\n\n## How it works\n\n## Usage\n\n```javascript\n  import imapParsedStream from 'imap-parsed-stream'\n  const parse = imapParsedStream();\n  mailsStream\n    .pipe(imapParsedStream)\n    .pipe(concat({encoding: 'object'}, result =\u003e {\n      // result is an array of parsed mail\n    }));\n\n```\n\n## Example object output\n\n```json\n[\n    {\n        \"headers\": {\n            \"date\": \"Sat, 28 Dec 2013 07:12:01 -0800 (PST)\",\n            \"subject\": \"Aggiungi una foto del profilo\",\n            \"from\": \"\\\"Google+\\\" \u003cnoreply-bbf11161@plus.google.com\u003e\",\n            \"to\": \"imaptest73@gmail.com\"\n        },\n        \"subject\": \"Aggiungi una foto del profilo\",\n        \"priority\": \"normal\",\n        \"from\": [\n            {\n                \"address\": \"noreply-bbf11161@plus.google.com\",\n                \"name\": \"Google+\"\n            }\n        ],\n        \"to\": [\n            {\n                \"address\": \"imaptest73@gmail.com\",\n                \"name\": \"\"\n            }\n        ],\n        \"date\": \"2013-12-28T15:12:01.000Z\"\n    },{\n        \"headers\": {\n            \"date\": \"Tue, 03 Dec 2013 14:05:25 -0800 (PST)\",\n            \"subject\": \"I post più popolari della settimana su Google+\",\n            \"from\": \"\\\"Google+\\\" \u003cnoreply-bbf11161@plus.google.com\u003e\",\n            \"to\": \"imaptest73@gmail.com\"\n        },\n        \"subject\": \"I post più popolari della settimana su Google+\",\n        \"priority\": \"normal\",\n        \"from\": [\n            {\n                \"address\": \"noreply-bbf11161@plus.google.com\",\n                \"name\": \"Google+\"\n            }\n        ],\n        \"to\": [\n            {\n                \"address\": \"imaptest73@gmail.com\",\n                \"name\": \"\"\n            }\n        ],\n        \"date\": \"2013-12-03T22:05:25.000Z\"\n    }\n]\n\n```\n\n## License\n\nThe MIT License (MIT)\nCopyright (c) 2015 Andrea Parodi\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparro-it%2Fimap-parsed-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparro-it%2Fimap-parsed-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparro-it%2Fimap-parsed-stream/lists"}