File: qmail.h

package info (click to toggle)
cvm 0.97-0.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,036 kB
  • sloc: ansic: 4,065; sh: 2,758; makefile: 235; sql: 15
file content (40 lines) | stat: -rw-r--r-- 911 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef CVM__QMAIL__H__
#define CVM__QMAIL__H__

#include <bglibs/str.h>

struct qmail_user
{
  str user;
  unsigned long uid;
  unsigned long gid;
  str homedir;
  char dash;
  str ext;
};

extern const char* qmail_root;
extern const char* qmail_me;
extern const char* qmail_envnoathost;
int qmail_init(void);

int qmail_users_init(void);
int qmail_users_reinit(void);
int qmail_users_lookup(struct qmail_user* user, const char* name, char dash);
int qmail_users_lookup_split(struct qmail_user* u, const char* name,
			     str* local, str* ext);

int qmail_domains_init(void);
int qmail_domains_reinit(void);
int qmail_domains_lookup(const str* d, str* domain, str* prefix);

int qmail_dotfile_exists(const struct qmail_user* user, const char* ext,
			 str* path);

int qmail_lookup_init(void);
int qmail_lookup_cvm(struct qmail_user* user,
		     str* domain,
		     str* username,
		     str* ext);

#endif