[thelist] stat command mail error?

Garrett Coakley garrett at polytechnic.co.uk
Thu Jan 9 11:22:19 CST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 09 Jan 2003 09:07:17 -0800 Hassan Schroeder wrote:

> aardvark wrote:
>
> > "The stat command did not succeed.  Mail server pop.XXXXX.com
> > responded: cannot stat"
>
>  From a quick `man stat` --
>
> 	stat(1) - display file or filesystem status


I don't think that's right, from aards error message, this is coming
from a pop3 mail server, nothing to do with the file system.

The STAT command returns info about the current mailbox, I think it's
the total number of emails excluding items marked for deletion and byte
size (but don't quote me on that):

For example:

[garrett at cincinnati] garrett $ telnet polytechnic.co.uk 110
Trying 212.69.196.110...
Connected to polytechnic.co.uk.
Escape character is '^]'.
+OK POP3 chillibean.dsvr.co.uk v2001.80 server ready
user garrett
+OK User name accepted, password please
pass **********
+OK Mailbox open, 0 messages
stat
+OK 0 0
quit
+OK Sayonara
Connection closed by foreign host.

As you can see, STAT returned OK 0 0, which is what I would expect as I
had just grabbed all the mail from that inbox.

Aard, did you manage to log into the account correctly? STAT won't work
until you are authorized. Apart from that I dunno what the problem might
be, could just be a temporary glitch.

G.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (GNU/Linux)

iD8DBQE+Ha+t4AAXt40rqS4RAtRLAKDKyF0jJdHFHLbVyyxYRjqKg6Qx+ACeJX8i
WIugbC62Dhn1DH37rJ69li8=
=l+y5
-----END PGP SIGNATURE-----



More information about the thelist mailing list