In case the self-doc was not sent first by the handler, its udi was not recalculated, and it clobbered the last subdoc
This commit is contained in:
parent
be214c4a5a
commit
e38e58c37a
@ -318,6 +318,7 @@ class PstExtractor(object):
|
||||
reader = PFFReader(self.em.rclog, infile=self.filein)
|
||||
self.generator = reader.mainloop()
|
||||
|
||||
ipath = ""
|
||||
try:
|
||||
doc, ipath = next(self.generator)
|
||||
self.em.setmimetype("message/rfc822")
|
||||
@ -325,6 +326,9 @@ class PstExtractor(object):
|
||||
except StopIteration:
|
||||
self.em.rclog("getnext: end of iteration")
|
||||
return(True, "", "", rclexecm.RclExecM.eofnext)
|
||||
except Exception as ex:
|
||||
self.em.rclog("getnext: exception: %s" % ex)
|
||||
return(False, "", "", rclexecm.RclExecM.eofnow)
|
||||
|
||||
return (True, doc, ipath, rclexecm.RclExecM.noteof)
|
||||
|
||||
|
||||
@ -745,8 +745,8 @@ FsIndexer::processonefile(RclConfig *config,
|
||||
}
|
||||
} else {
|
||||
hadNonNullIpath = true;
|
||||
make_udi(fn, doc.ipath, udi);
|
||||
}
|
||||
make_udi(fn, doc.ipath, udi);
|
||||
|
||||
// Set file name, mod time and url if not done by
|
||||
// filter. We used to set the top-level container file
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user