mbovo / imapindexer Goto Github PK
View Code? Open in Web Editor NEWA cli tool to index IMAP mailboxes into Elasticsearch / Zincsearch
License: GNU General Public License v3.0
A cli tool to index IMAP mailboxes into Elasticsearch / Zincsearch
License: GNU General Public License v3.0
This to track the implementation of incremental sync
We should be able to save current status and avoid re-download every messages in a mailbox if already scanned (and if not forced by user)
This would require a way to save current status (maybe into elasticsearch itself)
Hey
thanks for this... I am playing around to index my gmail, but it seems to not like something..
BTW is there a arg to dump the imap data on the way through before its sent to zinc, so i can check...
I get:
ERR failed to index document error="parse \"0.0.0.0:4080/api/_bulkv2\": first path segment in URL cannot contain colon"
ima --loglevel debug --imap.address imap.gmail.com:993 --imap.mailbox INBOX --imap.username [email protected] --imap.password XXX --indexer.batch 5 --indexer.buffer 1000 --zinc.address 0.0.0.0:4080 --zinc.username [email protected] --zinc.password xxx
3:23PM INF Starting imapindexer
3:23PM DBG Debug mode enabled
3:23PM INF Indexer settings batch=5 buffer=1000 workers=1
3:23PM DBG Waiting for messages to index
3:23PM INF Mailboxes found mailboxes=1
3:23PM DBG Starting worker i=0 mailbox=INBOX mboxes=1
3:23PM INF Parsing Mailbox mailbox=INBOX
3:23PM DBG Got Message mailbox=INBOX subject="Fwd: Hey Gerard Here. please add me :)" uid=13164
3:23PM DBG Got Message mailbox=INBOX subject="RE: digging" uid=14280
3:23PM DBG Enqueue Subject="Fwd: Hey Gerard Here. please add me :)" batch=1 mailbox=INBOX uid=13164
3:23PM DBG Enqueue Subject="RE: digging" batch=2 mailbox=INBOX uid=14280
3:23PM DBG Got Message mailbox=INBOX subject="RE: digging" uid=14305
3:23PM DBG Got Message mailbox=INBOX subject="Delivery Status Notification (Failure)" uid=14325
3:23PM DBG Enqueue Subject="RE: digging" batch=3 mailbox=INBOX uid=14305
3:23PM DBG Enqueue Subject="Delivery Status Notification (Failure)" batch=4 mailbox=INBOX uid=14325
3:23PM DBG Got Message mailbox=INBOX subject="Delivery Status Notification (Failure)" uid=14326
3:23PM DBG Got Message mailbox=INBOX subject="Delivery Status Notification (Failure)" uid=14328
3:23PM ERR failed to index document error="parse \"0.0.0.0:4080/api/_bulkv2\": first path segment in URL cannot contain colon"
3:23PM ERR failed to index document error="parse \"0.0.0.0:4080/api/_bulkv2\": first path segment in URL cannot contain colon"
3:23PM DBG Got Message mailbox=INBOX subject=Investment uid=14637
3:23PM ERR failed to index document error="parse \"0.0.0.0:4080/api/_bulkv2\": first path segment in URL cannot contain colon"
3:23PM DBG Got Message mailbox=INBOX subject=Investment uid=14638
3:23PM DBG Got Message mailbox=INBOX subject="RE: Investment" uid=14646
my zinc is setup working for bulk api:
curl http://localhost:4080/api/_bulk -i -u XXX --data-binary "@olympics.ndjson"
HTTP/1.1 100 Continue
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Zinc: 0.4.7
Date: Sun, 20 Aug 2023 12:59:24 GMT
Content-Length: 53
{"message":"bulk data inserted","record_count":36935}%
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.