{"id":17736650,"url":"https://github.com/parro-it/imap-stream","last_synced_at":"2025-06-11T12:38:19.226Z","repository":{"id":36139334,"uuid":"40443279","full_name":"parro-it/imap-stream","owner":"parro-it","description":"A readable stream of imap mails","archived":false,"fork":false,"pushed_at":"2015-08-13T19:29:42.000Z","size":124,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-04T07:51:55.874Z","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-09T16:44:43.000Z","updated_at":"2019-03-18T12:18:41.000Z","dependencies_parsed_at":"2022-09-05T11:01:27.041Z","dependency_job_id":null,"html_url":"https://github.com/parro-it/imap-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-stream","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fimap-stream/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fimap-stream/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fimap-stream/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parro-it","download_url":"https://codeload.github.com/parro-it/imap-stream/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fimap-stream/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259265972,"owners_count":22831287,"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:55.377Z","updated_at":"2025-06-11T12:38:19.196Z","avatar_url":"https://github.com/parro-it.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# imap-stream\n\nA readable stream of imap mails\n\n## Installation\n\n```bash\nnpm install --save imap-stream\n```\n\n## How it works\n\nIt connect to imap account, retrieve list of folders,\nand then read all mails in each folder, in turn.\n\nYou can opt to stream full messages or only headers.\n\nMessages are in rfc822 format, separated by `\\n\\n`\n\n## Usage\n\nThe module export a single function that accept an option,\nas specified above. It return a readable stream with\nstandard node semantic.\n\n### options:\n * user - username of the imap account.\n * password - password of the imap account.\n * host - imap server hostname\n * port - imap server port\n * tls - connection use tls\n * tlsOptions - tls advanced options\n\n\n```javascript\n  import imapStream from 'imap-stream';\n\n  const stream = imapStream({\n    user: process.env.MY_MAIL_ADDRESS,\n    password: process.env.MY_MAIL_PASSWORD,\n    host: 'imap.gmail.com',\n    port: 993,\n    tls: true,\n    tlsOptions: {\n      rejectUnauthorized: false\n    }\n  });\n\n  stream.pipe(concat({encoding: 'string'}, result =\u003e {\n    // result is a string with all account messages\n    // in rfc822 format\n  }));\n```\n\n## License\n\n\nThe MIT License (MIT)\nCopyright (c) 2015 Andrea Parodi\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparro-it%2Fimap-stream","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparro-it%2Fimap-stream","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparro-it%2Fimap-stream/lists"}