# list-mailcount

> Simple cli tool to list all emails, group them by their domain and display the cumulated sum.

Latest version **1.0.8** (published 2023-03-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install list-mailcount
pnpm add list-mailcount
yarn add list-mailcount
bun add list-mailcount
```

Provides the command `list-mailcount`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2023-03-19 |
| First published | 2023-03-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 17.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Pierre Dahmani |
| Maintainers | xddq |
| Keywords | list, mail, imap, count, unspam, email |

## Links

- npm: https://www.npmjs.com/package/list-mailcount
- Repository: https://github.com/xddq/list-mailcount
- Homepage: https://github.com/xddq/list-mailcount#readme
- Issues: https://github.com/xddq/list-mailcount/issues
- npm.io page: https://npm.io/package/list-mailcount

## Dependencies (2)

- [imap](https://npm.io/package/imap.md) 0.8.19
- [@sinclair/typebox](https://npm.io/package/@sinclair/typebox.md) 0.25.24

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.0.8 (latest) — 2023-03-19
- 1.0.7 — 2023-03-19
- 1.0.6 — 2023-03-17
- 1.0.5 — 2023-03-17
- 1.0.4 — 2023-03-15
- 1.0.3 — 2023-03-15
- 1.0.2 — 2023-03-15
- 1.0.1 — 2023-03-15
- 1.0.0 — 2023-03-15

## README

# list-mailcount

Simple cli tool to list all emails, group them by their domain and display the
cumulated sum.

## Use cases

- Migrating to another email account and getting a simple checklist of important
  services you should adapt to your new email.
- Simply know who sends you emails and how often. Does any service spam you? Do
  you want to get rid of some old accounts?

## Usage

- Install list-mailcount cli `npm i -g list-mailcount`
- Create a configuration file `imapconfig.json` containing the required
  information to read your mails.
- Run list-mailcount `list-mailcount` 🎉
- An example output could be

```
  Done fetching all messages for: me@example.com
  Resulting mail map (sorted by count): Map(16) {
  'linkedin.com' => 28,
  'gmail.com' => 17,
  'JOIN.com' => 13,
  '1password.com' => 12,
  'quastor.org' => 11,
  'amazon.de' => 5,
  'npmjs.com' => 5,
  'youtube.com' => 4,
  'audible.de' => 3,
  'udemy.com' => 2,
  'expo.io' => 2,
  'paypal.de' => 1,
  'indeed.com' => 1,
  'deutschebahn.com' => 1,
  'airbnb.com' => 1,
  'medium.com' => 1,
}
```

## imapconfig.json

- The config matches the one required for the
  [imap](https://www.npmjs.com/package/imap) package.
- It is suggested to use the default secure port 993 and using tls. An arbitrary
  example config would be:

```json
[
  {
    "user": "me@example.com",
    "password": "thisIsThePasswordOfMyEmail",
    "host": "imap.example.com",
    "port": 993,
    "tls": true
  }
]
```

- If you want to check the mails for multiple accounts, simply add another
  object to the array.

---
_Source: https://npm.io/package/list-mailcount · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
