ctm_smail.c (6457) | ctm_smail.c (8857) |
---|---|
1/* | 1/* |
2 * Send a compressed CTM delta to a recipient mailing list by encoding it | 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 * | 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. | 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 14#include <stdio.h> 15#include <string.h> 16#include <unistd.h> 17#include <sys/types.h> 18#include <sys/stat.h> 19#include <errno.h> --- 44 unchanged lines hidden (view full) --- 64 delta_file = argv[1]; 65 mail_alias = argv[2]; 66 67 if (stat(delta_file, &sb) < 0) 68 { 69 err("%s: %s", delta_file, strerror(errno)); 70 exit(1); 71 } | 12 */ 13 14#include <stdio.h> 15#include <string.h> 16#include <unistd.h> 17#include <sys/types.h> 18#include <sys/stat.h> 19#include <errno.h> --- 44 unchanged lines hidden (view full) --- 64 delta_file = argv[1]; 65 mail_alias = argv[2]; 66 67 if (stat(delta_file, &sb) < 0) 68 { 69 err("%s: %s", delta_file, strerror(errno)); 70 exit(1); 71 } |
72 | 72 |
73 if (max_ctm_size != 0 && sb.st_size > max_ctm_size) 74 apologise(delta_file, sb.st_size, max_ctm_size, mail_alias); 75 else 76 chop_and_send(delta_file, sb.st_size, max_msg_size, mail_alias); 77 78 return 0; 79 } 80 --- 246 unchanged lines hidden --- | 73 if (max_ctm_size != 0 && sb.st_size > max_ctm_size) 74 apologise(delta_file, sb.st_size, max_ctm_size, mail_alias); 75 else 76 chop_and_send(delta_file, sb.st_size, max_msg_size, mail_alias); 77 78 return 0; 79 } 80 --- 246 unchanged lines hidden --- |