On 20/03/06, Kevin F <[EMAIL PROTECTED]> wrote:
I'm trying to use the following code to get my remote server's folder
size information.  Unfortunately, i'm getting the error:



Traceback (most recent call last):
   File "/Life/School/Homework/Spring 2006/OPIM
399/Tutorial/IMAP/mailboxsize.py", line 23, in -toplevel-
     number_of_messages_all += int(number_of_messages[0])
ValueError: invalid literal for int(): The requested item could not be
found.

The error is on line 23,  so insert the following print statement at line 23

23    print "number_of_messages =", number_of_messages   #  For debugging
24    number_of_messages_all += int(number_of_messages[0])  # original line

and the reported error changes to:

number_of_messages =  ['Could not select box']
Traceback (most recent call last):
  File "C:\MXEXTRA\scripts\imapt1.py", line 24, in ?
    number_of_messages_all += int(number_of_messages[0])
ValueError: invalid literal for int(): Could not select box

HTH :)

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to