GithubHelp home page GithubHelp logo

isabella232 / nioimapclient Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hubspot/nioimapclient

0.0 0.0 0.0 623 KB

High performance, async IMAP client implementation

License: Apache License 2.0

Java 100.00%

nioimapclient's Introduction

NioImapClient Build Status

High performance IMAP client in Java based on Netty

Maven Dependency

<dependency>
  <groupId>com.hubspot</groupId>
  <artifactId>NioImapClient</artifactId>
  <version>0.4</version>
</dependency>

Features

  • High performance, designed to handle many concurrent connections.
  • TLS supported out of the box
  • XOAUTH2 support
  • Support for most GMail IMAP extensions
  • Implemented RFCs
    • RFC 3501 (not all commands supported, but its easy to add new ones, PRs always welcome!)
    • RFC 2595 (TLS)
    • RFC 6154 (Special-Use list)

Limitations

  • Many commands are still not implemented (most command related to appending/updating messages are not implemented)
  • Pipelining of commands is not supported. It is hard to tell when the responses to these commands may be ambiguous, if you really need to execute concurrent commands we suggest simply opening multiple connections.
  • The client currently provides no facilities for tracking message sequence numbers, we rely more heavily on UIDs.
  • The server can send arbitrary untagged responses at any time, currently these get attached to the tagged response for the current command, this API needs improvement.

Future plans

(in no particular order)

  • RFC 5465 (NOTIFY)
  • RFC 2177 (IDLE)
  • RFC 2971 (ID)
  • Sequence number tracking
  • Full RFC 3501

Notes For Developers

  • NEVER execute blocking commands on an eventloop thread (i.e. CountDownLatch.await or Future.get)
    • Calls out to unknown functions (i.e. callbacks or event listeners) should always be done on isolated thread pools.
    • Slow but not necessarily blocking operations should also be avoided
  • Attempt to avoid doing long running tasks on event loop threads
  • Use new as sparingly as possible to avoid creating garbage:
    • Share objects when possible
    • Use netty bytebuf allocators when possible
    • Use netty recyclers for objects that can be recycled.

nioimapclient's People

Contributors

axiak avatar b3ross avatar brian5021 avatar cimmyv avatar hs-jenkins-bot avatar hubspot-dan avatar itscharlieb avatar jhaber avatar krishtha avatar mjball avatar stevie400 avatar szabowexler avatar takahiromollenkamp avatar visola avatar zklapow avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.