citadel
About: Citadel is an advanced messaging and collaboration system for groupware and BBS applications (preferred OS: Linux).
![]() ![]() |
Go to the source code of this file.
Macros | |
#define | IAPuts(Msg) iaputs(HKEY(Msg)) |
#define | _iaputs(Msg) iaputs(Msg, strlen(Msg)) |
#define | IReply(msg) ireply(HKEY(msg)) |
#define | IPutCStr(_ConstStr) IPutStr(CKEY(_ConstStr)) |
#define | IPutCParamStr(n) IPutStr(CKEY(Params[n])) |
#define | IPutMsgField(Which) IPutStr(CM_KEY(msg, Which)) |
Functions | |
void | TokenCutRight (citimap_command *Cmd, ConstStr *CutMe, int n) |
void | TokenCutLeft (citimap_command *Cmd, ConstStr *CutMe, int n) |
void | MakeStringOf (StrBuf *Buf, int skip) |
int | CmdAdjust (citimap_command *Cmd, int nArgs, int Realloc) |
void | imap_strout (ConstStr *args) |
void | imap_strbuffer (StrBuf *Reply, ConstStr *args) |
void | plain_imap_strbuffer (StrBuf *Reply, char *buf) |
int | imap_parameterize (citimap_command *Cmd) |
long | imap_mailboxname (char *buf, int bufsize, struct ctdlroom *qrbuf) |
int | imap_roomname (char *buf, int bufsize, const char *foldername) |
int | imap_is_message_set (const char *) |
int | imap_mailbox_matches_pattern (const char *pattern, char *mailboxname) |
int | imap_datecmp (const char *datestr, time_t msgtime) |
void | IAPrintf (const char *Format,...) |
void | iaputs (const char *Str, long Len) |
void | ireply (const char *Msg, long len) |
void | IReplyPrintf (const char *Format,...) |
void | IPutStr (const char *Msg, long Len) |
void | IUnbuffer (void) |
#define _iaputs | ( | Msg | ) | iaputs(Msg, strlen(Msg)) |
Definition at line 41 of file imap_tools.h.
#define IAPuts | ( | Msg | ) | iaputs(HKEY(Msg)) |
Definition at line 39 of file imap_tools.h.
#define IPutCParamStr | ( | n | ) | IPutStr(CKEY(Params[n])) |
Definition at line 53 of file imap_tools.h.
#define IPutCStr | ( | _ConstStr | ) | IPutStr(CKEY(_ConstStr)) |
Definition at line 52 of file imap_tools.h.
Definition at line 54 of file imap_tools.h.
#define IReply | ( | msg | ) | ireply(HKEY(msg)) |
Definition at line 45 of file imap_tools.h.
int CmdAdjust | ( | citimap_command * | Cmd, |
int | nArgs, | ||
int | Realloc | ||
) |
Definition at line 428 of file imap_tools.c.
References __citimap_command::avail_parms, free(), malloc(), __citimap_command::num_parms, and __citimap_command::Params.
Referenced by imap_extract_data_items(), imap_parameterize(), and imap_uidfetch().
void IAPrintf | ( | const char * | Format, |
... | |||
) |
Definition at line 898 of file imap_tools.c.
References IMAP.
Referenced by imap_append(), imap_auth_login_pass(), imap_auth_login_user(), imap_auth_plain(), imap_authenticate(), imap_copy(), imap_do_fetch_msg(), imap_do_search(), imap_do_store(), imap_fetch_body(), imap_fetch_bodystructure(), imap_fetch_bodystructure_part(), imap_fetch_internaldate(), imap_fetch_rfc822(), imap_fetch_uid(), imap_greeting(), imap_list(), imap_list_floors(), imap_listroom(), imap_login(), imap_logout(), imap_output_copyuid_response(), imap_rescan_msgids(), imap_select(), imap_status(), and imap_uidcopy().
void iaputs | ( | const char * | Str, |
long | Len | ||
) |
Definition at line 908 of file imap_tools.c.
References IMAP.
Referenced by imap_fetch_body(), imap_fetch_rfc822(), and imap_getacl().
int imap_datecmp | ( | const char * | datestr, |
time_t | msgtime | ||
) |
Definition at line 848 of file imap_tools.c.
Referenced by imap_do_search_msg().
int imap_is_message_set | ( | const char * | buf | ) |
Definition at line 690 of file imap_tools.c.
Referenced by imap_copy(), imap_do_search_msg(), imap_store(), imap_uidcopy(), and imap_uidstore().
int imap_mailbox_matches_pattern | ( | const char * | pattern, |
char * | mailboxname | ||
) |
Definition at line 833 of file imap_tools.c.
References do_imap_match(), and WILDMAT_TRUE.
Referenced by imap_list_floors(), and imap_listroom().
long imap_mailboxname | ( | char * | buf, |
int | bufsize, | ||
struct ctdlroom * | qrbuf | ||
) |
Definition at line 550 of file imap_tools.c.
References CtdlGetCachedFloor(), floor::f_name, MAILROOM, QR_MAILBOX, qrbuf, ctdlroom::QRflags, ctdlroom::QRfloor, ctdlroom::QRname, and toimap().
Referenced by imap_listroom(), imap_rename_backend(), and imap_status().
int imap_parameterize | ( | citimap_command * | Cmd | ) |
Definition at line 468 of file imap_tools.c.
References __citimap_command::avail_parms, CmdAdjust(), __citimap_command::CmdBuf, __citimap_command::num_parms, and __citimap_command::Params.
Referenced by imap_command_loop(), and imap_strip_headers().
int imap_roomname | ( | char * | buf, |
int | bufsize, | ||
const char * | foldername | ||
) |
Definition at line 601 of file imap_tools.c.
References CtdlGetCachedFloor(), floor::f_flags, F_INUSE, floor::f_name, FDELIM, fromimap(), IR_MAILBOX, MAILROOM, MAXFLOORS, and ROOMNAMELEN.
Referenced by imap_create(), imap_grabroom(), imap_rename(), imap_rename_backend(), and imap_select().
void imap_strbuffer | ( | StrBuf * | Reply, |
ConstStr * | args | ||
) |
void imap_strout | ( | ConstStr * | args | ) |
void IPutStr | ( | const char * | Msg, |
long | Len | ||
) |
Definition at line 955 of file imap_tools.c.
References IMAP, and __citimap::Reply.
Referenced by imap_fetch_bodystructure_part(), imap_fetch_bodystructure_post(), imap_fetch_envelope(), imap_getacl(), imap_list_floors(), imap_listrights(), imap_listroom(), imap_myrights(), imap_namespace(), imap_output_envelope_addr(), imap_output_envelope_from(), and imap_status().
void ireply | ( | const char * | Msg, |
long | len | ||
) |
Definition at line 914 of file imap_tools.c.
References __citimap::Cmd, IMAP, __citimap_command::Params, and __citimap::Reply.
void IReplyPrintf | ( | const char * | Format, |
... | |||
) |
Definition at line 931 of file imap_tools.c.
References __citimap::Cmd, IMAP, __citimap_command::Params, and __citimap::Reply.
Referenced by imap_append(), imap_authenticate(), imap_copy(), imap_expunge(), imap_list(), imap_login(), imap_rename(), imap_select(), and imap_subscribe().
void IUnbuffer | ( | void | ) |
Definition at line 986 of file imap_tools.c.
References cputbuf(), IMAP, and __citimap::Reply.
Referenced by imap_append(), imap_command_loop(), and imap_greeting().
void MakeStringOf | ( | StrBuf * | Buf, |
int | skip | ||
) |
Definition at line 383 of file imap_tools.c.
References IMAP, __citimap_command::num_parms, and __citimap_command::Params.
Referenced by imap_fetch(), imap_store(), imap_uidfetch(), and imap_uidstore().
void plain_imap_strbuffer | ( | StrBuf * | Reply, |
char * | buf | ||
) |
void TokenCutLeft | ( | citimap_command * | Cmd, |
ConstStr * | CutMe, | ||
int | n | ||
) |
Definition at line 412 of file imap_tools.c.
Referenced by imap_do_search(), and imap_list().
void TokenCutRight | ( | citimap_command * | Cmd, |
ConstStr * | CutMe, | ||
int | n | ||
) |
Definition at line 395 of file imap_tools.c.
References __citimap_command::CmdBuf.
Referenced by imap_do_search(), and imap_list().