Using information from the following threads:
http://www.knoppix.net/forum/viewtopic.php?t=26192
http://forums.debian.net/viewtopic.php?t=12781
one can setup a very nice mail system to automatically retrieve messages from remoted services like Yahoo (through ypops) or Hotmail (with maybe MrPostman or httpmail) or plain POP3 mail accounts.
create a directory in your home called .getmail
Code:mkdir ~/.getmail
Youll need a getmail script. something like getmailrc-youraccountname
mine is: getmailrc-ypops for my local ypops daemon.
Code:[options] verbose = 1 delete = 0 message_log = ~/.getmail/log [retriever] type = SimplePOP3Retriever server = localhost username = <username here> password = <password here> [destination] type = MDA_external path = /usr/lib/mh/slocal
And a run script: ~/getmail/getmail-ypops.sh
This one includes file locking to keep getmail from being started twice.
Code:#!/bin/bash LOCK=~/.getmail/getmail-ypops-lock LOG=~/.getmail/getmail-ypops.log if [ ! -f $LOCK ]; then echo "0" >$LOCK echo "" >>$LOG ; echo "** ` date ` " >>$LOG getmail -d --rcfile getmailrc-ypops >>$LOG rm -f $LOCK >/dev/null 2>&1 fi
and a crontab to run it from (issue ` crontab -e ` to create)
This downloads my mail from Yahoo every 5min. The other script is just a simple keepalive script I use to keep my proxy at work from closing on me...simply uses wget to download googles index page.Code:# m h dom mon dow command */5 * * * * /home/onemyndseye/.getmail/getmail-ypops.sh >/dev/null 2>&1 */5 * * * * /home/onemyndseye/scripts/keepalive >/dev/null 2>&1
now is I issue ' mail ' from a terminal window I can read all of my YahooMail... neat!... ofcoase mutt or kmail can be used if you so wish
Hope this helps,
-Justin
One Mynds Eye
ASUS H110M-R Motherboard Intel 6th/7th Gen LGA1151 DDR4 Micro-ATX i/o shield
$42.00
***NEW*** BCM RX67Q Gaming Motherboard | Intel Q67 2nd/3rd Gen. | LGA1155 | DDR3
$27.77
Asus B85M-E/CSM, LGA 1150 Intel Socket Motherboard
$39.99
ASRock B660M PRO RS LGA 1700 Intel SATA 6Gb/s DDR4 Micro ATX Motherboard
$94.99
ASUS H110M-C LGA 1151 DDR4 SDRAM MSIP-REM-MSQ-H110M-C Desktop Motherboard
$43.95
ASUS PRIME Z490-P LGA 1200 Intel Motherboard
$59.99
ASUS Motherboard H81M-C | No CPU
$30.00
MSI A520M-A PRO AM4 AMD A520 USB3.2 Gen1 Micro-ATX Motherboard
$69.99
GIGABYTE MB10-Datto Motherboard Xeon D-1521- SR2DF 2.40 GHz- Open Box
$115.00
Asus X99-A II Foxconn LGA2011 ATX Motherboard - Motherboard Only
$112.50