Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobox email indexing complete with 0 recorded files. #1

Open
unit92 opened this issue Jul 26, 2018 · 1 comment
Open

Mobox email indexing complete with 0 recorded files. #1

unit92 opened this issue Jul 26, 2018 · 1 comment

Comments

@unit92
Copy link

unit92 commented Jul 26, 2018

Execute docker environment with :
docker run --rm -ti -p 5601:5601 --mount type=bind,source=F:/comms-analyzer-toolbox/Files,target=/files --mount type=bind,source=F:/comms-analyzer-toolbox/Elastic,target=/toolbox/elasticsearch/data comms-analyzer-toolbox:latest python /toolbox/elasticsearch-gmail/src/index_emails.py --infile=/files/incoming.mbox --init=True --index-bodies=True --index-bodies-ignore-content-types=application,image --index-bodies-html-parser=html5lib --index-name=comm_data

testing with :
import mailbox
i = 1
for message in mailbox.mbox('incoming.mbox'):
i=+1
print(i)

from inside docker container via exec indicates 15000 records

I refactored from --v as it was also failing.

Result is:
{"type":"log","@timestamp":"2018-07-26T14:49:20Z","tags":["warning","elasticsearch","admin"],"pid":61,"message":"Unable to revive connection: http://localhost:9200/"}
{"type":"log","@timestamp":"2018-07-26T14:49:20Z","tags":["warning","elasticsearch","admin"],"pid":61,"message":"No living connections"}

Launching MBOX email indexer....

INFO:root:Starting import from file /files/incoming.mbox
INFO:root:Import done - total count 0

MBOX email indexing is complete!

Elastic appears to be running as per process

Not sure if anyone is still working on tis but i thought i would ask before going in for a full refactor.....

@bitsofinfo
Copy link
Owner

I have not re-visited this project in some time. If you've identified a fix/change to make it clearer how to run or to simply fix an error, please submit a PR and I'll incorporate it.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants