Subject: Re: mail retrieval
To: None <netbsd-help@netbsd.org>
From: joerch <helix@mayn.de>
List: netbsd-help
Date: 03/14/2004 20:39:01
On Sat, Mar 13, 2004 at 05:32:46PM -0800, Jeremy C. Reed wrote:
> On Sat, 13 Mar 2004, David Laight wrote:
> 
> > $ telnet mail.xyz.com pop3
> > ...
> > user username
> > ...
> > pass password
> > ...
> > list
> > ...
> > top <mail item number> <number of lines>
> > ...
> 
> And to retrieve the entire single message:
> 
>  retr <mail item number>
> 
> 

One day i was sitting bored in front of my pc
and wrote this script to download my mails into
a file, just for fun.
Only with a telnet connection.
By the way you can not download your mails all
together, use fetchmail or getmail, but you
can log in, look how much mails are there, read
them and record all of this.


#!/bin/sh
echo "name the file:";read FILE
echo
touch $FILE
echo "name host and port (usage: host.domain port):"
echo "end with ctrl-c";read HOST PORT
tail -f $FILE &
telnet $HOST $PORT >> $FILE

-- 
gruesse 
joerg "joerch" buechner
--
wie immer alles subjektiv, 
pick dir das interessante 
raus und loesch den rest.
--