summaryrefslogtreecommitdiff
path: root/tools/mail-scan.c
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2012-11-22 15:52:24 (GMT)
committerJohn Denker <jsd@av8n.com>2012-11-22 15:54:03 (GMT)
commit5ae2655e357717dfcf51242154700ee947ea05db (patch)
treebccbf6076d65c5268fe9f771094351ab72c99d9f /tools/mail-scan.c
parentec0ebcd36d30697ad6b96b30199a6393b4bd20fc (diff)
absent file is non-fatal; go on to next file
Diffstat (limited to 'tools/mail-scan.c')
-rw-r--r--tools/mail-scan.c3
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");