Check email send text message through Bash script

Hello

I want to write a script that checks my email (imap) and send me a text message (to cell phone) if the word "ALERT" is in the title of any unread messages. However I don't want to mark all the messages marked as read when the script is done.

Any ideas?

Thanks
jculkincys
LVL 2
jculkincysAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mightyoneCommented:
all mails are stored in one file to filesystem.
it is a simple text file where all mails are glued together.


cat it and grep ALERT then send it.

better would be to know a bit more of the line where the alert is quoted so yopu wont get sms when i write you a mail saying "ALERT me"  ....
0
jculkincysAuthor Commented:
ok thats a good start

do you know how I would send it in sms?
0
mightyoneCommented:
send a mail to one of these portals, they will do it for u

http://www.cellular.co.za/email_to_sms_gateways.htm
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

jculkincysAuthor Commented:
could you just give me a rough example of the command.

would it be hard to decipher between emails that have been read and not read?
Also could I ensure that I would not be marking the mails as "read" when the script passed over them.

thanks alot for you help with both of my questions
0
mightyoneCommented:
use a rule in your mail client moving mails containing ALERT to different folder, depending on your mail ckient you could also directly forward to one of the sms providers
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jculkincysAuthor Commented:
That a great simple answer

I was looking to learn more about bash commands but if it can be accomplished without it then I can learn some other way.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.