e70152e44cc66cc599ff6b699eb8adc07f3e656a kent Sat May 24 21:09:34 2014 -0700 Adding Copyright NNNN Regents of the University of California to all files I believe with reasonable certainty were developed under UCSC employ or as part of Genome Browser copyright assignment. diff --git src/lib/mailViaPipe.c src/lib/mailViaPipe.c index d186ea5..8456ab9 100644 --- src/lib/mailViaPipe.c +++ src/lib/mailViaPipe.c @@ -1,22 +1,25 @@ /* mailViaPipe - a safer and sharable sendmail utility using * more secure pipeline module. * Special note: * Currently, RR never return exit or error status to the browser * after sendmail, so the implementation here does not handle any * error condition at all, and will return 0 regardless. */ +/* Copyright (C) 2013 The Regents of the University of California + * See README in this or parent directory for licensing information. */ + #include "pipeline.h" #include "common.h" #include "mailViaPipe.h" int mailViaPipe(char *toAddress, char *theSubject, char *theBody, char *fromAddress) { char *cmd1[] = {"/usr/sbin/sendmail", "-t", "-oi", NULL}; struct pipeline *dataPipe = pipelineOpen1(cmd1, pipelineWrite | pipelineNoAbort, "/dev/null", NULL); FILE *out = pipelineFile(dataPipe); fprintf(out, "To: %s\n", toAddress); fprintf(out, "From: %s\n", fromAddress); fprintf(out, "Subject: %s\n", theSubject); fprintf(out, "\n"); fprintf(out, "%s\n", theBody);