Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Typedefs | Enumerations
nsPop3Protocol.h File Reference
#include "nsIStreamListener.h"
#include "nsIOutputStream.h"
#include "nsIInputStream.h"
#include "nsIPop3URL.h"
#include "nsIPop3Sink.h"
#include "nsMsgLineBuffer.h"
#include "nsMsgProtocol.h"
#include "nsIPop3Protocol.h"
#include "MailNewsTypes.h"
#include "nsLocalStringBundle.h"
#include "nsIMsgStatusFeedback.h"
#include "nsIMsgFolder.h"
#include "nsIAuthModule.h"
#include "nsITimer.h"
#include "prerror.h"
#include "plhash.h"
#include "nsCOMPtr.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Pop3UidlEntry
struct  Pop3UidlHost
struct  Pop3MsgInfo
struct  _Pop3ConData
class  nsPop3Protocol

Defines

#define MK_OUT_OF_MEMORY   -207
#define MK_POP3_OUT_OF_DISK_SPACE   -321
#define MK_POP3_PASSWORD_UNDEFINED   -313
#define XP_NO_ANSWER   14401
#define XP_THE_PREVIOUSLY_ENTERED_PASSWORD_IS_INVALID_ETC   14405
#define XP_PASSWORD_FOR_POP3_USER   14590
#define OUTPUT_BUFFER_SIZE   8192
#define POP3_HAS_AUTH_ANY   0x00001C00
#define POP3_HAS_AUTH_ANY_SEC   0x0011E000
#define KEEP   'k' /* If we want to keep this item on server. */
#define DELETE_CHAR   'd' /* If we want to delete this item. */
#define TOO_BIG   'b' /* item left on server because it was too big */
#define FETCH_BODY   'f' /* Fetch full body of a partial msg */
#define POP3_PAUSE_FOR_READ   0x00000001 /* should we pause for the next read */
#define POP3_PASSWORD_FAILED   0x00000002
#define POP3_STOPLOGIN   0x00000004 /* error loging in, so stop here */
#define POP3_AUTH_FAILURE   0x00000008 /* extended code said authentication failed */

Typedefs

typedef struct Pop3UidlEntry Pop3UidlEntry
typedef struct Pop3UidlHost Pop3UidlHost
typedef struct Pop3MsgInfo Pop3MsgInfo
typedef struct _Pop3ConData Pop3ConData

Enumerations

enum  Pop3CapabilityEnum {
  POP3_CAPABILITY_UNDEFINED = 0x00000000, POP3_HAS_XSENDER = 0x00000001, POP3_GURL_UNDEFINED = 0x00000002, POP3_HAS_GURL = 0x00000004,
  POP3_UIDL_UNDEFINED = 0x00000008, POP3_HAS_UIDL = 0x00000010, POP3_XTND_XLST_UNDEFINED = 0x00000020, POP3_HAS_XTND_XLST = 0x00000040,
  POP3_TOP_UNDEFINED = 0x00000080, POP3_HAS_TOP = 0x00000100, POP3_AUTH_MECH_UNDEFINED = 0x00000200, POP3_HAS_AUTH_USER = 0x00000400,
  POP3_HAS_AUTH_LOGIN = 0x00000800, POP3_HAS_AUTH_PLAIN = 0x00001000, POP3_HAS_AUTH_CRAM_MD5 = 0x00002000, POP3_HAS_AUTH_APOP = 0x00004000,
  POP3_HAS_AUTH_NTLM = 0x00008000, POP3_HAS_AUTH_MSN = 0x00010000, POP3_HAS_RESP_CODES = 0x00020000, POP3_HAS_AUTH_RESP_CODE = 0x00040000,
  POP3_HAS_STLS = 0x00080000, POP3_HAS_AUTH_GSSAPI = 0x00100000
}
enum  Pop3StatesEnum {
  POP3_READ_PASSWORD, POP3_START_CONNECT, POP3_FINISH_CONNECT, POP3_WAIT_FOR_RESPONSE,
  POP3_WAIT_FOR_START_OF_CONNECTION_RESPONSE, POP3_SEND_USERNAME, POP3_SEND_PASSWORD, POP3_SEND_STAT,
  POP3_GET_STAT, POP3_SEND_LIST, POP3_GET_LIST, POP3_SEND_UIDL_LIST,
  POP3_GET_UIDL_LIST, POP3_SEND_XTND_XLST_MSGID, POP3_GET_XTND_XLST_MSGID, POP3_GET_MSG,
  POP3_SEND_TOP, POP3_TOP_RESPONSE, POP3_SEND_RETR, POP3_RETR_RESPONSE,
  POP3_SEND_DELE, POP3_DELE_RESPONSE, POP3_SEND_QUIT, POP3_DONE,
  POP3_ERROR_DONE, POP3_FREE, POP3_START_USE_TOP_FOR_FAKE_UIDL, POP3_SEND_FAKE_UIDL_TOP,
  POP3_GET_FAKE_UIDL_TOP, POP3_SEND_AUTH, POP3_AUTH_RESPONSE, POP3_SEND_CAPA,
  POP3_CAPA_RESPONSE, POP3_PROCESS_AUTH, POP3_AUTH_FALLBACK, POP3_AUTH_LOGIN,
  POP3_AUTH_LOGIN_RESPONSE, POP3_AUTH_NTLM, POP3_AUTH_NTLM_RESPONSE, POP3_SEND_XSENDER,
  POP3_XSENDER_RESPONSE, POP3_SEND_GURL, POP3_GURL_RESPONSE, POP3_QUIT_RESPONSE,
  POP3_INTERRUPTED, POP3_TLS_RESPONSE, POP3_AUTH_GSSAPI, POP3_AUTH_GSSAPI_FIRST,
  POP3_AUTH_GSSAPI_STEP
}

