Back to index

citadel  8.12
internet_addressing.h
Go to the documentation of this file.
00001 
00002 #include "server.h"
00003 
00004 struct internet_address_list {
00005        struct internet_address_list *next;
00006        char ial_user[SIZ];
00007        char ial_node[SIZ];
00008        char ial_name[SIZ];
00009 };
00010 
00011 
00012 int fuzzy_match(struct ctdluser *us, char *matchstring);
00013 void process_rfc822_addr(const char *rfc822, char *user, char *node, char *name);
00014 char *rfc822_fetch_field(const char *rfc822, const char *fieldname);
00015 
00016 int IsDirectory(char *addr, int allow_masq_domains);
00017 void CtdlDirectoryInit(void);
00018 int CtdlDirectoryAddUser(char *internet_addr, char *citadel_addr);
00019 int CtdlDirectoryDelUser(char *internet_addr, char *citadel_addr);
00020 int CtdlDirectoryLookup(char *target, char *internet_addr, size_t targbuflen);
00021 struct CtdlMessage *convert_internet_message(char *rfc822);
00022 struct CtdlMessage *convert_internet_message_buf(StrBuf **rfc822);
00023 
00024 int CtdlHostAlias(char *fqdn);
00025 char *harvest_collected_addresses(struct CtdlMessage *msg);
00026 
00027 /* 
00028  * Values that can be returned by CtdlHostAlias()
00029  */
00030 enum {
00031        hostalias_nomatch,
00032        hostalias_localhost,
00033        hostalias_gatewaydomain,
00034        hostalias_directory,
00035        hostalias_masq
00036 };
00037 
00038 extern char *inetcfg;
00039 
00040 
00041 struct spamstrings_t {
00042        struct spamstrings_t *next;
00043        char *string;
00044 };
00045 
00046 extern struct spamstrings_t *spamstrings;
00047