Deleted Added
full compact
ctm_smail.c (8857) ctm_smail.c (14707)
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 *

--- 79 unchanged lines hidden (view full) ---

88 int npieces;
89 long msg_size;
90 long exp_size;
91 int pce;
92 FILE *sfp;
93 FILE *dfp;
94 unsigned sum;
95
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 *

--- 79 unchanged lines hidden (view full) ---

88 int npieces;
89 long msg_size;
90 long exp_size;
91 int pce;
92 FILE *sfp;
93 FILE *dfp;
94 unsigned sum;
95
96#define howmany(x,y) (((x)+((y)-1))/(y))
96#define howmany(x, y) (((x) + ((y) - 1)) / (y))
97
98 /*
99 * Work out how many pieces we need, bearing in mind that each piece
100 * grows by 4/3 when encoded. We count the newlines too, but ignore
101 * all mail headers and piece headers. They are a "small" (almost
102 * constant) per message overhead that we make the user worry about. :-)
103 */
104 exp_size = ctm_size * 4 / 3;

--- 222 unchanged lines hidden ---
97
98 /*
99 * Work out how many pieces we need, bearing in mind that each piece
100 * grows by 4/3 when encoded. We count the newlines too, but ignore
101 * all mail headers and piece headers. They are a "small" (almost
102 * constant) per message overhead that we make the user worry about. :-)
103 */
104 exp_size = ctm_size * 4 / 3;

--- 222 unchanged lines hidden ---