ossp-pkg/petidomo/mailer.c 1.3 -> 1.4
--- mailer.c 2000/12/15 15:48:00 1.3
+++ mailer.c 2001/01/08 20:36:19 1.4
@@ -1,6 +1,6 @@
/*
$Source: /v/ossp/cvs/ossp-pkg/petidomo/mailer.c,v $
- $Revision: 1.3 $
+ $Revision: 1.4 $
Copyright (C) 2000 by CyberSolutions GmbH, Germany.
@@ -141,6 +141,7 @@
ListMail(const char * envelope, const char * listname, const struct Mail * MailStruct)
{
const struct PD_Config * MasterConfig = getMasterConfig();
+ const struct List_Config * ListConfig = getListConfig(listname);
char ** arguments;
u_int arguments_num = 256;
char buffer[256];
@@ -164,8 +165,7 @@
/* Load the list of recipients. */
- sprintf(buffer, "lists/%s/list", listname);
- listfile = loadfile(buffer);
+ listfile = loadfile(ListConfig->address_file);
if (listfile == NULL)
return 1;
|
|