From 5ae2655e357717dfcf51242154700ee947ea05db Mon Sep 17 00:00:00 2001 From: John Denker Date: Thu, 22 Nov 2012 07:52:24 -0800 Subject: absent file is non-fatal; go on to next file --- tools/mail-scan.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/mail-scan.c b/tools/mail-scan.c index 5378e89..058caed 100644 --- a/tools/mail-scan.c +++ b/tools/mail-scan.c @@ -245,7 +245,8 @@ int main(int _argc, const char** _argv){ infile.open(file->c_str()); if (!infile.good()) { cerr << "Failed to open file: " << *file << endl; - exit(1); + // missing file is non-fatal; go on to next file + continue; } int inheads(1); string boundary("x-xx-x"); -- cgit v1.2.3