52 |
#include <mailutils/argp.h> |
#include <mailutils/argp.h> |
53 |
#include <mailutils/mu_auth.h> |
#include <mailutils/mu_auth.h> |
54 |
|
|
55 |
#ifdef USE_VIRTUAL_DOMAINS |
#ifdef ENABLE_VIRTUAL_DOMAINS |
56 |
|
|
57 |
static char *site_virtual_pwddir = SITE_VIRTUAL_PWDDIR; |
static char *site_virtual_pwddir = SITE_VIRTUAL_PWDDIR; |
58 |
|
|
154 |
return 1; |
return 1; |
155 |
} |
} |
156 |
|
|
157 |
mailbox_name = calloc (strlen (pw->pw_dir) + strlen ("/INBOX"), 1); |
mailbox_name = calloc (strlen (pw->pw_dir) + strlen ("/INBOX") + 1, 1); |
158 |
sprintf (mailbox_name, "%s/INBOX", pw->pw_dir); |
sprintf (mailbox_name, "%s/INBOX", pw->pw_dir); |
159 |
|
|
160 |
rc = mu_auth_data_alloc ((struct mu_auth_data **) return_data, |
rc = mu_auth_data_alloc ((struct mu_auth_data **) return_data, |
211 |
|
|
212 |
struct mu_auth_module mu_auth_virtual_module = { |
struct mu_auth_module mu_auth_virtual_module = { |
213 |
"virtdomain", |
"virtdomain", |
214 |
#ifdef USE_VIRTUAL_DOMAINS |
#ifdef ENABLE_VIRTUAL_DOMAINS |
215 |
&mu_virt_argp, |
&mu_virt_argp, |
216 |
#else |
#else |
217 |
NULL, |
NULL, |