Thanx I got some clear view about this. In the above program I used uid method to copy thje mail to "Inbox".This shows the out put of my mail messages and In the copy of messages I got the output when printing the "dat"
('OK', [None]) ('OK', ['2 (UID 16 FLAGS (\\Seen))']) 2 I cannot see the message in the INBOX. Can anyone give me a solution. -- http://mail.python.org/mailman/listinfo/python-list