* es.po: the correct license for this file was supposed to be GPL v2-or-later, not...
[citadel.git] / citadel / internet_addressing.h
blob60f7410499e3f72a0ef024cb7a422cd0bd803c9b
1 /*
2 * $Id$
4 */
6 #include "server.h"
8 struct internet_address_list {
9 struct internet_address_list *next;
10 char ial_user[SIZ];
11 char ial_node[SIZ];
12 char ial_name[SIZ];
16 int fuzzy_match(struct ctdluser *us, char *matchstring);
17 void process_rfc822_addr(const char *rfc822, char *user, char *node, char *name);
18 char *rfc822_fetch_field(char *rfc822, char *fieldname);
20 int IsDirectory(char *addr, int allow_masq_domains);
21 void CtdlDirectoryInit(void);
22 void CtdlDirectoryAddUser(char *internet_addr, char *citadel_addr);
23 void CtdlDirectoryDelUser(char *internet_addr, char *citadel_addr);
24 int CtdlDirectoryLookup(char *target, char *internet_addr, size_t targbuflen);
25 struct CtdlMessage *convert_internet_message(char *rfc822);
26 int CtdlHostAlias(char *fqdn);
27 char *harvest_collected_addresses(struct CtdlMessage *msg);
29 /*
30 * Values that can be returned by CtdlHostAlias()
32 enum {
33 hostalias_nomatch,
34 hostalias_localhost,
35 hostalias_gatewaydomain,
36 hostalias_directory,
37 hostalias_masq
40 extern char *inetcfg;
43 struct spamstrings_t {
44 struct spamstrings_t *next;
45 char *string;
48 extern struct spamstrings_t *spamstrings;