npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

alfred-simple-email-fetcher

v0.2.2

Published

Fetch new emails in Alfred

Readme

✉️ alfred-simple-email-fetcher

Fetch new emails in Alfred

📌 Prerequisite

🔨 How to install

  1. Install package through npm
$ npm install --global alfred-simple-email-fetcher
  1. Run em > config and setup account settings

  2. Set the imap settings for the account you added. May you can refer to the documents

📍 Configuration

You can configure detailed settings by editing your config.json.

Example:

{
    "autoMarkSeen": false,
    "providerPrefix": true,
    "subtitle": "date-from",
    "maxEmailsCount": 50,
    "sorting": "provider-timedesc",
    "accounts": {
        "google": {
            "enabled": true,
            "icon": "google.png",
						"link": "https://mail.google.com/mail/",
            "imap": {
                "user": "[email protected]",
                "password": "account_password",
                "host": "imap.gmail.com",
                "port": 993,
                "tls": true,
                "authTimeout": 3000
            }
        },
        "naver": {
            "enabled": true,
            "icon": "naver.png",
						"link": "https://mail.naver.com/",
            "imap": {
                "user": "[email protected]",
                "password": "account_password",
                "host": "imap.naver.com",
                "port": 993,
                "tls": true,
                "authTimeout": 3000
            }
        }
    }
}

autoMarkSeen

Type: Boolean

Mark seen when fetch emails

providerPrefix

Type: Boolean

Append email provider name to email record.

subtitle

Type: String (enum)

date or from or date-from or from-date or account or default

default value shows account, date, from.

maxEmailsCount

Type: Number

Set the maximum number of emails to display.

sorting

Type: String (enum)

Sorts and returns search results.

  • subject (mail title)
  • provider-subject (sort provider first and subject)
  • timeDesc (recent email first)
  • timeAsec (old email first)
  • provider-timeAsec
  • provider-timeDesc

accounts

Type: Array of object

You can register multiple email accounts.

this workflow use worker_thread at each imap connection.

enabled

Type: Boolean

If this value is false, this account is ignored.

icon

Type: String

Show this icon on this account's emails.

icon files should be placed within icons folder.

imap

Type: Object

imap configuration object used by node-imap.

imap's default port value is 993.

you could find out host value in your account's imap setting page.

keepalive option will be set false in script, you can set other options in config file.

📗 How to use

emu

Fetch and show emails on UNSEEN state from registered accounts.

emau

Select one provider and fetch only the account's UNSEEN emails.

You can fetch emails which account's enabled is false by this method.

Open the config.json file through your editor.