From owner-freebsd-questions Fri May 26 8:47:18 2000 Delivered-To: freebsd-questions@freebsd.org Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (Postfix) with ESMTP id EB57D37BE42 for ; Fri, 26 May 2000 08:47:12 -0700 (PDT) (envelope-from ben@scientia.demon.co.uk) Received: from strontium.scientia.demon.co.uk ([192.168.91.36] ident=exim) by scientia.demon.co.uk with esmtp (Exim 3.12 #1) id 12vKga-000LXM-00; Fri, 26 May 2000 15:02:00 +0100 Received: (from ben) by strontium.scientia.demon.co.uk (Exim 3.12 #7) id 12vKga-000AAF-00; Fri, 26 May 2000 15:02:00 +0100 Date: Fri, 26 May 2000 15:02:00 +0100 From: Ben Smithurst To: Nathan Vidican Cc: questions@freebsd.org Subject: Re: removing pop3 messages Message-ID: <20000526150200.A3410@strontium.scientia.demon.co.uk> References: <392E80C6.E3A47F59@wmptl.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <392E80C6.E3A47F59@wmptl.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Nathan Vidican wrote: > When I telnet into a POP3 server, I can do a 'dele 1' then 'dele 2' then > 'dele 3', etc. etc. How do I accomplish a 'dele *' ? I want to flush all > messages out; but I'm not sure of the command (or even if there is such > a command?) If you have netcat installed (program name "nc") you could try, ( echo USER foo echo PASS bar for i in $(jot 1 50); do echo DELE $i done echo QUIT ) | nc your.pop3.host 110 untested, but you get the idea. Replace "50" with the correct number, which you can get with the "STAT" command IIRC. There are probably programs to do this, but it seems like overkill when a simple script like the above should work. If you don't have netcat installed, install it, NOW! :-) It's in ports/net/netcat, unsurprisingly. -- Ben Smithurst / ben@scientia.demon.co.uk / PGP: 0x99392F7D To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message