|
a/src/index/indexer.cpp |
|
b/src/index/indexer.cpp |
1 |
#ifndef lint
|
1 |
#ifndef lint
|
2 |
static char rcsid[] = "@(#$Id: indexer.cpp,v 1.47 2006-12-15 16:33:15 dockes Exp $ (C) 2004 J.F.Dockes";
|
2 |
static char rcsid[] = "@(#$Id: indexer.cpp,v 1.48 2006-12-16 15:30:32 dockes Exp $ (C) 2004 J.F.Dockes";
|
3 |
#endif
|
3 |
#endif
|
4 |
/*
|
4 |
/*
|
5 |
* This program is free software; you can redistribute it and/or modify
|
5 |
* This program is free software; you can redistribute it and/or modify
|
6 |
* it under the terms of the GNU General Public License as published by
|
6 |
* it under the terms of the GNU General Public License as published by
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
7 |
* the Free Software Foundation; either version 2 of the License, or
|
|
... |
|
... |
396 |
// Internal access path for multi-document files
|
396 |
// Internal access path for multi-document files
|
397 |
if (ipath.empty())
|
397 |
if (ipath.empty())
|
398 |
hadNullIpath = true;
|
398 |
hadNullIpath = true;
|
399 |
else
|
399 |
else
|
400 |
doc.ipath = ipath;
|
400 |
doc.ipath = ipath;
|
401 |
|
401 |
|
|
|
402 |
// Note that the filter may have its own idea of the file name
|
|
|
403 |
// (ie: mail attachment)
|
|
|
404 |
if (doc.utf8fn.empty())
|
402 |
doc.utf8fn = utf8fn;
|
405 |
doc.utf8fn = utf8fn;
|
403 |
|
406 |
|
404 |
// Add document to database
|
407 |
// Add document to database
|
405 |
if (!m_db.add(fn, doc, stp))
|
408 |
if (!m_db.add(fn, doc, stp))
|
406 |
return FsTreeWalker::FtwError;
|
409 |
return FsTreeWalker::FtwError;
|
407 |
|
410 |
|