On Fri, Jun 14, 2002 at 11:21:48AM +0530, Arvind wrote:
> i have 11500 emails in my pop3 server.
> and i want to delete 11100 emails from the serer.
>
> how can i issuse the dele command from the
> `telnet mymailserver pop3` prompt
>
> dele <msg no> only deletes a single message.
>
> how can i specify that i need to delete from message 1 to 100.
> something like
>
> dele 1-100
>
> so that i can then easily delete from 1 - 11100.
>
> Arvind
>
>
Arvind,
Don't think you can put things like "dele 1-100" on the
telnet command. If you are looking for something scriptable,
install "netcat". IIRC, it was available it via anonymous FTP
from: ftp://ftp.avian.org/src/hacks/nc110.tgz ... Recheck the
URL through google.
A script similar to this will do the trick:
------------------<snip>---------------------------------
#! /bin/bash
( echo user your_username
echo pass your_password
echo stat
echo list
for i in 1 2 3 4 5 6 7 8 9 10 11 12;
do
echo dele $i
done
echo quit ) | nc -v -v pop3.server.id 110
-----------------</snip>----------------------------------
HTH
Bish
--
:
####[ Linux One Stanza Tip (LOST) ]###########################
Sub : Knowing your IDE HDD parameters LOST #226
To know the IDE hard disk identification info which was found
by the kernel at boot time, inclusive of things like the model
serial number, as root try: #hdparm -i /dev/hdx (where x is a,
b, c etc).
####<[EMAIL PROTECTED]>####################################
:
_______________________________________________________________
Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help