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 🙏

© 2024 – Pkg Stats / Ryan Hefner

imapper-storage-s3ses

v0.4.0

Published

S3 storage plugin for Imapper https://github.com/deitch/imapper based on imapper-storage-memory

Downloads

1

Readme

imapper-storage-s3ses

This module is an S3 storage plugin for imapper. It uses S3 buckets to store the incoming messages and the mailbox metadata. It uses the codebase from imapper-storage-memory and adds an S3 interface for message data access.

This module is not meant to be a complete S3 storage solution. It's meant to be used along with imapper-auth-s3 and SES S3 Lambda for use with Amazon Simple Email Service (SES). SES provides outbound email SMTP server, but lacks an inbound IMAP server. Incoming messages are stored in S3 buckets.

Usage

Install with npm install:

npm install imapper-storage-s3ses --save

Import the auth module and configure the S3 options:

var storageModule = require("imapper-storage-s3ses");
storageModule.setS3Options('S3BucketName', 'YourS3Bucket');

Then add the auth module to the imapper configuration options:

var options = {
  storage: storageModule,
    ...
};
var server = imapper(options);
server.listen(143);

See the imapper documentation for more details.

Configuration Options

There are four configuration parameters that can be set (or alternatively, hardcoded to change the defaults) using storageModule.setS3Options():

  • S3BucketName : The S3 bucket where the mailbox metadata is stored. No default value.
  • S3MboxKeySuffix : The account metadata file suffix. Default is '.mbox.json'.
  • S3MessageListKeySuffix : The account message index file suffix. Default is '.messagelist.json'.
  • S3MboxBucketSuffix : The suffix used for the account S3 bucket containing the messages. Default is '.ses.inbound'.

To change the default values, change the properties of the S3Handler.options object in /lib/storage.js.

Debug

imapper-storage-s3ses has a verbose mode where debugging information is sent to the console. This can be activated or deactivated by passing true or false to storageModule.setConsoleMessages().

Reference

See the documentation for imapper-storage-memory for additional information about the base module code.

License

MIT