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)  

Loading...
Searching...
No Matches
serv_listsub.c File Reference
#include "../../sysdep.h"
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <fcntl.h>
#include <ctype.h>
#include <signal.h>
#include <pwd.h>
#include <errno.h>
#include <sys/types.h>
#include <dirent.h>
#include <time.h>
#include <sys/wait.h>
#include <string.h>
#include <limits.h>
#include <crypt.h>
#include <libcitadel.h>
#include "../../citadel.h"
#include "../../server.h"
#include "../../citserver.h"
#include "../../support.h"
#include "../../config.h"
#include "../../user_ops.h"
#include "../../database.h"
#include "../../msgbase.h"
#include "../../internet_addressing.h"
#include "../../clientsocket.h"
#include "../../ctdl_module.h"
Include dependency graph for serv_listsub.c:

Go to the source code of this file.

Enumerations

enum  { UNSUBSCRIBE , SUBSCRIBE }
 

Functions

void generate_confirmation_token (char *token_buf, size_t token_buf_len, char *roomname, char *emailaddr)
 
void send_subscribe_confirmation_email (char *roomname, char *emailaddr, char *url, char *confirmation_token)
 
void send_unsubscribe_confirmation_email (char *roomname, char *emailaddr, char *url, char *confirmation_token)
 
void do_confirm (int cmd, char *roomname, char *emailaddr, char *url, char *generated_token, char *supplied_token)
 
void cmd_lsub (char *cmdbuf)
 
char * ctdl_module_init_listsub (void)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
UNSUBSCRIBE 
SUBSCRIBE 

Definition at line 45 of file serv_listsub.c.

Function Documentation

◆ cmd_lsub()

◆ ctdl_module_init_listsub()

char * ctdl_module_init_listsub ( void  )

Definition at line 295 of file serv_listsub.c.

References cmd_lsub(), CtdlRegisterProtoHook(), and threading.

Referenced by initialize_modules().

◆ do_confirm()

void do_confirm ( int  cmd,
char *  roomname,
char *  emailaddr,
char *  url,
char *  generated_token,
char *  supplied_token 
)

◆ generate_confirmation_token()

void generate_confirmation_token ( char *  token_buf,
size_t  token_buf_len,
char *  roomname,
char *  emailaddr 
)

Definition at line 54 of file serv_listsub.c.

References CtdlGetConfigStr().

Referenced by cmd_lsub().

◆ send_subscribe_confirmation_email()

void send_subscribe_confirmation_email ( char *  roomname,
char *  emailaddr,
char *  url,
char *  confirmation_token 
)

Definition at line 71 of file serv_listsub.c.

References CIT_OK, cprintf(), CtdlGetConfigStr(), FMT_RFC822, quickie_message(), ROOMNAMELEN, and SIZ.

Referenced by cmd_lsub().

◆ send_unsubscribe_confirmation_email()

void send_unsubscribe_confirmation_email ( char *  roomname,
char *  emailaddr,
char *  url,
char *  confirmation_token 
)

Definition at line 130 of file serv_listsub.c.

References CIT_OK, cprintf(), CtdlGetConfigStr(), FMT_RFC822, quickie_message(), ROOMNAMELEN, and SIZ.

Referenced by cmd_lsub().