@cull/imap
Version:
A simple, configurable javascript interface exposing mailboxes and messages via IMAP.
31 lines (30 loc) • 777 B
TypeScript
import { Status } from './response';
/**
* Response Code
* @link https://tools.ietf.org/html/rfc3501#section-7.1
*/
export declare enum Code {
ALERT = "ALERT",
BADCHARSET = "BADCHARSET",
CAPABILITY = "CAPABILITY",
PARSE = "PARSE",
PERMANENTFLAGS = "PERMANENTFLAGS",
READONLY = "READ-ONLY",
READWRITE = "READ-WRITE",
TRYCREATE = "TRYCREATE",
UIDNEXT = "UIDNEXT",
UIDVALIDITY = "UIDVALIDITY",
UNSEEN = "UNSEEN"
}
/**
* Response Code and associated data
* @link https://tools.ietf.org/html/rfc3501#section-7.1
*/
export declare class ResponseCode {
status: Status;
code: string;
data?: any;
text?: string;
constructor(status: Status, code: string, data?: string, text?: string);
}
export default ResponseCode;