blob: eec0ba91d4a2923ddcd116c70b572685925e833d (
plain)
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
41
42
43
44
45
46
47
48
49
|
#ifndef _LOGIN_SENDER_MATCH_H_INCLUDED_
#define _LOGIN_SENDER_MATCH_H_INCLUDED_
/*++
/* NAME
/* login_sender_match 3h
/* SUMMARY
/* oracle for per-login allowed sender addresses
/* SYNOPSIS
/* #include <login_sender_match.h>
/* DESCRIPTION
/* .nf
/*
* Utility library.
*/
#include <dict.h>
/*
* External interface.
*/
typedef struct LOGIN_SENDER_MATCH LOGIN_SENDER_MATCH;
extern LOGIN_SENDER_MATCH *login_sender_create(const char *title,
const char *map_names,
const char *ext_delimiters,
const char *null_sender,
const char *wildcard);
extern void login_sender_free(LOGIN_SENDER_MATCH *lsm);
extern int login_sender_match(LOGIN_SENDER_MATCH *lsm, const char *login_name,
const char *sender_addr);
#define LSM_STAT_FOUND (1)
#define LSM_STAT_NOTFOUND (0)
#define LSM_STAT_RETRY (DICT_ERR_RETRY)
#define LSM_STAT_CONFIG (DICT_ERR_CONFIG)
/* LICENSE
/* .ad
/* .fi
/* The Secure Mailer license must be distributed with this software.
/* AUTHOR(S)
/* Wietse Venema
/* Google, Inc.
/* 111 8th Avenue
/* New York, NY 10011, USA
/*--*/
#endif /* _LOGIN_SENDER_MATCH_H_INCLUDED_ */
|