ctm_smail.c (16880) | ctm_smail.c (18110) |
---|---|
1/* 2 * Send a compressed CTM delta to a recipient mailing list by encoding it 3 * in safe ASCII characters, in mailer-friendly chunks, and passing it 4 * to sendmail. The encoding is almost the same as MIME BASE64, and is 5 * protected by a simple checksum. 6 * 7 * Author: Stephen McKay 8 * 9 * NOTICE: This is free software. I hope you get some use from this program. 10 * In return you should think about all the nice people who give away software. 11 * Maybe you should write some free software too. 12 * | 1/* 2 * Send a compressed CTM delta to a recipient mailing list by encoding it 3 * in safe ASCII characters, in mailer-friendly chunks, and passing it 4 * to sendmail. The encoding is almost the same as MIME BASE64, and is 5 * protected by a simple checksum. 6 * 7 * Author: Stephen McKay 8 * 9 * NOTICE: This is free software. I hope you get some use from this program. 10 * In return you should think about all the nice people who give away software. 11 * Maybe you should write some free software too. 12 * |
13 * $Id$ | 13 * $Id: ctm_smail.c,v 1.6 1996/07/01 20:54:11 gpalmer Exp $ |
14 */ 15 16#include <stdio.h> 17#include <stdlib.h> 18#include <string.h> 19#include <unistd.h> 20#include <fcntl.h> 21#include <sys/types.h> --- 395 unchanged lines hidden (view full) --- 417 * from the message contents. 418 */ 419FILE * 420open_sendmail() 421 { 422 FILE *fp; 423 char buf[100]; 424 | 14 */ 15 16#include <stdio.h> 17#include <stdlib.h> 18#include <string.h> 19#include <unistd.h> 20#include <fcntl.h> 21#include <sys/types.h> --- 395 unchanged lines hidden (view full) --- 417 * from the message contents. 418 */ 419FILE * 420open_sendmail() 421 { 422 FILE *fp; 423 char buf[100]; 424 |
425 sprintf(buf, "%s -t", _PATH_SENDMAIL); | 425 sprintf(buf, "%s -odq -t", _PATH_SENDMAIL); |
426 if ((fp = popen(buf, "w")) == NULL) 427 err("cannot start sendmail"); 428 return fp; 429 } 430 431 432/* 433 * Close a pipe to sendmail. Sendmail will then do its bit. --- 154 unchanged lines hidden --- | 426 if ((fp = popen(buf, "w")) == NULL) 427 err("cannot start sendmail"); 428 return fp; 429 } 430 431 432/* 433 * Close a pipe to sendmail. Sendmail will then do its bit. --- 154 unchanged lines hidden --- |