imaplib.error: command COPY illegal in state AUTH

Raghul raghulj at gmail.com
Tue Feb 22 06:24:09 EST 2005


I am getting this error while copying n number of messages to the
folder using imaplib.What to do to copy n number of folders in mail

 The error i got is

imaplib.error: command COPY illegal in state AUTH

I am executing the lines

for i in alluids:
		print i
		print alluids
		copymsg(obj,res,alluids[n],'INBOX') #copy to folder
		deletemsg(ss,alluids[n])  # delete from folder
		n+=1




More information about the Python-list mailing list