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_expire.c File Reference
#include "sysdep.h"
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <fcntl.h>
#include <signal.h>
#include <pwd.h>
#include <errno.h>
#include <sys/types.h>
#include <time.h>
#include <sys/wait.h>
#include <string.h>
#include <limits.h>
#include <libcitadel.h>
#include "citadel.h"
#include "server.h"
#include "citserver.h"
#include "support.h"
#include "config.h"
#include "policy.h"
#include "database.h"
#include "msgbase.h"
#include "user_ops.h"
#include "control.h"
#include "threads.h"
#include "context.h"
#include "ctdl_module.h"
Include dependency graph for serv_expire.c:

Go to the source code of this file.

Data Structures

struct  PurgeList
 
struct  VPurgeList
 
struct  ValidRoom
 
struct  ValidUser
 
struct  ctdlroomref
 
struct  UPurgeList
 
struct  EPurgeList
 

Functions

void GatherPurgeMessages (struct ctdlroom *qrbuf, void *data)
 
void DoPurgeMessages (FILE *purgelist)
 
void PurgeMessages (void)
 
void AddValidUser (char *username, void *data)
 
void AddValidRoom (struct ctdlroom *qrbuf, void *data)
 
void DoPurgeRooms (struct ctdlroom *qrbuf, void *data)
 
int PurgeRooms (void)
 
void do_user_purge (char *username, void *data)
 
int PurgeUsers (void)
 
int PurgeVisits (void)
 
int PurgeUseTable (StrBuf *ErrMsg)
 
int PurgeEuidIndexTable (void)
 
int PurgeStaleExtAuthAssociations (void)
 
void purge_databases (void)
 
void cmd_tdap (char *argbuf)
 
char * ctdl_module_expire_init (int threading)
 

Variables

struct PurgeListUserPurgeList = NULL
 
struct PurgeListRoomPurgeList = NULL
 
struct ValidRoomValidRoomList = NULL
 
struct ValidUserValidUserList = NULL
 
int messages_purged
 
int users_not_purged
 
char * users_corrupt_msg = NULL
 
char * users_zero_msg = NULL
 
struct ctdlroomrefrr = NULL
 
int force_purge_now = 0
 

Function Documentation

◆ AddValidRoom()

void AddValidRoom ( struct ctdlroom qrbuf,
void *  data 
)

◆ AddValidUser()

void AddValidUser ( char *  username,
void *  data 
)

◆ cmd_tdap()

void cmd_tdap ( char *  argbuf)

Definition at line 865 of file serv_expire.c.

References ac_aide, CIT_OK, cprintf(), CtdlAccessCheck(), and force_purge_now.

Referenced by ctdl_module_expire_init().

◆ ctdl_module_expire_init()

char * ctdl_module_expire_init ( int  threading)

◆ do_user_purge()

◆ DoPurgeMessages()

void DoPurgeMessages ( FILE *  purgelist)

Definition at line 185 of file serv_expire.c.

References CtdlDeleteMessages(), ROOMNAMELEN, and SIZ.

Referenced by PurgeMessages().

◆ DoPurgeRooms()

◆ GatherPurgeMessages()

◆ purge_databases()

◆ PurgeEuidIndexTable()

◆ PurgeMessages()

void PurgeMessages ( void  )

Definition at line 207 of file serv_expire.c.

References CtdlForEachRoom(), DoPurgeMessages(), GatherPurgeMessages(), and messages_purged.

Referenced by purge_databases().

◆ PurgeRooms()

◆ PurgeStaleExtAuthAssociations()

int PurgeStaleExtAuthAssociations ( void  )

◆ PurgeUsers()

◆ PurgeUseTable()

◆ PurgeVisits()

Variable Documentation

◆ force_purge_now

int force_purge_now = 0

Definition at line 99 of file serv_expire.c.

Referenced by cmd_tdap(), and purge_databases().

◆ messages_purged

int messages_purged

Definition at line 94 of file serv_expire.c.

Referenced by GatherPurgeMessages(), purge_databases(), and PurgeMessages().

◆ RoomPurgeList

struct PurgeList* RoomPurgeList = NULL

Definition at line 91 of file serv_expire.c.

Referenced by DoPurgeRooms(), and PurgeRooms().

◆ rr

struct ctdlroomref* rr = NULL

Definition at line 98 of file serv_expire.c.

Referenced by rss_end_element(), and rss_pull_feeds().

◆ UserPurgeList

struct PurgeList* UserPurgeList = NULL

Definition at line 90 of file serv_expire.c.

Referenced by do_user_purge(), and PurgeUsers().

◆ users_corrupt_msg

char* users_corrupt_msg = NULL

Definition at line 96 of file serv_expire.c.

Referenced by do_user_purge(), and PurgeUsers().

◆ users_not_purged

int users_not_purged

Definition at line 95 of file serv_expire.c.

Referenced by do_user_purge(), and PurgeUsers().

◆ users_zero_msg

char* users_zero_msg = NULL

Definition at line 97 of file serv_expire.c.

Referenced by PurgeUsers().

◆ ValidRoomList

struct ValidRoom* ValidRoomList = NULL

Definition at line 92 of file serv_expire.c.

Referenced by AddValidRoom(), and PurgeVisits().

◆ ValidUserList

struct ValidUser* ValidUserList = NULL

Definition at line 93 of file serv_expire.c.

Referenced by AddValidUser(), DoPurgeRooms(), PurgeRooms(), and PurgeVisits().