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

POP/SMTP Email Agent #309

Closed
snicker opened this issue May 4, 2014 · 16 comments
Closed

POP/SMTP Email Agent #309

snicker opened this issue May 4, 2014 · 16 comments

Comments

@snicker
Copy link
Contributor

snicker commented May 4, 2014

Would open the ability to have Huginn check your email and turn them into events.

Options:

  • leave email as unread or mark as read
  • only generate events from emails matching certain regular expressions in subject or body
  • return text only or html which could be parsed by another agent (another argument in support of breaking the parser out of WebsiteAgent out into another agent)

Would generate events with the standard mail fields, from, to, cc, subject, body, sent, recieved etc

@snicker
Copy link
Contributor Author

snicker commented May 4, 2014

https://github.com/mikel/mail looks like a pretty decent library to accomplish this

@cantino
Copy link
Member

cantino commented May 5, 2014

I'd love it if someone could work on this. Also completes #129.

@snicker
Copy link
Contributor Author

snicker commented May 5, 2014

ha! pretty much an exact duplicate... I thought I searched for that before posting this one.

@virtadpt
Copy link
Collaborator

virtadpt commented May 5, 2014

What about passing new messages on to an indexer of some kind, like YaCY or Solr?

@cantino
Copy link
Member

cantino commented May 7, 2014

That'd be interesting @virtadpt.

@virtadpt
Copy link
Collaborator

virtadpt commented May 7, 2014

It's a use case I have a vested interest in, and I'm considering writing something to implement it.

@cantino
Copy link
Member

cantino commented May 9, 2014

Is anyone planning to work on a mail fetching agent?

On Wednesday, May 7, 2014, The Doctor notifications@github.com wrote:

It's a use case I have a vested interest in, and I'm considering writing
something to implement it.


Reply to this email directly or view it on GitHubhttps://github.com//issues/309#issuecomment-42464686
.

@knu
Copy link
Member

knu commented May 9, 2014

I have a plan to write an ImapFolderAgent. Probably come up with one in a week or so.

@knu
Copy link
Member

knu commented May 9, 2014

...And I'm not interested in implementing a POP3 client, since it's a thing of the past for me.

@cantino
Copy link
Member

cantino commented May 9, 2014

That's fine @knu. If we use the Mail gem, it should be straightforward for you
to do IMAP and then for someone else to add POP to the same agent later.

@0xdevalias
Copy link
Member

@virtadpt Out of curiosity, is your use case something you can share? Sounds interesting.

As for the general concept of this, I like it! I wonder, would specific things that only apply to certain providers (eg. #10 Gmail) fit in this agent or a specific one of their own? If their own, I imagine there would be a lot of points of potential crossover with this one?

@snicker
Copy link
Contributor Author

snicker commented May 12, 2014

I'd say that this agent should be built first, and a Gmail agent may inherit this and add additional functionality like you've been describing @alias1?

@virtadpt
Copy link
Collaborator

@alias1 A couple of years ago I wrote a daemon that logs into an IMAP server, looks at all of the messages in my ~/Maildir/new/ directory, downloads them without marking them as read, and runs the messages' bodies into a copy of Sphinx (the search engine, not the speech synthesis engine) to index so that if I can search the Sphinx database for specific messages when doing research or looking for a particular bit of information in the archive. The code's been corroding for a while and, to be blunt, since discovering Huginn it's probably not worth the time to rewrite my software when Huginn can probably do it better (the manipulating new messages bit; I don't think implementing a domain-specific search engine is part of Huginn's development roadmap).

@knu
Copy link
Member

knu commented May 15, 2014

My ImapFolderAgent is becoming in shape, but it does not have enough specs yet.
I hope I can post it in a day or two!

@cantino
Copy link
Member

cantino commented May 15, 2014

Awesome!

@0xdevalias
Copy link
Member

Would we say this issue (and thus #129) are completed by #328? Or do we still need POP?

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

6 participants