Drew Davis
Posts: 4
Joined: Sun Jun 15, 2014 12:05 am

Email

Sun Jun 15, 2014 11:38 pm

Hello,

I'm hoping this is in the correct forum... I'm a new user, but I need help with what is something I think is considered advanced. I want my raspberry pi to monitor an apple email account... @icloud ....and scan incoming messages for key words. If one of those key words is found I want it to play a sound via a speaker attached to it. The part I need help with is the scanning of emails. How would I accomplish that?

ame
Posts: 3172
Joined: Sat Aug 18, 2012 1:21 am
Location: New Zealand

Re: Email

Mon Jun 16, 2014 12:18 am

Google for "python" and "imap".

Use Python as your programming language, use imap to connect to your mail store. Scan the list of emails, then when you find something you like, use mplayer to play your audio sample (you can do it with a system call, or there is a Python wrapper for it).

Drew Davis
Posts: 4
Joined: Sun Jun 15, 2014 12:05 am

Re: Email

Mon Jun 16, 2014 6:44 pm

Well I found the site to download it at... https://pypi.python.org/pypi/IMAPClient/0.4/ ...I have done lots of C programing but not much with python. Do you know of an tutorials that explain how to implement it?

Return to “Advanced users”