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_vcard.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 <ctype.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 "../../control.h"
#include "../../user_ops.h"
#include "../../database.h"
#include "../../msgbase.h"
#include "../../room_ops.h"
#include "../../internet_addressing.h"
#include "../../serv_vcard.h"
#include "../../citadel_ldap.h"
#include "../../ctdl_module.h"
Include dependency graph for serv_vcard.c:

Go to the source code of this file.

Macros

#define VCARD_EXT_FORMAT   "Citadel vCard: personal card for %s at %s"
 
#define VCARD_MIME_TYPE   "text/x-vcard"
 
#define _(a)   a
 TODO: gettext!
 

Functions

void set_mm_valid (void)
 
void extract_inet_email_addrs (char *emailaddrbuf, size_t emailaddrbuf_len, char *secemailaddrbuf, size_t secemailaddrbuf_len, struct vCard *v, int local_addrs_only)
 
void extract_friendly_name (char *namebuf, size_t namebuf_len, struct vCard *v)
 
void vcard_extract_vcard (char *name, char *filename, char *partnum, char *disp, void *content, char *cbtype, char *cbcharset, size_t length, char *encoding, char *cbid, void *cbuserdata)
 
int vcard_upload_beforesave (struct CtdlMessage *msg, struct recptypes *recp)
 
int vcard_upload_aftersave (struct CtdlMessage *msg, struct recptypes *recp)
 
void vcard_gu_backend (long supplied_msgnum, void *userdata)
 
struct vCard * vcard_get_user (struct ctdluser *u)
 
void vcard_write_user (struct ctdluser *u, struct vCard *v)
 
void cmd_regi (char *argbuf)
 
void cmd_greg (char *argbuf)
 
void vcard_newuser (struct ctdluser *usbuf)
 
void cmd_gvsn (char *argbuf)
 
void cmd_gvea (char *argbuf)
 
void dvca_mime_callback (char *name, char *filename, char *partnum, char *disp, void *content, char *cbtype, char *cbcharset, size_t length, char *encoding, char *cbid, void *cbuserdata)
 
void dvca_callback (long msgnum, void *userdata)
 
void cmd_dvca (char *argbuf)
 
void cmd_qdir (char *argbuf)
 
void check_get (void)
 
void check_get_greeting (void)
 
void vcard_CtdlCreateRoom (void)
 
void vcard_session_login_hook (void)
 
struct vCard * vcard_new_from_rfc822_addr (char *addr)
 
void strip_addresses_already_have (long msgnum, void *userdata)
 
void store_this_ha (struct addresses_to_be_filed *aptr)
 
void store_harvested_addresses (void)
 
void vcard_fixed_output (char *ptr, int len)
 
char * ctdl_module_init_vcard (void)
 

Variables

const char * CitadelServiceDICT_TCP ="DICT_TCP"
 

Macro Definition Documentation

◆ _

#define _ (   a)    a

TODO: gettext!

Definition at line 76 of file serv_vcard.c.

◆ VCARD_EXT_FORMAT

#define VCARD_EXT_FORMAT   "Citadel vCard: personal card for %s at %s"

Definition at line 22 of file serv_vcard.c.

◆ VCARD_MIME_TYPE

#define VCARD_MIME_TYPE   "text/x-vcard"

Definition at line 29 of file serv_vcard.c.

Function Documentation

◆ check_get()

◆ check_get_greeting()

void check_get_greeting ( void  )

Definition at line 949 of file serv_vcard.c.

Referenced by ctdl_module_init_vcard().

◆ cmd_dvca()

void cmd_dvca ( char *  argbuf)

◆ cmd_greg()

◆ cmd_gvea()

void cmd_gvea ( char *  argbuf)

Definition at line 775 of file serv_vcard.c.

References ac_logged_in, CC, cprintf(), CtdlAccessCheck(), and LISTING_FOLLOWS.

Referenced by ctdl_module_init_vcard().

◆ cmd_gvsn()

void cmd_gvsn ( char *  argbuf)

Definition at line 758 of file serv_vcard.c.

References ac_logged_in, CC, cprintf(), CtdlAccessCheck(), and LISTING_FOLLOWS.

Referenced by ctdl_module_init_vcard().

◆ cmd_qdir()

void cmd_qdir ( char *  argbuf)

◆ cmd_regi()

◆ ctdl_module_init_vcard()

◆ dvca_callback()

void dvca_callback ( long  msgnum,
void *  userdata 
)

Definition at line 849 of file serv_vcard.c.

References CM_Free(), CM_RANGE, CtdlFetchMessage(), dvca_mime_callback(), and eMesageText.

Referenced by cmd_dvca().

◆ dvca_mime_callback()

void dvca_mime_callback ( char *  name,
char *  filename,
char *  partnum,
char *  disp,
void *  content,
char *  cbtype,
char *  cbcharset,
size_t  length,
char *  encoding,
char *  cbid,
void *  cbuserdata 
)

Definition at line 802 of file serv_vcard.c.

References cprintf(), extract_friendly_name(), and extract_inet_email_addrs().

Referenced by dvca_callback().

◆ extract_friendly_name()

void extract_friendly_name ( char *  namebuf,
size_t  namebuf_len,
struct vCard *  v 
)

◆ extract_inet_email_addrs()

void extract_inet_email_addrs ( char *  emailaddrbuf,
size_t  emailaddrbuf_len,
char *  secemailaddrbuf,
size_t  secemailaddrbuf_len,
struct vCard *  v,
int  local_addrs_only 
)

Definition at line 82 of file serv_vcard.c.

References _, CC, ERROR, free(), ILLEGAL_VALUE, and IsDirectory().

Referenced by dvca_mime_callback(), local_to_inetemail(), and miafvtur_backend().

◆ set_mm_valid()

void set_mm_valid ( void  )

◆ store_harvested_addresses()

void store_harvested_addresses ( void  )

◆ store_this_ha()

◆ strip_addresses_already_have()

void strip_addresses_already_have ( long  msgnum,
void *  userdata 
)

◆ vcard_CtdlCreateRoom()

◆ vcard_extract_vcard()

void vcard_extract_vcard ( char *  name,
char *  filename,
char *  partnum,
char *  disp,
void *  content,
char *  cbtype,
char *  cbcharset,
size_t  length,
char *  encoding,
char *  cbid,
void *  cbuserdata 
)

Definition at line 158 of file serv_vcard.c.

Referenced by vcard_upload_beforesave().

◆ vcard_fixed_output()

void vcard_fixed_output ( char *  ptr,
int  len 
)

Definition at line 1184 of file serv_vcard.c.

References cprintf(), free(), and malloc().

Referenced by ctdl_module_init_vcard().

◆ vcard_get_user()

◆ vcard_gu_backend()

void vcard_gu_backend ( long  supplied_msgnum,
void *  userdata 
)

Definition at line 465 of file serv_vcard.c.

Referenced by vcard_get_user().

◆ vcard_new_from_rfc822_addr()

struct vCard * vcard_new_from_rfc822_addr ( char *  addr)

Definition at line 1027 of file serv_vcard.c.

References process_rfc822_addr().

Referenced by store_this_ha().

◆ vcard_newuser()

◆ vcard_session_login_hook()

◆ vcard_upload_aftersave()

◆ vcard_upload_beforesave()

◆ vcard_write_user()

void vcard_write_user ( struct ctdluser u,
struct vCard *  v 
)

Variable Documentation

◆ CitadelServiceDICT_TCP

const char* CitadelServiceDICT_TCP ="DICT_TCP"

Definition at line 1204 of file serv_vcard.c.

Referenced by ctdl_module_init_vcard().