com.antiaction.mayhem.mail.imapd
Class Flag

java.lang.Object
  extended by com.antiaction.mayhem.mail.imapd.Flag

public class Flag
extends java.lang.Object

IMAP flags parser for uid fetch, store.

Version:
1.00
Author:
Nicholas Clarke

Field Summary
static int ACTION_FLAGS
           
static int ACTION_FLAGS_SILENT
           
static int ACTION_MINUS_FLAGS
           
static int ACTION_MINUS_FLAGS_SILENT
           
static int ACTION_PLUS_FLAGS
           
static int ACTION_PLUS_FLAGS_SILENT
           
static int ALL
           
static int BODY
           
static int BODY_PEEK
           
static int BODYSTRUCTURE
           
 int cmd
           
static int ENVELOPE
           
static int FAST
           
 java.util.Set fieldnames
           
static int FLAG_ANSWERED
           
static int FLAG_DELETED
           
static int FLAG_DRAFT
           
static int FLAG_FLAGGED
           
static int FLAG_RECENT
           
static int FLAG_SEEN
           
static int FLAGS
           
static int FULL
           
static int HEADER
           
static int HEADER_FIELDS
           
static int HEADER_FIELDS_NOT
           
static int INTERNALDATE
           
 int length
           
static int MIME
           
 int offset
           
static int RFC822
           
static int RFC822_HEADER
           
static int RFC822_SIZE
           
static int RFC822_TEXT
           
 int section
           
static int TEXT
           
static int UID
           
 
Constructor Summary
Flag(int cmd)
           
 
Method Summary
static java.util.List parseFetchFlags(java.lang.String flags)
           
static java.util.Set parseStatusItems(java.lang.String items)
           
static int parseStoreAction(java.lang.String action)
           
static java.util.Set parseStoreFlags(java.lang.String flags)
           
static int skipAlphaNumeric(java.lang.String str, int idx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cmd

public int cmd

section

public int section

fieldnames

public java.util.Set fieldnames

offset

public int offset

length

public int length

UID

public static final int UID
See Also:
Constant Field Values

RFC822_SIZE

public static final int RFC822_SIZE
See Also:
Constant Field Values

INTERNALDATE

public static final int INTERNALDATE
See Also:
Constant Field Values

FLAGS

public static final int FLAGS
See Also:
Constant Field Values

RFC822_HEADER

public static final int RFC822_HEADER
See Also:
Constant Field Values

RFC822_TEXT

public static final int RFC822_TEXT
See Also:
Constant Field Values

RFC822

public static final int RFC822
See Also:
Constant Field Values

ENVELOPE

public static final int ENVELOPE
See Also:
Constant Field Values

BODYSTRUCTURE

public static final int BODYSTRUCTURE
See Also:
Constant Field Values

BODY

public static final int BODY
See Also:
Constant Field Values

BODY_PEEK

public static final int BODY_PEEK
See Also:
Constant Field Values

ALL

public static final int ALL
See Also:
Constant Field Values

FAST

public static final int FAST
See Also:
Constant Field Values

FULL

public static final int FULL
See Also:
Constant Field Values

HEADER

public static final int HEADER
See Also:
Constant Field Values

HEADER_FIELDS

public static final int HEADER_FIELDS
See Also:
Constant Field Values

HEADER_FIELDS_NOT

public static final int HEADER_FIELDS_NOT
See Also:
Constant Field Values

MIME

public static final int MIME
See Also:
Constant Field Values

TEXT

public static final int TEXT
See Also:
Constant Field Values

ACTION_FLAGS

public static final int ACTION_FLAGS
See Also:
Constant Field Values

ACTION_FLAGS_SILENT

public static final int ACTION_FLAGS_SILENT
See Also:
Constant Field Values

ACTION_PLUS_FLAGS

public static final int ACTION_PLUS_FLAGS
See Also:
Constant Field Values

ACTION_PLUS_FLAGS_SILENT

public static final int ACTION_PLUS_FLAGS_SILENT
See Also:
Constant Field Values

ACTION_MINUS_FLAGS

public static final int ACTION_MINUS_FLAGS
See Also:
Constant Field Values

ACTION_MINUS_FLAGS_SILENT

public static final int ACTION_MINUS_FLAGS_SILENT
See Also:
Constant Field Values

FLAG_DRAFT

public static final int FLAG_DRAFT
See Also:
Constant Field Values

FLAG_ANSWERED

public static final int FLAG_ANSWERED
See Also:
Constant Field Values

FLAG_FLAGGED

public static final int FLAG_FLAGGED
See Also:
Constant Field Values

FLAG_DELETED

public static final int FLAG_DELETED
See Also:
Constant Field Values

FLAG_SEEN

public static final int FLAG_SEEN
See Also:
Constant Field Values

FLAG_RECENT

public static final int FLAG_RECENT
See Also:
Constant Field Values
Constructor Detail

Flag

public Flag(int cmd)
Method Detail

parseFetchFlags

public static java.util.List parseFetchFlags(java.lang.String flags)

skipAlphaNumeric

public static int skipAlphaNumeric(java.lang.String str,
                                   int idx)

parseStoreAction

public static int parseStoreAction(java.lang.String action)

parseStoreFlags

public static java.util.Set parseStoreFlags(java.lang.String flags)

parseStatusItems

public static java.util.Set parseStatusItems(java.lang.String items)


Copyright © 2001-2004 Nicholas Clarke. All Rights Reserved.