citadel
About: Citadel is an advanced messaging and collaboration system for groupware and BBS applications (preferred OS: Linux).
  Fossies Dox: citadel.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

serv_imap.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _imap_handler_hook
 
struct  __citimap_command
 
struct  __citimap
 

Macros

#define GLOBAL_UIDVALIDITY_VALUE   1L
 
#define IMAP_ANSWERED   1 /* reportable and setable */
 
#define IMAP_FLAGGED   2 /* reportable and setable */
 
#define IMAP_DELETED   4 /* reportable and setable */
 
#define IMAP_DRAFT   8 /* reportable and setable */
 
#define IMAP_SEEN   16 /* reportable and setable */
 
#define IMAP_MASK_SETABLE   0x1f
 
#define IMAP_MASK_SYSTEM   0xe0
 
#define IMAP_SELECTED   32 /* neither reportable nor setable */
 
#define IMAP_RECENT   64 /* reportable but not setable */
 
#define IR_MAILBOX   0x0100 /* Mailbox */
 
#define IR_EXISTS   0x0200 /* Room exists (not implemented) */
 
#define IR_BABOON   0x0000 /* Just had to put this here :) */
 
#define FDELIM   '\\'
 
#define IMAP   ((citimap *)CC->session_specific_data)
 
#define CCCIMAP   ((citimap *)CCC->session_specific_data)
 
#define IMAPDBGLOG(LEVEL)   if ((LEVEL != LOG_DEBUG) || (IMAPDebugEnabled != 0))
 
#define I_FLAG_NONE   (0)
 
#define I_FLAG_LOGGED_IN   (1<<0)
 
#define I_FLAG_SELECT   (1<<1)
 
#define I_FLAG_UNTAGGED   (1<<2)
 
#define REALLOC_INCREMENT   100
 
#define RegisterImapCMD(First, Second, H, Flags)    registerImapCMD(HKEY(First), HKEY(Second), H, Flags)
 

Typedefs

typedef void(* imap_handler) (int num_parms, ConstStr *Params)
 
typedef struct _imap_handler_hook imap_handler_hook
 
typedef struct __citimap_command citimap_command
 
typedef struct __citimap citimap
 

Enumerations

enum  {
  imap_as_normal , imap_as_expecting_username , imap_as_expecting_password , imap_as_expecting_plainauth ,
  imap_as_expecting_multilineusername , imap_as_expecting_multilinepassword
}
 

Functions

void imap_cleanup_function (void)
 
void imap_greeting (void)
 
void imap_command_loop (void)
 
int imap_grabroom (char *returned_roomname, const char *foldername, int zapped_ok)
 
void imap_free_transmitted_message (void)
 
int imap_do_expunge (void)
 
void imap_rescan_msgids (void)
 
void registerImapCMD (const char *First, long FLen, const char *Second, long SLen, imap_handler H, int Flags)
 

Macro Definition Documentation

◆ CCCIMAP

#define CCCIMAP   ((citimap *)CCC->session_specific_data)

Definition at line 105 of file serv_imap.h.

◆ FDELIM

#define FDELIM   '\\'

Definition at line 102 of file serv_imap.h.

◆ GLOBAL_UIDVALIDITY_VALUE

#define GLOBAL_UIDVALIDITY_VALUE   1L

Definition at line 1 of file serv_imap.h.

◆ I_FLAG_LOGGED_IN

#define I_FLAG_LOGGED_IN   (1<<0)

Definition at line 110 of file serv_imap.h.

◆ I_FLAG_NONE

#define I_FLAG_NONE   (0)

Definition at line 109 of file serv_imap.h.

◆ I_FLAG_SELECT

#define I_FLAG_SELECT   (1<<1)

Definition at line 111 of file serv_imap.h.

◆ I_FLAG_UNTAGGED

#define I_FLAG_UNTAGGED   (1<<2)

Definition at line 113 of file serv_imap.h.

◆ IMAP

#define IMAP   ((citimap *)CC->session_specific_data)

Definition at line 104 of file serv_imap.h.

◆ IMAP_ANSWERED

#define IMAP_ANSWERED   1 /* reportable and setable */

Definition at line 81 of file serv_imap.h.

◆ IMAP_DELETED

#define IMAP_DELETED   4 /* reportable and setable */

Definition at line 83 of file serv_imap.h.

◆ IMAP_DRAFT

#define IMAP_DRAFT   8 /* reportable and setable */

Definition at line 84 of file serv_imap.h.

◆ IMAP_FLAGGED

#define IMAP_FLAGGED   2 /* reportable and setable */

Definition at line 82 of file serv_imap.h.

◆ IMAP_MASK_SETABLE

#define IMAP_MASK_SETABLE   0x1f

Definition at line 87 of file serv_imap.h.

◆ IMAP_MASK_SYSTEM

#define IMAP_MASK_SYSTEM   0xe0

Definition at line 88 of file serv_imap.h.

◆ IMAP_RECENT

#define IMAP_RECENT   64 /* reportable but not setable */

Definition at line 91 of file serv_imap.h.

◆ IMAP_SEEN

#define IMAP_SEEN   16 /* reportable and setable */

Definition at line 85 of file serv_imap.h.

◆ IMAP_SELECTED

#define IMAP_SELECTED   32 /* neither reportable nor setable */

Definition at line 90 of file serv_imap.h.

◆ IMAPDBGLOG

#define IMAPDBGLOG (   LEVEL)    if ((LEVEL != LOG_DEBUG) || (IMAPDebugEnabled != 0))

Definition at line 107 of file serv_imap.h.

◆ IR_BABOON

#define IR_BABOON   0x0000 /* Just had to put this here :) */

Definition at line 100 of file serv_imap.h.

◆ IR_EXISTS

#define IR_EXISTS   0x0200 /* Room exists (not implemented) */

Definition at line 99 of file serv_imap.h.

◆ IR_MAILBOX

#define IR_MAILBOX   0x0100 /* Mailbox */

Definition at line 98 of file serv_imap.h.

◆ REALLOC_INCREMENT

#define REALLOC_INCREMENT   100

Definition at line 119 of file serv_imap.h.

◆ RegisterImapCMD

#define RegisterImapCMD (   First,
  Second,
  H,
  Flags 
)     registerImapCMD(HKEY(First), HKEY(Second), H, Flags)

Definition at line 127 of file serv_imap.h.

Typedef Documentation

◆ citimap

typedef struct __citimap citimap

◆ citimap_command

◆ imap_handler

typedef void(* imap_handler) (int num_parms, ConstStr *Params)

Definition at line 21 of file serv_imap.h.

◆ imap_handler_hook

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
imap_as_normal 
imap_as_expecting_username 
imap_as_expecting_password 
imap_as_expecting_plainauth 
imap_as_expecting_multilineusername 
imap_as_expecting_multilinepassword 

Definition at line 69 of file serv_imap.h.

Function Documentation

◆ imap_cleanup_function()

◆ imap_command_loop()

◆ imap_do_expunge()

◆ imap_free_transmitted_message()

void imap_free_transmitted_message ( void  )

Definition at line 166 of file serv_imap.c.

References IMAP.

Referenced by imap_append(), imap_cleanup_function(), and imap_command_loop().

◆ imap_grabroom()

int imap_grabroom ( char *  returned_roomname,
const char *  foldername,
int  zapped_ok 
)

◆ imap_greeting()

◆ imap_rescan_msgids()

◆ registerImapCMD()

void registerImapCMD ( const char *  First,
long  FLen,
const char *  Second,
long  SLen,
imap_handler  H,
int  Flags 
)

Definition at line 58 of file serv_imap.c.

References _imap_handler_hook::Flags, _imap_handler_hook::h, ImapCmds, malloc(), and SIZ.