Class Documentation

struct Pop3UidlEntry

Definition at line 188 of file nsPop3Protocol.h.

Class Members
PRInt32 dateReceived
char status
char * uidl
struct Pop3UidlHost

Definition at line 194 of file nsPop3Protocol.h.

Collaboration diagram for Pop3UidlHost:
Class Members
PLHashTable * hash
char * host
struct Pop3UidlHost * next
Pop3UidlEntry * uidlEntries
char * user
struct Pop3MsgInfo

Definition at line 202 of file nsPop3Protocol.h.

Class Members
PRInt32 msgnum
PRInt32 size
char * uidl
struct _Pop3ConData

Definition at line 208 of file nsPop3Protocol.h.

Collaboration diagram for _Pop3ConData:
Class Members
PRBool assumed_end
nsMsgBiffState biffstate
PRUint32 capability_flags
PRBool command_succeeded
PRInt32 cur_msg_size
PRInt32 current_msg_to_top
PRBool delete_server_message_during_top_traversal
PRBool dot_fix
PRInt32 first_msg
PRBool found_new_message_boundary
PRBool get_url
PRBool graph_progress_bytes_p
PRBool headers_only
PRInt32 last_accessed_msg
PRBool leave_on_server
PRBool list_done
PRInt32 logonFailureCount
void * msg_closure
PRBool msg_del_started
Pop3MsgInfo * msg_info
PLHashTable * newuidl
Pop3StatesEnum next_state
Pop3StatesEnum next_state_after_response
PRInt32 number_of_messages
PRInt32 number_of_messages_not_seen_before
PRUint32 obuffer_fp
PRUint32 obuffer_size
PRBool only_check_for_new_mail
char * only_uidl
PRInt32 parsed_bytes
PRBool pause_for_read
PRInt32 pop3_size
PRInt32 real_new_counter
PRInt32 really_new_messages
PRBool seenFromHeader
PRInt32 size_limit
PRBool truncating_cur_msg
Pop3UidlHost * uidlinfo

Define Documentation

#define DELETE_CHAR   'd' /* If we want to delete this item. */

Definition at line 184 of file nsPop3Protocol.h.

#define FETCH_BODY   'f' /* Fetch full body of a partial msg */

Definition at line 186 of file nsPop3Protocol.h.

#define KEEP   'k' /* If we want to keep this item on server. */

Definition at line 183 of file nsPop3Protocol.h.

Definition at line 78 of file nsPop3Protocol.h.

Definition at line 79 of file nsPop3Protocol.h.

Definition at line 80 of file nsPop3Protocol.h.

Definition at line 85 of file nsPop3Protocol.h.

#define POP3_AUTH_FAILURE   0x00000008 /* extended code said authentication failed */

Definition at line 289 of file nsPop3Protocol.h.

#define POP3_HAS_AUTH_ANY   0x00001C00

Definition at line 117 of file nsPop3Protocol.h.

#define POP3_HAS_AUTH_ANY_SEC   0x0011E000

Definition at line 118 of file nsPop3Protocol.h.

#define POP3_PASSWORD_FAILED   0x00000002

Definition at line 287 of file nsPop3Protocol.h.

#define POP3_PAUSE_FOR_READ   0x00000001 /* should we pause for the next read */

Definition at line 286 of file nsPop3Protocol.h.

#define POP3_STOPLOGIN   0x00000004 /* error loging in, so stop here */

Definition at line 288 of file nsPop3Protocol.h.

#define TOO_BIG   'b' /* item left on server because it was too big */

Definition at line 185 of file nsPop3Protocol.h.

#define XP_NO_ANSWER   14401

Definition at line 81 of file nsPop3Protocol.h.

Definition at line 83 of file nsPop3Protocol.h.

Definition at line 82 of file nsPop3Protocol.h.


Typedef Documentation

typedef struct _Pop3ConData Pop3ConData
typedef struct Pop3MsgInfo Pop3MsgInfo
typedef struct Pop3UidlEntry Pop3UidlEntry
typedef struct Pop3UidlHost Pop3UidlHost

Enumeration Type Documentation

Enumerator:
POP3_CAPABILITY_UNDEFINED 
POP3_HAS_XSENDER 
POP3_GURL_UNDEFINED 
POP3_HAS_GURL 
POP3_UIDL_UNDEFINED 
POP3_HAS_UIDL 
POP3_XTND_XLST_UNDEFINED 
POP3_HAS_XTND_XLST 
POP3_TOP_UNDEFINED 
POP3_HAS_TOP 
POP3_AUTH_MECH_UNDEFINED 
POP3_HAS_AUTH_USER 
POP3_HAS_AUTH_LOGIN 
POP3_HAS_AUTH_PLAIN 
POP3_HAS_AUTH_CRAM_MD5 
POP3_HAS_AUTH_APOP 
POP3_HAS_AUTH_NTLM 
POP3_HAS_AUTH_MSN 
POP3_HAS_RESP_CODES 
POP3_HAS_AUTH_RESP_CODE 
POP3_HAS_STLS 
POP3_HAS_AUTH_GSSAPI 

Definition at line 92 of file nsPop3Protocol.h.

                        {
    POP3_CAPABILITY_UNDEFINED   = 0x00000000,
    POP3_HAS_XSENDER            = 0x00000001,
    POP3_GURL_UNDEFINED         = 0x00000002,
    POP3_HAS_GURL               = 0x00000004,
    POP3_UIDL_UNDEFINED         = 0x00000008,
    POP3_HAS_UIDL               = 0x00000010,
    POP3_XTND_XLST_UNDEFINED    = 0x00000020,
    POP3_HAS_XTND_XLST          = 0x00000040,
    POP3_TOP_UNDEFINED          = 0x00000080,
    POP3_HAS_TOP                = 0x00000100,
    POP3_AUTH_MECH_UNDEFINED    = 0x00000200,
    POP3_HAS_AUTH_USER          = 0x00000400,
    POP3_HAS_AUTH_LOGIN         = 0x00000800,
    POP3_HAS_AUTH_PLAIN         = 0x00001000,
    POP3_HAS_AUTH_CRAM_MD5      = 0x00002000,
    POP3_HAS_AUTH_APOP          = 0x00004000,
    POP3_HAS_AUTH_NTLM          = 0x00008000,
    POP3_HAS_AUTH_MSN           = 0x00010000,
    POP3_HAS_RESP_CODES         = 0x00020000,
    POP3_HAS_AUTH_RESP_CODE     = 0x00040000,
    POP3_HAS_STLS               = 0x00080000,
    POP3_HAS_AUTH_GSSAPI        = 0x00100000
};
Enumerator:
POP3_READ_PASSWORD 
POP3_START_CONNECT 
POP3_FINISH_CONNECT 
POP3_WAIT_FOR_RESPONSE 
POP3_WAIT_FOR_START_OF_CONNECTION_RESPONSE 
POP3_SEND_USERNAME 
POP3_SEND_PASSWORD 
POP3_SEND_STAT 
POP3_GET_STAT 
POP3_SEND_LIST 
POP3_GET_LIST 
POP3_SEND_UIDL_LIST 
POP3_GET_UIDL_LIST 
POP3_SEND_XTND_XLST_MSGID 
POP3_GET_XTND_XLST_MSGID 
POP3_GET_MSG 
POP3_SEND_TOP 
POP3_TOP_RESPONSE 
POP3_SEND_RETR 
POP3_RETR_RESPONSE 
POP3_SEND_DELE 
POP3_DELE_RESPONSE 
POP3_SEND_QUIT 
POP3_DONE 
POP3_ERROR_DONE 
POP3_FREE 
POP3_START_USE_TOP_FOR_FAKE_UIDL 
POP3_SEND_FAKE_UIDL_TOP 
POP3_GET_FAKE_UIDL_TOP 
POP3_SEND_AUTH 
POP3_AUTH_RESPONSE 
POP3_SEND_CAPA 
POP3_CAPA_RESPONSE 
POP3_PROCESS_AUTH 
POP3_AUTH_FALLBACK 
POP3_AUTH_LOGIN 
POP3_AUTH_LOGIN_RESPONSE 
POP3_AUTH_NTLM 
POP3_AUTH_NTLM_RESPONSE 
POP3_SEND_XSENDER 
POP3_XSENDER_RESPONSE 
POP3_SEND_GURL 
POP3_GURL_RESPONSE 
POP3_QUIT_RESPONSE 
POP3_INTERRUPTED 
POP3_TLS_RESPONSE 
POP3_AUTH_GSSAPI 
POP3_AUTH_GSSAPI_FIRST 
POP3_AUTH_GSSAPI_STEP 

Definition at line 120 of file nsPop3Protocol.h.