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_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 <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 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_subscribe_or_unsubscribe (int action, char *emailaddr, char *url)
 
void do_confirm (char *token)
 
void cmd_lsub (char *cmdbuf)
 
char * ctdl_module_listsub_init (int threading)
 

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_listsub_init()

char * ctdl_module_listsub_init ( int  threading)

Definition at line 399 of file serv_listsub.c.

References cmd_lsub(), and CtdlRegisterProtoHook().

◆ do_confirm()

void do_confirm ( char *  token)

◆ do_subscribe_or_unsubscribe()

◆ send_subscribe_confirmation_email()

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

Definition at line 54 of file serv_listsub.c.

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

Referenced by do_subscribe_or_unsubscribe().

◆ send_unsubscribe_confirmation_email()

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

Definition at line 114 of file serv_listsub.c.

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

Referenced by do_subscribe_or_unsubscribe().