News for hackers. Stuff that matters.
Re:Elasticsearch For Beginners: Indexing your Gmail Inbox by sailfast on Monday December 18, 2017 @10:40AM (#15952308)
This is a great "get to know ES" project use case for elasticsearch! Frees you a bit from having to use Google search while also teaching you how to use queries / aggregations. Awesome work. Will give this a shot later.

Thanks for putting this together.

Re:Elasticsearch For Beginners: Indexing your Gmail Inbox by emodendroket on Monday December 18, 2017 @03:59PM (#15955453)
Maybe the Thunderbird guys could use it because the search remains the worst part of using Thunderbird after all these years.
Re:Elasticsearch For Beginners: Indexing your Gmail Inbox by gh02t on Monday December 18, 2017 @11:22AM (#15952716)
Worth noting that if you like the idea of indexing your mail, there's also Notmuch. It's a dedicated email search and indexing tool and is very nice when paired with something like OfflineIMAP to sync messages.

https://notmuchmail.org

Re:Elasticsearch For Beginners: Indexing your Gmail Inbox by work_account on Monday December 18, 2017 @02:29PM (#15954609)
Gmail users wanting to try notmuch probably want something like https://github.com/gauteh/gmailieer for seamless tag<->label integration.
Re:Elasticsearch For Beginners: Indexing your Gmail Inbox by cryptonector on Monday December 18, 2017 @12:28PM (#15953366)
Ohhh, this is exactly what I want, minus emacs.
Re:Elasticsearch For Beginners: Indexing your Gmail Inbox by gh02t on Monday December 18, 2017 @02:08PM (#15954391)
Not sure if you're saying you want emacs or don't, but...

* You want emacs - https://notmuchmail.org/notmuch-emacs/

* You don't want emacs - https://github.com/pazz/alot (I use this one, it's very nice)

Also Mutt - https://notmuchmail.org/notmuch-mutt/

Re:Elasticsearch For Beginners: Indexing your Gmail Inbox by cryptonector on Monday December 18, 2017 @03:31PM (#15955193)
Thanks for the links!

What I really want is: mutt's UI, but with a SQLite3/PostgreSQL backend, and mutt not to iterate a mailbox when opening it, and an async IMAP client that reconnects as needed.

Re:Elasticsearch For Beginners: Indexing your Gmail Inbox by TeMPOraL on Monday December 18, 2017 @02:16PM (#15954466)
Re:Elasticsearch For Beginners: Indexing your Gmail Inbox by gh02t on Wednesday December 20, 2017 @11:06AM (#15970743)
Similar concept and similar speed, but notmuch is a little more actively developed. I also find the notmuch command line interface a bit easier and the various tools built on top of it to be better. Alot, the terminal UI I mentioned in the parent comment, is almost exactly what I want in a mail program.
Re:Elasticsearch For Beginners: Indexing your Gmail Inbox by Cyberdog on Monday December 18, 2017 @12:54PM (#15953610)
> First, go here and download your Gmail mailbox…

> The downloaded archive is in the mbox format

So really, these instructions are for indexing any mbox-formatted mailbox.

Re:Elasticsearch For Beginners: Indexing your Gmail Inbox by noncoml on Monday December 18, 2017 @03:35PM (#15955236)
> So really, these instructions are for indexing any mbox-formatted mailbox.

It may not be what you expected, but this is wrong.

The instructions tell you how to download your Gmail emails to mbox format, so they are instructions on how to index your Gmail emails.

Re:Elasticsearch For Beginners: Indexing your Gmail Inbox by kelnos on Monday December 18, 2017 @08:14PM (#15956999)
In a way, though the instructions specifically handle GMail labels which aren't present in other mbox files. But it's pretty general for any mbox email dump.
Re:Elasticsearch For Beginners: Indexing your Gmail Inbox by styfle on Monday December 18, 2017 @01:32PM (#15953965)
Also, any new emails you received since exporting your mailbox will not be available.
Re:Elasticsearch For Beginners: Indexing your Gmail Inbox by emodendroket on Monday December 18, 2017 @03:58PM (#15955445)
I mean, isn't this obvious if you're fetching a file representing your inbox?
Re:Elasticsearch For Beginners: Indexing your Gmail Inbox by styfle on Monday December 18, 2017 @08:15PM (#15957003)
Yes. I'm just adding to Cyberdog's comment that it's not immediately obvious from the title of the article that the instructions are for indexing a static file.

The title makes it sound like it's instructions to setup up an alternative API to Gmail search. I was thinking something like Algolia.

Re:Elasticsearch For Beginners: Indexing your Gmail Inbox by buzzdenver on Tuesday December 19, 2017 @12:39AM (#15958040)
What is that http://ohardt.us/download-gmail-mailbox URL where you're supposed to download your email ? Looks fishy, though the hostname doesn't even resolve so not sure what's going on.
Re:Elasticsearch For Beginners: Indexing your Gmail Inbox by antoaravinth on Tuesday December 19, 2017 @04:20AM (#15958887)
Re:Elasticsearch For Beginners: Indexing your Gmail Inbox by est on Monday December 18, 2017 @09:02PM (#15957180)
> Prerequisites: Set up Elasticsearch

More like first get yourself a host with at least 16gigs of RAM first.

Re:Elasticsearch For Beginners: Indexing your Gmail Inbox by jaydestro on Monday December 18, 2017 @04:25PM (#15955657)
this is like using a jackhammer to nail in a pin isn't it? what's the benefit other than a faster search?
Re:Elasticsearch For Beginners: Indexing your Gmail Inbox by GrinningFool on Monday December 18, 2017 @04:38PM (#15955742)
It's a teaching tool. The benefit is to show someone how to use ES for a real-word thing.

With that said, I suspect given tuning based on your search patterns and usage - you could get more accurate search results when you control the indices, stop words, etc.