-
Senior Member
registered user
Getmail + ypops = Easy Mail
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
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)
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
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.
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
Similar Threads
-
By Hunkah in forum The Lounge
Replies: 7
Last Post: 08-16-2011, 08:57 PM
-
By onemyndseye in forum Tips and Tricks
Replies: 0
Last Post: 12-19-2006, 11:29 AM
-
By rrfish72 in forum General Support
Replies: 2
Last Post: 08-05-2004, 12:01 AM
-
By colin stewart in forum Hdd Install / Debian / Apt
Replies: 7
Last Post: 03-29-2004, 08:16 PM
-
By quakes in forum The Lounge
Replies: 1
Last Post: 05-05-2003, 12:25 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G
$13.99
Crucial DDR3L 16GB 1600 2x 8GB PC3-12800 Laptop SODIMM Memory RAM PC3 16G DDR3
$22.45
CORSAIR - VENGEANCE LPX 32GB (2x16GB) 3200MHz DDR4 C16 DIMM Desktop Memory
$59.99
HyperX FURY DDR3 8GB 16GB 32GB 1600 MHz PC3-12800 Desktop RAM Memory DIMM 240pin
$23.95
A-Tech 8GB PC3-12800 Desktop DDR3 1600 MHz Non ECC 240-Pin DIMM Memory RAM 1x 8G
$13.99
Crucial 8GB DDR4-2400 Sodimm Laptop RAM Memory CL17 1.2V CT8G4SFS824A
$12.99
Samsung 16GB (4x4GB) 1Rx8 PC3-12800U 1600Mhz DDR3 RAM Memory M378B5273DH0-CK0
$14.00
*Lot of 4* 8GB KingFast DDR3 1600MHz 1.35V RAM Desktop Memory KF1600DDAD3-8GB
$31.99
TOUGHRAM RGB Memory DDR4 16GB (8GB x2)
$115.00
Lot Of 10 Mixed Samsung 16GB 2Rx4 PC4-2133P RDIMM DDR4-17000 ECC Server Memory
$149.99