Deleted Added
full compact
1/*
2 * Accept one (or more) ASCII encoded chunks that together make a compressed
3 * CTM delta. Decode them and reconstruct the deltas. Any completed
4 * deltas may be passed to ctm for unpacking.
5 *
6 * Author: Stephen McKay
7 *
8 * NOTICE: This is free software. I hope you get some use from this program.
9 * In return you should think about all the nice people who give away software.
10 * Maybe you should write some free software too.
11 */
12
13#include <stdio.h>
14#include <stdlib.h>
15#include
16#include <errno.h>
17#include <unistd.h>
18#include <sys/types.h>
19#include <sys/stat.h>
20#include <fcntl.h>
21#include <limits.h>
22#include "error.h"
23#include "options.h"

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

268 return 1;
269 }
270
271 while (fgets(line, sizeof(line), ifp) != NULL)
272 {
273 line_no++;
274
275 /*
276 * Look for the beginning of an encoded piece.
277 */
278 if (!decoding)
279 {
280 char *s;
281
282 if (sscanf(line, "CTM_MAIL BEGIN %s %d %d %c",
283 delta, &pce, &npieces, junk) != 3)

--- 364 unchanged lines hidden ---