[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: lynx-dev lynx check mail
From: |
Vlad Harchev |
Subject: |
Re: lynx-dev lynx check mail |
Date: |
Fri, 15 Oct 1999 18:46:56 +0500 (SAMST) |
On Thu, 14 Oct 1999, Eduardo Chappa L. wrote:
> Hello,
>
> I use pine as my mail reader. As most of you must know, mail has changed
> in the last few years from having your e-mail in the local computer to
> having it in a server (POP3, IMAP, etc). In my case our system uses IMAP,
> and the way pine connects to the server is by a remote command execution
> (rsh) of /etc/rimapd (or /etc/rpop3d) in the server.
>
> Because e-mail is not in my server I can not use the "CHECKMAIL" feature
> that exists in lynx, so I modified my own version of lynx and wrote (very
> badly, but it works) a small program that through rsh checks for new mail
> in the server. Now I can check for mail while I am using lynx. The program
> itself needs some work, but is anyone interested in seeing this, testing
> or improving it?
>
> Please contact me either through the list or through my own e-mail
> address, I'll teach you how you have to modify my program to make it work
> for you.
>
> Have a nice day,
>
> Eduardo
> http://www.math.washington.edu/~chappa/personal.html
>
IMO this functionality can be achieved with the use of fetchmail:
1.sh:
--------------------
interval=120
while :; do
fetchmail -c && (echo -e "\amail arrived!" | write ${LOGNAME} )
sleep ${interval}
done
-------------------
(Assuming fetchmail is properly configured - ie password, user name,
server name).
The bad things are that 'mesg y' should be executed. But there can be other
ways of user notification - like playing audio files, etc.
Best regards,
-Vlad