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_smtpclient.c File Reference
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <time.h>
#include <ctype.h>
#include <string.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <libcitadel.h>
#include <curl/curl.h>
#include "../../sysconfig.h"
#include "../../citadel.h"
#include "../../server.h"
#include "../../citserver.h"
#include "../../support.h"
#include "../../config.h"
#include "../../ctdl_module.h"
#include "../../clientsocket.h"
#include "../../msgbase.h"
#include "../../domain.h"
#include "../../internet_addressing.h"
#include "../../citadel_dirs.h"
#include "../smtp/smtp_util.h"
Include dependency graph for serv_smtpclient.c:

Go to the source code of this file.

Data Structures

struct  smtpmsgsrc
 

Functions

void smtp_init_spoolout (void)
 
int smtp_aftersave (struct CtdlMessage *msg, struct recptypes *recps)
 
static size_t upload_source (void *ptr, size_t size, size_t nmemb, void *userp)
 
int ctdl_libcurl_smtp_debug_callback (CURL *handle, curl_infotype type, char *data, size_t size, void *userptr)
 
void trim_response (long response_code, char *response)
 
int smtp_attempt_delivery (long msgid, char *recp, char *envelope_from, char *source_room, char *response)
 
void smtp_process_one_msg (long qmsgnum)
 
void smtp_add_msg (long msgnum, void *userdata)
 
void smtp_do_queue (void)
 
char * ctdl_module_init_smtpclient (void)
 

Variables

static int doing_smtpclient = 0
 
long * smtpq = NULL
 
int smtpq_count = 0
 
int smtpq_alloc = 0
 

Function Documentation

◆ ctdl_libcurl_smtp_debug_callback()

int ctdl_libcurl_smtp_debug_callback ( CURL *  handle,
curl_infotype  type,
char *  data,
size_t  size,
void *  userptr 
)

Definition at line 157 of file serv_smtpclient.c.

References SIZ.

Referenced by smtp_attempt_delivery().

◆ ctdl_module_init_smtpclient()

char * ctdl_module_init_smtpclient ( void  )

◆ smtp_add_msg()

void smtp_add_msg ( long  msgnum,
void *  userdata 
)

Definition at line 510 of file serv_smtpclient.c.

References malloc(), smtpq, smtpq_alloc, and smtpq_count.

Referenced by smtp_do_queue().

◆ smtp_aftersave()

◆ smtp_attempt_delivery()

int smtp_attempt_delivery ( long  msgid,
char *  recp,
char *  envelope_from,
char *  source_room,
char *  response 
)

◆ smtp_do_queue()

◆ smtp_init_spoolout()

void smtp_init_spoolout ( void  )

◆ smtp_process_one_msg()

◆ trim_response()

void trim_response ( long  response_code,
char *  response 
)

Definition at line 175 of file serv_smtpclient.c.

References malloc(), and smtpstatus().

Referenced by smtp_attempt_delivery().

◆ upload_source()

static size_t upload_source ( void *  ptr,
size_t  size,
size_t  nmemb,
void *  userp 
)
static

Variable Documentation

◆ doing_smtpclient

int doing_smtpclient = 0
static

Definition at line 48 of file serv_smtpclient.c.

Referenced by smtp_do_queue().

◆ smtpq

long* smtpq = NULL

Definition at line 49 of file serv_smtpclient.c.

Referenced by smtp_add_msg(), and smtp_do_queue().

◆ smtpq_alloc

int smtpq_alloc = 0

Definition at line 51 of file serv_smtpclient.c.

Referenced by smtp_add_msg().

◆ smtpq_count

int smtpq_count = 0

Definition at line 50 of file serv_smtpclient.c.

Referenced by smtp_add_msg(), and smtp_do_queue().