{"id":19142254,"url":"https://github.com/eldoy/imapp","last_synced_at":"2026-06-04T16:31:10.652Z","repository":{"id":57159371,"uuid":"411840920","full_name":"eldoy/imapp","owner":"eldoy","description":"NodeJS functional async email IMAP client","archived":false,"fork":false,"pushed_at":"2021-09-30T13:40:24.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-03T23:35:57.075Z","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/eldoy.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":"2021-09-29T21:58:03.000Z","updated_at":"2022-06-04T21:51:53.000Z","dependencies_parsed_at":"2022-09-08T10:40:15.326Z","dependency_job_id":null,"html_url":"https://github.com/eldoy/imapp","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/eldoy%2Fimapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Fimapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Fimapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eldoy%2Fimapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eldoy","download_url":"https://codeload.github.com/eldoy/imapp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240223218,"owners_count":19767598,"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-11-09T07:26:33.336Z","updated_at":"2026-06-04T16:31:10.644Z","avatar_url":"https://github.com/eldoy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Imapp\n\nNodeJS functional async email IMAP client. Based on [node imap](https://github.com/mscdex/node-imap) and [mailparser.](https://github.com/nodemailer/mailparser)\n\n### Install\n```\nnpm i imapp\n```\n\n### Usage\n\n```js\nconst client = require('imapp')\n\nasync function run() {\n  const imap = client({\n    user: 'hello@5o.no',\n    password: 'tester',\n    host: 'secure.mailserver.com'\n  })\n\n  // Returns an email box object\n  const box = await imap.connect({ name: 'INBOX' })\n\n  {\n    name: 'INBOX',\n    flags: [\n      '\\\\Answered', '\\\\Flagged',\n      '\\\\Deleted',  '\\\\Seen',\n      '\\\\Draft',    '$NotJunk',\n      '$Junk',      'Junk',\n      'NotJunk'\n    ],\n    readOnly: true,\n    uidvalidity: 1508591807,\n    uidnext: 568,\n    permFlags: [],\n    keywords: [],\n    newKeywords: false,\n    persistentUIDs: true,\n    nomodseq: false,\n    messages: { total: 109, new: 0 },\n    highestmodseq: '1694'\n  }\n\n  // Returns an array of matching message UIDs\n  const result = await imap.search(['SEEN'])\n\n  [ 24,  25, 129, 130, 131, 132, 133, 137 ]\n\n  // Returns an array of parsed emails\n  const messages = await imap.fetch()\n\n  // with options\n  const messages = await imap.fetch({\n    query: '1:5',\n    bodies: 'HEADER.FIELDS (FROM TO SUBJECT DATE)'\n  })\n\n  // Close connection\n  imap.end()\n}\n\nrun()\n```\n\nMIT Licensed. Enjoy!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feldoy%2Fimapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feldoy%2Fimapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feldoy%2Fimapp/lists"}