diff options
author | John Denker <jsd@av8n.com> | 2012-11-22 07:52:24 -0800 |
---|---|---|
committer | John Denker <jsd@av8n.com> | 2012-11-22 07:54:03 -0800 |
commit | 5ae2655e357717dfcf51242154700ee947ea05db (patch) | |
tree | bccbf6076d65c5268fe9f771094351ab72c99d9f | |
parent | ec0ebcd36d30697ad6b96b30199a6393b4bd20fc (diff) |
absent file is non-fatal; go on to next file
-rw-r--r-- | tools/mail-scan.c | 3 |
1 files changed, 2 insertions, 1 deletions
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"); |