2 * Worldvisions Weaver Software:
3 * Copyright (C) 1997-2003 Net Integration Technologies, Inc.
5 * This is the email feedback stuff
12 #define SENDMAIL "/usr/sbin/sendmail"
13 //#define SENDMAIL "/home/pp/bin/fake-sendmail"
14 #define CONTRIBUTION_EMAIL "pphaneuf@nit.ca"
16 void contribute(UniConf
& cfg
)
18 const char *args
[] = {SENDMAIL
, "-oi", CONTRIBUTION_EMAIL
, 0};
19 WvPipe
mail(args
[0], args
, true, false, false);
22 if (mail
.child_exited())
25 mail
.print("To: "CONTRIBUTION_EMAIL
"\n");
26 mail
.print("Subject: contribution to WvPrint database\n");
27 mail
.print("\nWvPrint configuration file:\n");
32 const UniConf
&u
= *i
;
33 mail
.print("\n[%s]\n", u
.key());
35 cfg
[u
.key()]["contributed"].set("1");