LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-11-2009, 10:36 AM   #1
D-a-a-n
LQ Newbie
 
Registered: Aug 2008
Posts: 7

Rep: Reputation: 0
Question Fetch mail, periodically


Hi,

I have this following problem:

At my students room we have this server (running Gentoo), which is used to account the down and upload volume (using freeRadius/Chillispot)from all students.
But we also have this messages/post (PHP/mysql) system on the login page, so when users go to the login page, they see the latest messages, and they can post a message as well.

The problem is that the owner of the student's room also wants to post messages, but he doesn't have a computer. Though he can send emails using his digital tv or something.

This is my solution: I make an email address(blabla@gmail.com), the owner just sends a mail to blabla@gmail.com. The server periodically (cron?) checks for new mail at this address, parses the message, and then posts it on the messages system.

How do I achieve this? (checking gmail, retrieving newest message, parsing message so that it can be piped to a script for further processing).

Sorry for my long question, thanks in advance.

Greetz Daan.

P.s. If you have better ideas, tell me please!
 
Old 02-11-2009, 10:54 AM   #2
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
you could use fetchmail to pull down the messages into a mailbox. Then have a cron job run a script afterward that would look at what ever needed parsing then send them to wherever they need to go.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
KMail won't fetch e-mail. cwizardone Slackware 20 10-09-2008 12:30 AM
use a linux server to fetch mail for windows clients tanoatlq Linux - Server 2 06-26-2008 02:23 PM
user unable to fetch mail gmitchell Linux - Networking 3 12-17-2004 03:14 AM
Unable to fetch mail via POP3 from Novell server Phaethar Linux - Software 0 07-28-2004 07:15 AM
Send Mail and Fetch Mail? rurbaniak Linux - Newbie 0 02-18-2002 03:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration