Qsmtp  0.30dev
addrparse.h
Go to the documentation of this file.
1 
4 #ifndef ADDRPARSE_H
5 #define ADDRPARSE_H
6 
7 #include <sstring.h>
8 
9 struct userconf;
10 
11 extern int checkaddr(const char *const) __attribute__ ((pure)) __attribute__ ((nonnull (1)));
12 extern int addrsyntax(char *in, const int flags, string *addr, char **more) __attribute__ ((pure)) __attribute__ ((nonnull (1)));
13 extern int addrspec_valid(const char * const addr);
14 
15 extern int addrparse(char *in, const int flags, string *addr, char **more, struct userconf *ds, const char * /* rcpthosts */, const off_t /* rcpthsize */) __attribute__ ((nonnull (1)));
16 
35 extern int user_exists(const string* localpart, const char* domain, struct userconf *dsp);
36 
37 #endif
int addrspec_valid(const char *const addr)
Definition: addrsyntax.c:158
int user_exists(const string *localpart, const char *domain, struct userconf *dsp)
check if the user identified by localpart and ds->domainpath exists
Definition: vpop.c:256
Definition: userconf.h:10
int addrparse(char *in, const int flags, string *addr, char **more, struct userconf *ds, const char *, const off_t)
check an email address for syntax errors and/or existence
Definition: addrparse.c:35
definition of string record and headers of corresponding helper functions
int checkaddr(const char *const)
Definition: addrsyntax.c:144
int addrsyntax(char *in, const int flags, string *addr, char **more)
check an email address for syntax errors
Definition: addrsyntax.c:181